[Fwd: Error in LUDecomposition?]
- Subject: [Fwd: Error in LUDecomposition?]
- From: Ronald Boisvert <boisvert@nist.gov>
- Date: Thu, 20 Aug 2009 08:45:26 -0400
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=iso-8859-1; format=flowed
- User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
Sender: Rupert Parson <rupert.parson@gmail.com>
Subject: Error in LUDecomposition?
I am getting an java.lang.ArrayIndexOutOfBoundsException: at
Jama.LUDecomposition.<init>(LUDecomposition.java:107).
Looking at the code, I see that this line is:
if (j < m & LU[j][j] != 0.0) {
and I am wondering if it should actually read:
if (j < m && LU[j][j] != 0.0) {
as using the non-short-circuiting logical operator "&" rather than
"&&" would seem to make the first condition of the conditional
statement rather redundant!?
Many thanks,
Rupert Parson
Date Index |
Thread Index |
Problems or questions? Contact list-master@nist.gov