in my Java source i must execute following lines very often:
vecX = EigenMat.multiply(vecX);
vecY = EigenMat.multiply(vecY);
EigenMat is a N x N Matrix with N~40 vecX/vecY is a N x 1 vector (intern a RealMatrix to)
I used the "Sampler" from VisualFM to find some hotspots in my code and
org.apache.commons.math3.linear.Array2DRowRealMatrix.<init>()
org.apache.commons.math3.linear.Array2DRowRealMatrix.multiply()
have a very high runtime. I'm not a java professional but i think every multiplication a new vector is created. Can i reassign the old one?
Maybe i should switch to JBLAS to speed it up?
Matyro
Edit: Single core only