[ojAlgo-user] How to create matrices
Mathematics, linear algebra and optimisation
Brought to you by:
apete
From: Anders P. <an...@op...> - 2009-01-10 17:03:46
|
You have to be a member to post to the list, and the code you posted makes no sense to me. Have you tried: BasicMatrix tmpRandomBigMatrix = BigMatrix.FACTORY.buildRandom(int, int, RandomNumber); There are many different random number implementations/distributions: http://ojalgo.org/generated/org/ojalgo/random/RandomNumber.html /Anders On 10 jan 2009, at 14.09, oja...@li... wrote: > The attached message has been automatically discarded. > Date: lördag 10 jan 2009 13.42.36 GMT+01:00 > To: oja...@li... > Subject: BigMatrix > > > Hi there > > I try to instantiate a BigMatrix Object with random BigDecimal > values (nxn matrix). Most probably it is very obvious but I don't > get it... > I tried something like that: > Error BigDenseStore bigStore=BigDenseStore; > bigStore.add(new BigDecimal("4355")); > BigMatrix bigA=new BigMatrix(bigStore); > > > For those who wondering what the bigger problem is: > I want to square a nxn matrix multiple times. I implemented it > already with the Matrix object from the JAMA package. The problem I > had, is that I get INFINITY values after 5 squarings already.... So > I need a matrix object with BigDecimal values.... > > > Could somebody help me? > > Cheers > Rolf > > > > > |