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: 480442 $ $Date: 2006-11-29 00:21:22 -0700 (Wed, 29 Nov 2006) $

Field Summary
protected  java.math.BigDecimal[] bigCol
           
protected  java.math.BigDecimal[][] bigColMatrix
           
protected  java.math.BigDecimal[] bigRow
           
protected  java.math.BigDecimal[][] bigRowMatrix
           
protected  double[] col
           
protected  double[][] colMatrix
           
protected  double[] nullDoubleArray
           
protected  double[][] nullMatrix
           
protected  double[] row
           
protected  double[][] rowMatrix
           
protected  java.lang.String[] stringCol
           
protected  java.lang.String[][] stringColMatrix
           
protected  java.lang.String[] stringRow
           
protected  java.lang.String[][] stringRowMatrix
           
protected  double[][] testData
           
 
Constructor Summary
MatrixUtilsTest(java.lang.String name)
           
 
Method Summary
protected  void checkIdentityBigMatrix(org.apache.commons.math.linear.BigMatrix 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
 void setUp()
           
static junit.framework.Test suite()
           
 void testCreateBigIdentityMatrix()
           
 void testCreateBigMatrix()
           
 void testCreateColumnBigMatrix()
           
 void testCreateColumnRealMatrix()
           
 void testCreateIdentityMatrix()
           
 void testCreateRealMatrix()
           
 void testCreateRowBigMatrix()
           
 void testCreateRowRealMatrix()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 
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 java.math.BigDecimal[] bigRow

stringRow

protected java.lang.String[] stringRow

rowMatrix

protected double[][] rowMatrix

bigRowMatrix

protected java.math.BigDecimal[][] bigRowMatrix

stringRowMatrix

protected java.lang.String[][] stringRowMatrix

col

protected double[] col

bigCol

protected java.math.BigDecimal[] bigCol

stringCol

protected java.lang.String[] stringCol

nullDoubleArray

protected double[] nullDoubleArray

colMatrix

protected double[][] colMatrix

bigColMatrix

protected java.math.BigDecimal[][] bigColMatrix

stringColMatrix

protected java.lang.String[][] stringColMatrix
Constructor Detail

MatrixUtilsTest

public MatrixUtilsTest(java.lang.String name)
Method Detail

setUp

public void setUp()
Overrides:
setUp in class junit.framework.TestCase

suite

public static junit.framework.Test suite()

testCreateRealMatrix

public void testCreateRealMatrix()

testCreateBigMatrix

public void testCreateBigMatrix()

testCreateRowRealMatrix

public void testCreateRowRealMatrix()

testCreateRowBigMatrix

public void testCreateRowBigMatrix()

testCreateColumnRealMatrix

public void testCreateColumnRealMatrix()

testCreateColumnBigMatrix

public void testCreateColumnBigMatrix()

checkIdentityMatrix

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


testCreateIdentityMatrix

public void testCreateIdentityMatrix()

checkIdentityBigMatrix

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


testCreateBigIdentityMatrix

public void testCreateBigIdentityMatrix()


Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.