commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r885049 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/BiDiagonalTransformerTest.java
Date Fri, 27 Nov 2009 23:27:16 GMT
Author: luc
Date: Fri Nov 27 23:27:16 2009
New Revision: 885049

URL: http://svn.apache.org/viewvc?rev=885049&view=rev
Log:
removed an unneeded constant

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/BiDiagonalTransformerTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/BiDiagonalTransformerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/BiDiagonalTransformerTest.java?rev=885049&r1=885048&r2=885049&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/BiDiagonalTransformerTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/BiDiagonalTransformerTest.java
Fri Nov 27 23:27:16 2009
@@ -128,12 +128,11 @@
             }));
        final double s3  = Math.sqrt(3.0);
        final double s14 = Math.sqrt(14.0);
-       final double s42 = Math.sqrt(42.0);
        final double s1553 = Math.sqrt(1553.0);
        RealMatrix uRef = MatrixUtils.createRealMatrix(new double[][] {
-           {  -1.0 / s14,  5.0 / s42,  1.0 / s3 },
-           {  -2.0 / s14, -4.0 / s42,  1.0 / s3 },
-           {  -3.0 / s14,  1.0 / s42, -1.0 / s3 }
+           {  -1.0 / s14,  5.0 / (s3 * s14),  1.0 / s3 },
+           {  -2.0 / s14, -4.0 / (s3 * s14),  1.0 / s3 },
+           {  -3.0 / s14,  1.0 / (s3 * s14), -1.0 / s3 }
        });
        RealMatrix bRef = MatrixUtils.createRealMatrix(new double[][] {
            { -s14, s1553 / s14,   0.0 },



Mime
View raw message