Package org.djunits.value.vfloat.matrix
Class FloatSIMatrixTest
java.lang.Object
org.djunits.value.vfloat.matrix.FloatSIMatrixTest
public class FloatSIMatrixTest extends Object
Test.java.
Copyright (c) 2019-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License
- Author:
- Alexander Verbraeck
-
Constructor Summary
Constructors Constructor Description FloatSIMatrixTest() -
Method Summary
Modifier and Type Method Description <U extends org.djunits.unit.Unit<U>, S extends org.djunits.value.vfloat.scalar.base.AbstractFloatScalarRel<U, S>, V extends org.djunits.value.vfloat.vector.base.AbstractFloatVectorRel<U, S, V>, M extends org.djunits.value.vfloat.matrix.base.AbstractFloatMatrixRel<U, S, V, M>>
voidtestAsAll()Test all "asXX" methods.voidtestDimensionLess()Test the methods that are only implemented in DimensionLess matrices.static voidverifyDimensionLessMatrix(float[][] reference, org.djunits.value.vfloat.function.FloatFunction operation, org.djunits.value.vfloat.matrix.FloatDimensionlessMatrix got)Verify the contents of a FloatDimensionlessVector.
-
Constructor Details
-
FloatSIMatrixTest
public FloatSIMatrixTest()
-
-
Method Details
-
testAsAll
public <U extends org.djunits.unit.Unit<U>, S extends org.djunits.value.vfloat.scalar.base.AbstractFloatScalarRel<U, S>, V extends org.djunits.value.vfloat.vector.base.AbstractFloatVectorRel<U, S, V>, M extends org.djunits.value.vfloat.matrix.base.AbstractFloatMatrixRel<U, S, V, M>> void testAsAll() throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, ClassNotFoundException, org.djunits.unit.util.UnitExceptionTest all "asXX" methods.- Type Parameters:
U- the unit typeS- the scalar typeV- the vector typeM- the matrix type- Throws:
SecurityException- on errorNoSuchMethodException- on errorInvocationTargetException- on errorIllegalArgumentException- on errorIllegalAccessException- on errorClassNotFoundException- on errororg.djunits.unit.util.UnitException- on error
-
testDimensionLess
public void testDimensionLess()Test the methods that are only implemented in DimensionLess matrices. -
verifyDimensionLessMatrix
public static void verifyDimensionLessMatrix(float[][] reference, org.djunits.value.vfloat.function.FloatFunction operation, org.djunits.value.vfloat.matrix.FloatDimensionlessMatrix got)Verify the contents of a FloatDimensionlessVector.- Parameters:
reference- float[]; the values on which theoperationneeds to be applied to get the values that must be verifiedoperation- FloatFunction; the operation that converts thereferencevalues to the values that must be verifiedgot- DimensionlessMatrix; the values that must be verified
-