Re: [ojAlgo-user] Code to reproduce strange matrix multiplication
Mathematics, linear algebra and optimisation
Brought to you by:
apete
From: Anders P. <an...@op...> - 2007-12-11 16:43:50
|
Very strange... I get the same problem when I run your code. The program hangs on the line tmpBase = tmpBaseFuture.get(); in the public MatrixStore<N> multiplyRight(MatrixStore<N> aStore) {...} method of the MergedColumnsStore class. I have unit tests that test (the performance) of that class that work just fine, but with your program it does not work. I get the feeling the problem is related to how the program is launched. Can you test running that program outside of eclipse (that you seem to be using) or as as a junit test from within eclipse or from an Ant script. If you replace the last line of your createSx() method to use the PrimitiveMatrix copy constructor you get rid of the internal MergedColumnsStore. return new PrimitiveMatrix(sx); Of course you shouldn't have to do this! ...but it will work around the problem. I leave for a holiday shortly. Not sure I have time to solve this problem now. /Anders On 11 dec 2007, at 16.44, Tor Erik Askeland wrote: > Hi, > > I added code to reproduce the "hanging". I also tried using > multiplyLeft() which you suggested, but it yielded the same result > unfortunately... > > The code is a bit messy, but I tried adding a comment to explain > things. > > > Tor Erik<Test.java> |