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
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 org.djunits.unit.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.
-
Constructor Details
-
FloatMatrixMethodTest
public FloatMatrixMethodTest()
-
-
Method Details
-
testMatrixMethods
public void testMatrixMethods() throws org.djunits.value.ValueRuntimeException, org.djunits.unit.util.UnitExceptionTest the standard methods of all matrix classes.- Throws:
org.djunits.unit.util.UnitException
- on errororg.djunits.value.ValueRuntimeException
- 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 org.djunits.unit.Unit<U>> void testAsUnit() throws ClassNotFoundException, NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, org.djunits.unit.util.UnitExceptionTest 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 errororg.djunits.unit.util.UnitException
- on error
-
testEquals
public void testEquals()Test the equals method. -
sparseValueTest
public void sparseValueTest()Test the sparse value class.
-