Registered Member
|
I am trying to doing this right now
it just won't compile for me Assuming my matrix has I rows and J columns... I want to multiply each ROW Matrix(i) of the matrix by the scalar Array(i) and then take the COL-wise sum resulting in a new Array of size J. (YES, this should resize exposureEfficiencies from size I to size J) |
Registered Member
|
Is the following what you're looking for?
which gives 50 140 270. |
Registered Member
|
This is exactly what I need. Although this still isn't compiling....
Is it possible that ArrayWrapper is missing an overload? |
Registered Member
|
That should compile, assuming that exposureEfficiencies is of type ArrayXf and m_systemMatrix.getMatrix() returns a MatrixXf. Could you perhaps post a small self-contained example showing the error? |
Registered Member
|
The following compiles fine on my computer:
The difference with your code is the "getMatrix()". |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]