[ojAlgo-user] Strange matrix multiplication problem
Mathematics, linear algebra and optimisation
Brought to you by:
apete
From: Tor E. A. <tor...@st...> - 2007-12-10 13:20:49
|
Hi, I'm quite new to ojAlgo and I'm trying to do a matrix multiplication. Here is the snippet of code I'm trying to run: r = sx.multiplyRight(currentState); r = r.add(sxPrev.multiplyRight(previousState)); Where sx is 12x2, currentState is 2x1, sxPrev is 12x2 and previousState is 2x1. They are all the type PrimitiveMatrix, but I'm just using the BasicMatrix interface. R is a BasicMatrix by the way. This should result in r being a vector of size 12x1, but the computer just hangs on the first line and doesn't run past it. The second line does however run properly if the first line is commented out. Have anyone got any suggestions to what the problem might be? Tor Erik |