1

I would like to multiply a vector (1 x n) with a matrix (m x n) in java and the library parallel colt. I guess I have chosen it because it has parallel in its name. So you are invited to give me other nice matrix librarys in java.

But my problem is particular the vector-matrix-multiplication... I haven't found a seperate method for it on the DenseDoubleMatrix2D class? How can I do it?

Thanks!

user2129910
  • 33
  • 1
  • 6

1 Answers1

2

The matrix multiplication can be done by the DoubleAlgebra class, which has the overloaded mult methods.

Chthonic Project
  • 8,216
  • 1
  • 43
  • 92
  • but a vector is a DoubleMatrix1D which can not be the first argument of mult. and you can also not transpose a 1D matrix ... – KIC Jun 06 '17 at 19:43
  • @KIC Thank you for pointing that out. Updated the answer to link to the correct method. – Chthonic Project Jun 07 '17 at 20:06