Package org.djunits.value.vfloat.matrix
Class FloatMatrixMethodTest
- java.lang.Object
-
- org.djunits.value.vfloat.matrix.FloatMatrixMethodTest
-
public class FloatMatrixMethodTest extends Object
...
-
-
Constructor Summary
Constructors Constructor Description FloatMatrixMethodTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
memoryTest()
Execute a mats++-like memory test on a sparse matrix.void
sparseValueTest()
Test the sparse value class.<U extends Unit<U>>
voidtestAsUnit()
Test theas
method of the FloatSIMatrix class.void
testEquals()
Test the equals method.void
testImmutableMatrix()
Test if mutable methods give an error in case the matrix is immutable.void
testInstantiateAbs()
Test the instantiateAbs method and instantiateScalarAbsSI method.void
testMatrixMethods()
Test the standard methods of all matrix classes.void
testMatrixToString()
Test toString() methods.void
testSpecialMatrixMethodsRelWithAbs()
Test the extra methods that Absolute and Relative with Absolute matrices implement.
-
-
-
Method Detail
-
testMatrixMethods
public void testMatrixMethods() throws ValueRuntimeException, UnitException
Test 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 theas
method of the FloatSIMatrix 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.
-
-