[ojAlgo-user] Problem with float-matrix
Mathematics, linear algebra and optimisation
Brought to you by:
apete
From: Birgit D. <bir...@we...> - 2010-10-07 19:55:19
|
<body bgcolor="#ffffff" background="https://img.web.de/v/p.gif" class="bgRepeatYes" style="background-repeat: repeat; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); font-family: verdana,geneva; font-size: 9pt; padding-left: 0px;"><div style="min-height: 200px; background-image: url(https://img.web.de/v/p.gif); background-repeat: repeat; background-color: #ffffff; font-family: verdana,geneva; font-size: 9pt; padding-left: 0px;"><span style="font-size: 9pt;"><span style="font-family: verdana,geneva;"><span style="background-color: transparent;"><span style="color: #000000;"><span style="color: #000000;">Hi to all ojaglo-user!<br />My problem:<br />I want to do high performance calculations with matrices. </span></span></span></span></span> For precision is float enough. I found a way to create a double-matrix. <br /><br />"MatrixStore<Double> a = PrimitiveDenseStore.FACTORY.makeEye(4,4); " <br />"BasicMatrix b = new PrimitiveMatrix(a);"<br /><br />But how can I create a float-matrix? I know, that there are many factories, which expect a type of Number, like double or float. But if I set Float, I get only errors. <br /><br />Nice would be a short tutorial how to deal with float-matrices in ojaglo. I will need functions like add, mult and invert. And the initialization should be possible with a 2-dimensional-float-array, or something like that.<br /><br />Thanks for your help<br />Birgit<br /><br /><br /></div> <br><br><table cellpadding="0" cellspacing="0" border="0"><tr><td bgcolor="#000000"><img src="https://img.web.de/p.gif" width="1" height="1" border="0" alt="" /></td></tr><tr><td style="font-family:verdana; font-size:12px; line-height:17px;">Neu: WEB.DE De-Mail - Einfach wie E-Mail, sicher wie ein Brief! <br>Jetzt De-Mail-Adresse reservieren: https://produkte.web.de/go/demail02</td></tr></table> </body> |