python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to have conditions for constraints?
How can I code a constraint like this in JUMP?
Suppose i,j,k,m are indices and capital letters associated with them are set, like J.
x_{i,j,k,m'} + sum((j in J, k in K), y_{j,k,m})<= z_{i,m} for al...
Hemfri
Votes: 0
Answers: 2
How to show Matrix{RGB} on Cairo surface?
Cairo provides read_from_png, but returns value of a special type CairoSurfaceBase, which is hard to operate, so I choose Matrix{RGB}(the thing ImageIO returns).
Cairo does provide something called se...
Rratic
Votes: 0
Answers: 1
Understanding Forward.Diff issues
I got an apparently quite common Julia error when trying to use AD with forward.diff. The error messages vary a bit (sometimes matching function name sometimes Float64)
MethodError: no method matching...
Jonas Bauer
Votes: 0
Answers: 0
Create sparse matrix in parallel in Julia
I am trying to parallelize the creation of a sparse matrix in Julia. Inspired by this post this post I am trying this:
using Distributed
addprocs(4)
@everywhere using DistributedArrays
rows = [Int[] ...
Shep Bryan
Votes: 0
Answers: 1