org.apache.commons.math3.linear
Class MatrixUtilsTest
java.lang.Object
org.apache.commons.math3.linear.MatrixUtilsTest
public final class MatrixUtilsTest
- extends Object
Test cases for the MatrixUtils class.
- Version:
- $Id: MatrixUtilsTest.java 1403587 2012-10-30 00:21:20Z erans $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
testData
protected double[][] testData
nullMatrix
protected double[][] nullMatrix
row
protected double[] row
bigRow
protected BigDecimal[] bigRow
stringRow
protected String[] stringRow
fractionRow
protected Fraction[] fractionRow
rowMatrix
protected double[][] rowMatrix
bigRowMatrix
protected BigDecimal[][] bigRowMatrix
stringRowMatrix
protected String[][] stringRowMatrix
fractionRowMatrix
protected Fraction[][] fractionRowMatrix
col
protected double[] col
bigCol
protected BigDecimal[] bigCol
stringCol
protected String[] stringCol
fractionCol
protected Fraction[] fractionCol
nullDoubleArray
protected double[] nullDoubleArray
colMatrix
protected double[][] colMatrix
bigColMatrix
protected BigDecimal[][] bigColMatrix
stringColMatrix
protected String[][] stringColMatrix
fractionColMatrix
protected Fraction[][] fractionColMatrix
MatrixUtilsTest
public MatrixUtilsTest()
testCreateRealMatrix
public void testCreateRealMatrix()
testcreateFieldMatrix
public void testcreateFieldMatrix()
testCreateRowRealMatrix
public void testCreateRowRealMatrix()
testCreateRowFieldMatrix
public void testCreateRowFieldMatrix()
testCreateColumnRealMatrix
public void testCreateColumnRealMatrix()
testCreateColumnFieldMatrix
public void testCreateColumnFieldMatrix()
checkIdentityMatrix
protected void checkIdentityMatrix(RealMatrix m)
- Verifies that the matrix is an identity matrix
testCreateIdentityMatrix
public void testCreateIdentityMatrix()
checkIdentityFieldMatrix
protected void checkIdentityFieldMatrix(FieldMatrix<Fraction> m)
- Verifies that the matrix is an identity matrix
testcreateFieldIdentityMatrix
public void testcreateFieldIdentityMatrix()
testBigFractionConverter
public void testBigFractionConverter()
testFractionConverter
public void testFractionConverter()
asFraction
public static final Fraction[][] asFraction(double[][] data)
asFraction
public static final Fraction[] asFraction(double[] data)
testSolveLowerTriangularSystem
public void testSolveLowerTriangularSystem()
testSolveUpperTriangularSystem
public void testSolveUpperTriangularSystem()
testBlockInverse
public void testBlockInverse()
- This test should probably be replaced by one that could show
whether this algorithm can sometimes perform better (precision- or
performance-wise) than the direct inversion of the whole matrix.
testIsSymmetric
public void testIsSymmetric()
testIsSymmetricTolerance
public void testIsSymmetricTolerance()
testCheckSymmetric1
public void testCheckSymmetric1()
testCheckSymmetric2
public void testCheckSymmetric2()
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.