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 voidmemoryTest()Execute a mats++-like memory test on a sparse matrix.voidsparseValueTest()Test the sparse value class.<U extends org.djunits.unit.Unit<U>>
voidtestAsUnit()Test theasmethod of the FloatSIMatrix 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.
-
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 theasmethod 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.
-