You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ce...@apache.org on 2011/09/21 05:12:45 UTC
svn commit: r1173475 -
/commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/CholeskyDecompositionImplTest.java
Author: celestin
Date: Wed Sep 21 03:12:45 2011
New Revision: 1173475
URL: http://svn.apache.org/viewvc?rev=1173475&view=rev
Log:
Replaced CholeskyDecomposition by CholeskyDecompositionImpl (preliminary cleaning for solving MATH-662).
Modified:
commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/CholeskyDecompositionImplTest.java
Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/CholeskyDecompositionImplTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/CholeskyDecompositionImplTest.java?rev=1173475&r1=1173474&r2=1173475&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/CholeskyDecompositionImplTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/CholeskyDecompositionImplTest.java Wed Sep 21 03:12:45 2011
@@ -33,7 +33,7 @@ public class CholeskyDecompositionImplTe
/** test dimensions */
@Test
public void testDimensions() {
- CholeskyDecomposition llt =
+ CholeskyDecompositionImpl llt =
new CholeskyDecompositionImpl(MatrixUtils.createRealMatrix(testData));
Assert.assertEquals(testData.length, llt.getL().getRowDimension());
Assert.assertEquals(testData.length, llt.getL().getColumnDimension());
@@ -82,7 +82,7 @@ public class CholeskyDecompositionImplTe
@Test
public void testAEqualLLT() {
RealMatrix matrix = MatrixUtils.createRealMatrix(testData);
- CholeskyDecomposition llt = new CholeskyDecompositionImpl(matrix);
+ CholeskyDecompositionImpl llt = new CholeskyDecompositionImpl(matrix);
RealMatrix l = llt.getL();
RealMatrix lt = llt.getLT();
double norm = l.multiply(lt).subtract(matrix).getNorm();
@@ -105,7 +105,7 @@ public class CholeskyDecompositionImplTe
@Test
public void testLTTransposed() {
RealMatrix matrix = MatrixUtils.createRealMatrix(testData);
- CholeskyDecomposition llt = new CholeskyDecompositionImpl(matrix);
+ CholeskyDecompositionImpl llt = new CholeskyDecompositionImpl(matrix);
RealMatrix l = llt.getL();
RealMatrix lt = llt.getLT();
double norm = l.subtract(lt.transpose()).getNorm();
@@ -122,7 +122,7 @@ public class CholeskyDecompositionImplTe
{ 7, 8, 9, 10, 0 },
{ 11, 12, 13, 14, 15 }
});
- CholeskyDecomposition llt =
+ CholeskyDecompositionImpl llt =
new CholeskyDecompositionImpl(MatrixUtils.createRealMatrix(testData));
// check values against known references