I would like to make the following broadcast expression:
J = rand(4,4) fx1 = rand(2,2) fx2 = rand(2,2) @. J[:,1] = fx1 + fx2
I want it very much:
@. J[:,1] = vec(fx1 + fx2)
where this vec says it should change to 4x1, but I do not want this selection. How could this be handled as a whole (i.e. do not index on fx)?
arrays julia-lang
Chris rackauckas
source share