Package org.djunits.value.vdouble.matrix
Class DoubleMatrixMethodTest
- java.lang.Object
-
- org.djunits.value.vdouble.matrix.DoubleMatrixMethodTest
-
public class DoubleMatrixMethodTest extends Object
...
-
-
Constructor Summary
Constructors Constructor Description DoubleMatrixMethodTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmemoryTest()Execute a mats++-like memory test on a sparse matrix.voidsparseValueTest()Test the sparse value class.<U extends Unit<U>>
voidtestAsUnit()Test theasmethod of the SIMatrix class.voidtestEquals()Test the equals method.voidtestImmutableMatrix()Test if mutable methods give an error in case the matrix is immutable.voidtestInstantiateAbs()Test the instantiateAbs method and instantiateScalarAbsSI method.voidtestMatrixMethods()Test the standard methods of all matrix classes.voidtestMatrixToString()Test toString() methods.voidtestSpecialMatrixMethodsRelWithAbs()Test the extra methods that Absolute and Relative with Absolute matrices implement.
-
-
-
Method Detail
-
testMatrixMethods
public void testMatrixMethods() throws ValueRuntimeException, UnitExceptionTest the standard methods of all matrix classes.- Throws:
UnitException- on errorValueRuntimeException- on error
-
testImmutableMatrix
public void testImmutableMatrix()
Test if mutable methods give an error in case the matrix is immutable.
-
testMatrixToString
public void testMatrixToString()
Test toString() methods. TODO: expand?
-
testSpecialMatrixMethodsRelWithAbs
public void testSpecialMatrixMethodsRelWithAbs()
Test the extra methods that Absolute and Relative with Absolute matrices implement.
-
memoryTest
public void memoryTest()
Execute a mats++-like memory test on a sparse matrix. See Memory Test.
-
testInstantiateAbs
public void testInstantiateAbs()
Test the instantiateAbs method and instantiateScalarAbsSI method.
-
testAsUnit
public <U extends Unit<U>> void testAsUnit() throws ClassNotFoundException, NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, UnitException
Test theasmethod of the SIMatrix class.- Type Parameters:
U- the unit type- Throws:
SecurityException- on errorNoSuchMethodException- on errorInvocationTargetException- on errorIllegalArgumentException- on errorIllegalAccessException- on errorClassNotFoundException- on errorUnitException- on error
-
testEquals
public void testEquals()
Test the equals method.
-
sparseValueTest
public void sparseValueTest()
Test the sparse value class.
-
-