org.apache.commons.math.linear
Class MatrixUtilsTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.math.linear.MatrixUtilsTest
All Implemented Interfaces:
junit.framework.Test

public final class MatrixUtilsTest
extends junit.framework.TestCase

Test cases for the MatrixUtils class.

Version:
$Revision: 783702 $ $Date: 2009-06-11 04:54:02 -0400 (Thu, 11 Jun 2009) $

Field Summary
protected  BigDecimal[] bigCol
           
protected  BigDecimal[][] bigColMatrix
           
protected  BigDecimal[] bigRow
           
protected  BigDecimal[][] bigRowMatrix
           
protected  double[] col
           
protected  double[][] colMatrix
           
protected  org.apache.commons.math.fraction.Fraction[] fractionCol
           
protected  org.apache.commons.math.fraction.Fraction[][] fractionColMatrix
           
protected  org.apache.commons.math.fraction.Fraction[] fractionRow
           
protected  org.apache.commons.math.fraction.Fraction[][] fractionRowMatrix
           
protected  double[] nullDoubleArray
           
protected  double[][] nullMatrix
           
protected  double[] row
           
protected  double[][] rowMatrix
           
protected  String[] stringCol
           
protected  String[][] stringColMatrix
           
protected  String[] stringRow
           
protected  String[][] stringRowMatrix
           
protected  double[][] testData
           
 
Constructor Summary
MatrixUtilsTest(String name)
           
 
Method Summary
static org.apache.commons.math.fraction.Fraction[] asFraction(double[] data)
           
static org.apache.commons.math.fraction.Fraction[][] asFraction(double[][] data)
           
protected  void checkIdentityBigMatrix(org.apache.commons.math.linear.BigMatrix m)
          Deprecated. 
protected  void checkIdentityFieldMatrix(org.apache.commons.math.linear.FieldMatrix<org.apache.commons.math.fraction.Fraction> m)
          Verifies that the matrix is an identity matrix
protected  void checkIdentityMatrix(org.apache.commons.math.linear.RealMatrix m)
          Verifies that the matrix is an identity matrix
static junit.framework.Test suite()
           
 void testBigFractionConverter()
           
 void testCreateBigIdentityMatrix()
          Deprecated. 
 void testCreateBigMatrix()
          Deprecated. 
 void testCreateColumnBigMatrix()
          Deprecated. 
 void testCreateColumnFieldMatrix()
           
 void testCreateColumnRealMatrix()
           
 void testcreateFieldIdentityMatrix()
           
 void testcreateFieldMatrix()
           
 void testCreateIdentityMatrix()
           
 void testCreateRealMatrix()
           
 void testCreateRowBigMatrix()
          Deprecated. 
 void testCreateRowFieldMatrix()
           
 void testCreateRowRealMatrix()
           
 void testFractionConverter()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

testData

protected double[][] testData

nullMatrix

protected double[][] nullMatrix

row

protected double[] row

bigRow

protected BigDecimal[] bigRow

stringRow

protected String[] stringRow

fractionRow

protected org.apache.commons.math.fraction.Fraction[] fractionRow

rowMatrix

protected double[][] rowMatrix

bigRowMatrix

protected BigDecimal[][] bigRowMatrix

stringRowMatrix

protected String[][] stringRowMatrix

fractionRowMatrix

protected org.apache.commons.math.fraction.Fraction[][] fractionRowMatrix

col

protected double[] col

bigCol

protected BigDecimal[] bigCol

stringCol

protected String[] stringCol

fractionCol

protected org.apache.commons.math.fraction.Fraction[] fractionCol

nullDoubleArray

protected double[] nullDoubleArray

colMatrix

protected double[][] colMatrix

bigColMatrix

protected BigDecimal[][] bigColMatrix

stringColMatrix

protected String[][] stringColMatrix

fractionColMatrix

protected org.apache.commons.math.fraction.Fraction[][] fractionColMatrix
Constructor Detail

MatrixUtilsTest

public MatrixUtilsTest(String name)
Method Detail

suite

public static junit.framework.Test suite()

testCreateRealMatrix

public void testCreateRealMatrix()

testcreateFieldMatrix

public void testcreateFieldMatrix()

testCreateBigMatrix

@Deprecated
public void testCreateBigMatrix()
Deprecated. 


testCreateRowRealMatrix

public void testCreateRowRealMatrix()

testCreateRowFieldMatrix

public void testCreateRowFieldMatrix()

testCreateRowBigMatrix

@Deprecated
public void testCreateRowBigMatrix()
Deprecated. 


testCreateColumnRealMatrix

public void testCreateColumnRealMatrix()

testCreateColumnFieldMatrix

public void testCreateColumnFieldMatrix()

testCreateColumnBigMatrix

@Deprecated
public void testCreateColumnBigMatrix()
Deprecated. 


checkIdentityMatrix

protected void checkIdentityMatrix(org.apache.commons.math.linear.RealMatrix m)
Verifies that the matrix is an identity matrix


testCreateIdentityMatrix

public void testCreateIdentityMatrix()

checkIdentityFieldMatrix

protected void checkIdentityFieldMatrix(org.apache.commons.math.linear.FieldMatrix<org.apache.commons.math.fraction.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 org.apache.commons.math.fraction.Fraction[][] asFraction(double[][] data)

asFraction

public static final org.apache.commons.math.fraction.Fraction[] asFraction(double[] data)

checkIdentityBigMatrix

@Deprecated
protected void checkIdentityBigMatrix(org.apache.commons.math.linear.BigMatrix m)
Deprecated. 

Verifies that the matrix is an identity matrix


testCreateBigIdentityMatrix

@Deprecated
public void testCreateBigIdentityMatrix()
Deprecated. 



Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.