I have completed a BigMatrix interface, and a BigMatrixImpl
to go along with it.  

BigMatrix is a matrix interface which is designed to work on
BigDecimal objects, rather than on double values.  The reason
for needing something like this is if someone wants more accuracy
than is provided by the double type.

It passes all the testcases that were developed for RealMatrixImpl.

I will be putting this as a patch shortly, but wanted to make sure
there was a call for it.

Example calls:

double d[][] = { ... };
BigDecimal bd[][] = { ... };

BigMatrix bm1 = new BigMatrix(d);
BigMatrix bm2 = new BigMatrix(bd);

BigMatrix bm3 = bm1.multiply(bm2);

BigDecimal databd[][] = bm3.getData();
double datad[][] = bm3.getDataAsDoubleArray();

BigDecimal row1bd[] = bm3.getRow(1);
double row1d[] = bm3.getRowAsDoubleArray(1);

I've tried to supply some convenient conversions where possible
to make life easier.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to