commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1296611 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/FieldLUDecomposition.java
Date Sat, 03 Mar 2012 11:48:58 GMT
Author: sebb
Date: Sat Mar  3 11:48:57 2012
New Revision: 1296611

URL: http://svn.apache.org/viewvc?rev=1296611&view=rev
Log:
Use the proper method to get the array length

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/FieldLUDecomposition.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/FieldLUDecomposition.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/FieldLUDecomposition.java?rev=1296611&r1=1296610&r2=1296611&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/FieldLUDecomposition.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/FieldLUDecomposition.java
Sat Mar  3 11:48:57 2012
@@ -346,7 +346,7 @@ public class FieldLUDecomposition<T exte
          */
         public ArrayFieldVector<T> solve(ArrayFieldVector<T> b) {
             final int m = pivot.length;
-            final int length = b.getDataRef().length;
+            final int length = b.getDimension();
             if (length != m) {
                 throw new DimensionMismatchException(length, m);
             }



Mime
View raw message