Package org.djunits.value.vfloat.matrix
Class FloatMatrixInstantiateTest
- java.lang.Object
-
- org.djunits.value.vfloat.matrix.FloatMatrixInstantiateTest
-
public class FloatMatrixInstantiateTest extends Object
FloatMatrixInstantiateTest.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 FloatMatrixInstantiateTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>
voidinstantiateRelAbsMatrixTypes()
Test the extra methods that Absolute and Relative with Absolute matrices implement.<U extends Unit<U>,S extends FloatScalarInterface<U,S>,V extends FloatVectorInterface<U,S,V>,M extends FloatMatrixInterface<U,S,V,M>>
voidinstatiateAllMatrixTypes()
Test the constructors of all matrix classes.void
testInstantiateEdgeCases()
Test the instantiation of dense and sparse matrix types with one row or one column, and errors with null pointers.void
testInstantiateRectDenseData()
Test the instantiation of dense and sparse matrix types with dense data (no zeros).void
testInstantiateRectDenseDataWithClass()
Test the instantiation of dense and sparse matrix types with dense data (no zeros).void
testInstantiateRectSIUnit()
Test the instantiation of dense and sparse matrix types with dense data (no zeros).void
testInstantiateSquareDenseData()
Test the instantiation of dense and sparse matrix types with dense data (no zeros).void
testInstantiateSquareDenseDataWithClass()
Test the instantiation of dense and sparse matrix types with dense data (no zeros).void
testInstantiateSquareSIUnit()
Test the instantiation of dense and sparse matrix types with dense data (no zeros).void
testInstantiateZero()
Test matrix construction and operations with zero length.void
testInstantiatRectSparseData()
Test the instantiation of dense and sparse matrix types with sparse data (90% zeros).void
testInstantiatRectSparseDataWithClass()
Test the instantiation of dense and sparse matrix types with sparse data (90% zeros).void
testInstantiatSquareSparseData()
Test the instantiation of dense and sparse matrix types with sparse data (90% zeros).void
testInstantiatSquareSparseDataWithClass()
Test the instantiation of dense and sparse matrix types with sparse data (90% zeros).
-
-
-
Method Detail
-
instatiateAllMatrixTypes
public <U extends Unit<U>,S extends FloatScalarInterface<U,S>,V extends FloatVectorInterface<U,S,V>,M extends FloatMatrixInterface<U,S,V,M>> void instatiateAllMatrixTypes()
Test the constructors of all matrix classes.- Type Parameters:
U
- the unit typeS
- the scalar typeV
- the vector typeM
- the matrix type
-
instantiateRelAbsMatrixTypes
public <AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>> void instantiateRelAbsMatrixTypes()
Test the extra methods that Absolute and Relative with Absolute matrices implement.- Type Parameters:
AU
- the absolute unit typeRU
- the relative unit type
-
testInstantiateSquareDenseData
public void testInstantiateSquareDenseData()
Test the instantiation of dense and sparse matrix types with dense data (no zeros).
-
testInstantiatSquareSparseData
public void testInstantiatSquareSparseData()
Test the instantiation of dense and sparse matrix types with sparse data (90% zeros).
-
testInstantiateSquareDenseDataWithClass
public void testInstantiateSquareDenseDataWithClass()
Test the instantiation of dense and sparse matrix types with dense data (no zeros).
-
testInstantiatSquareSparseDataWithClass
public void testInstantiatSquareSparseDataWithClass()
Test the instantiation of dense and sparse matrix types with sparse data (90% zeros).
-
testInstantiateSquareSIUnit
public void testInstantiateSquareSIUnit() throws UnitException
Test the instantiation of dense and sparse matrix types with dense data (no zeros).- Throws:
UnitException
- on error
-
testInstantiateRectDenseData
public void testInstantiateRectDenseData()
Test the instantiation of dense and sparse matrix types with dense data (no zeros).
-
testInstantiatRectSparseData
public void testInstantiatRectSparseData()
Test the instantiation of dense and sparse matrix types with sparse data (90% zeros).
-
testInstantiateRectDenseDataWithClass
public void testInstantiateRectDenseDataWithClass()
Test the instantiation of dense and sparse matrix types with dense data (no zeros).
-
testInstantiatRectSparseDataWithClass
public void testInstantiatRectSparseDataWithClass()
Test the instantiation of dense and sparse matrix types with sparse data (90% zeros).
-
testInstantiateRectSIUnit
public void testInstantiateRectSIUnit() throws UnitException
Test the instantiation of dense and sparse matrix types with dense data (no zeros).- Throws:
UnitException
- on error
-
testInstantiateEdgeCases
public void testInstantiateEdgeCases()
Test the instantiation of dense and sparse matrix types with one row or one column, and errors with null pointers.
-
testInstantiateZero
public void testInstantiateZero()
Test matrix construction and operations with zero length.
-
-