|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
sugr.test.MatrixTest
Constructor Summary | |
MatrixTest(java.lang.String arg0)
Constructor for MatrixTest. |
Method Summary | |
double[][] |
getDoubleArray(int row,
int col,
int c)
Get a double array with values from 0 to (rowDim*colDim)-1 |
double[][] |
getDoubleArrayEven(int row,
int col,
double val)
Get a double array with value val at every position |
double[][] |
getDoubleArrayRand(int row,
int col,
double val)
Get a double array with random value from 0 to val |
void |
testDelColumn()
Test for Matrix delColumn(int col) |
void |
testDelRow()
Test for Matrix delRow(int) |
void |
testDet()
Test for Matrix det() |
void |
testEig()
Test for Matrix eig() |
void |
testEqualsObject()
Test for boolean equals(Object) |
void |
testGet()
Test for double get(int, int) |
void |
testGetColumn()
Test for Vector getColumn(int) |
void |
testGetColumnDimension()
Test for int getColumnDimension() |
void |
testGetMatrix()
Test for Matrix getMatrix(int,int,int,int) |
void |
testGetRow()
Test for Vector getRow(int) |
void |
testGetRowDimension()
Test for int getRowDimension() |
void |
testInvert()
Test for Matrix invert() |
void |
testIsSemiDefinite()
Test for boolean isSemiDefinite() |
void |
testKronecker()
Test for Matrix Kronecker(Matrix) |
void |
testMinus()
Test for Matrix minus(Matrix) |
void |
testMultdouble()
Test for Matrix mult(double) |
void |
testMultMatrix()
Test for Matrix mult(Matrix) |
void |
testMultVector()
Test for Vector mult(Vector) |
void |
testPlus()
Test for Matrix plus(Matrix) |
void |
testPseudoInverse()
Test for Matrix pseudoInverse(int) |
void |
testQr()
Test for Matrix[] qr() |
void |
testSetColumn()
Test for Matrix setColumn(int,Vector) |
void |
testSetdouble()
Test for void set(double) |
void |
testSetintintdouble()
Test for void set(int, int, double) |
void |
testSetRow()
Test for Matrix setRow(int,Vector) |
void |
testSliceintArrayintArray()
Test for Matrix slice(int[], int[]) |
void |
testSliceintArrayintArrayMatrix()
Test for void slice(int[], int[], Matrix) |
void |
testSliceintintintint()
Test for Matrix slice(int, int, int, int) No need for a test, because it is the same method as getMatrix |
void |
testSliceintintintintMatrix()
Test for void slice(int, int, int, int, Matrix) |
void |
testSolve()
Test for Vector solve(Vector) |
void |
testSvd()
Test for Matrix[] svd() |
void |
testTrans()
Test for Matrix trans() |
void |
testVec()
Test for Vector Vec() |
Methods inherited from class junit.framework.TestCase |
countTestCases, getName, run, run, runBare, setName, 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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MatrixTest(java.lang.String arg0)
arg0
- Method Detail |
public double[][] getDoubleArray(int row, int col, int c)
row
- number of rowscol
- number of columnsc
- c-1 Column/Row to delete 0 delets nothing
public double[][] getDoubleArrayEven(int row, int col, double val)
row
- number of rowscol
- number of columnsval
-
public double[][] getDoubleArrayRand(int row, int col, double val)
row
- number of rowscol
- number of columnsval
-
public void testPlus()
public void testMinus()
public void testMultMatrix()
public void testTrans()
public void testGet()
public void testSetintintdouble()
public void testGetRowDimension()
public void testGetColumnDimension()
public void testInvert()
public void testMultdouble()
public void testMultVector()
public void testSvd()
public void testSliceintArrayintArray()
public void testSliceintArrayintArrayMatrix()
public void testSliceintintintintMatrix()
public void testVec()
public void testSetdouble()
public void testEqualsObject()
public void testGetMatrix()
public void testEig()
public void testIsSemiDefinite()
public void testPseudoInverse()
public void testKronecker()
public void testDet()
public void testGetColumn()
public void testGetRow()
public void testSetRow()
public void testSetColumn()
public void testSolve()
public void testDelColumn()
public void testDelRow()
public void testSliceintintintint()
public void testQr()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |