[Fwd: API suggestion]
- Subject: [Fwd: API suggestion]
- From: Ron Boisvert <boisvert@nist.gov>
- Date: Mon, 10 Mar 2008 09:56:42 -0400
- Content-Transfer-Encoding: 8bit
- Content-Type: text/plain; charset=ISO-8859-1; format=flowed
- User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
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