public class EjmlUnitTests
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
EjmlUnitTests.TestException |
| Constructor and Description |
|---|
EjmlUnitTests() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertCountable(org.ejml.data.RealMatrix64F A)
Checks to see if every element in A is countable.
|
static void |
assertEquals(org.ejml.data.Complex64F a,
org.ejml.data.Complex64F b,
double tol) |
static void |
assertEquals(org.ejml.data.ComplexMatrix64F A,
org.ejml.data.ComplexMatrix64F B,
double tol) |
static void |
assertEquals(org.ejml.data.RealMatrix32F A,
org.ejml.data.RealMatrix32F B,
float tol) |
static void |
assertEquals(org.ejml.data.RealMatrix64F A,
org.ejml.data.RealMatrix64F B,
double tol)
Checks to see if each element in the matrices are within tolerance of each other and countable:
|
static void |
assertEqualsTrans(org.ejml.data.RealMatrix64F A,
org.ejml.data.RealMatrix64F B,
double tol)
Checks to see if the transpose of B is equal to A and countable:
|
static void |
assertEqualsUncountable(org.ejml.data.RealMatrix64F A,
org.ejml.data.RealMatrix64F B,
double tol)
Checks to see if each element in the matrix is within tolerance of each other:
|
static void |
assertShape(org.ejml.data.Matrix A,
org.ejml.data.Matrix B)
Checks to see if A and B have the same shape.
|
static void |
assertShape(org.ejml.data.RealMatrix64F A,
int numRows,
int numCols)
Checks to see if the matrix has the specified number of rows and columns.
|
public static void assertCountable(org.ejml.data.RealMatrix64F A)
A - Matrixpublic static void assertShape(org.ejml.data.Matrix A,
org.ejml.data.Matrix B)
Checks to see if A and B have the same shape.
A - MatrixB - Matrixpublic static void assertShape(org.ejml.data.RealMatrix64F A,
int numRows,
int numCols)
Checks to see if the matrix has the specified number of rows and columns.
A - MatrixnumRows - expected number of rows in the matrixnumCols - expected number of columns in the matrixpublic static void assertEqualsUncountable(org.ejml.data.RealMatrix64F A,
org.ejml.data.RealMatrix64F B,
double tol)
Checks to see if each element in the matrix is within tolerance of each other:
The two matrices are identical with in tolerance if:
|aij - bij| ≤ tol
In addition if an element is NaN or infinite in one matrix it must be the same in the other.
A - Matrix AB - Matrix Btol - Tolerancepublic static void assertEquals(org.ejml.data.RealMatrix64F A,
org.ejml.data.RealMatrix64F B,
double tol)
Checks to see if each element in the matrices are within tolerance of each other and countable:
The two matrices are identical with in tolerance if:
|aij - bij| ≤ tol
The test will fail if any element in either matrix is NaN or infinite.
A - Matrix AB - Matrix Btol - Tolerancepublic static void assertEquals(org.ejml.data.RealMatrix32F A,
org.ejml.data.RealMatrix32F B,
float tol)
public static void assertEquals(org.ejml.data.Complex64F a,
org.ejml.data.Complex64F b,
double tol)
public static void assertEquals(org.ejml.data.ComplexMatrix64F A,
org.ejml.data.ComplexMatrix64F B,
double tol)
public static void assertEqualsTrans(org.ejml.data.RealMatrix64F A,
org.ejml.data.RealMatrix64F B,
double tol)
Checks to see if the transpose of B is equal to A and countable:
|aij - bji| ≤ tol
The test will fail if any element in either matrix is NaN or infinite.
A - Matrix AB - Matrix Btol - Tolerance