How to multiply row-vector with matrix in MTJ?

241 Views Asked by At

I want to multiply a row vector V with a matrix M to get a vector V', i.e.

V' = V * M

How can I do that with MTJ? The interface Vector doesn't seem to have a multiply method.

1

There are 1 best solutions below

0
On

I managed to solve my problem using the property that (V * M)T = MT*VT, i.e.

M.transposeMult(V, resV);

Still, I wonder if there is a cleaner approach.