[Fwd: API suggestion]


Sender: =?ISO-8859-1?Q?S=F8ren_Schmidt_Thorsen?= <post@sorenthorsen.dk>
Subject: API suggestion


Hi,

Sun seems to be moving away from the "old fashioned" array types such as 
double[] so I suggest the JAMA be updated to use the Collection 
framework instead. If for instance 
EigenvalueDecomposition.getRealEigenvalues() return a Collection<Double> 
the retrieving the maximal eigenvalue would be as easy as

Matrix m = [something];
double lambdaMax = Collections.max(m.eig().getRealEigenvalues());

This seems more integrated with Java than having to use for loops in 
order to get the maximal eigenvalue.

I hope my thoughts will be helpful.

Best regards,
Søren Thorsen (Denmark)






Date Index | Thread Index | Problems or questions? Contact list-master@nist.gov