So I have a Matrix{Matrix{Float64}}, and I want to access the first Matrix,
and multiply it by a parameter vector.
nX = 175
X = 0:1:nX-1
duM = Matrix{Float64}[[zeros(nX) -0.001*X],
[-ones(nX) zeros(nX)]];
Say I have a parameter Vector b = [9; 2], and want to perform uM[:, 1] =
duM[1]*b (uM is just a nX - by - 2 Array{Float64,2}), but I don't want to
make a copy each time. I thought maybe slice(duM, 2), slice(duM, 2, :, :)
would work, but it doesn't really seem to do the trick. What is it exactly
I'm missing here?
Best,
Patrick