Class DoubleMatrixInstantiateTest

java.lang.Object
org.djunits.value.vdouble.matrix.DoubleMatrixInstantiateTest

public class DoubleMatrixInstantiateTest
extends Object
DoubleMatrixInstantiateTest.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 Details

  • Method Details

    • instatiateAllMatrixTypes

      public <U extends org.djunits.unit.Unit<U>> void instatiateAllMatrixTypes()
      Test the constructors of all matrix classes.
      Type Parameters:
      U - the unit type
    • instantiateRelAbsMatrixTypes

      public <AU extends org.djunits.unit.AbsoluteLinearUnit<AU,​ RU>,​ RU extends org.djunits.unit.Unit<RU>> void instantiateRelAbsMatrixTypes()
      Test the extra methods that Absolute and Relative with Absolute matrices implement.
      Type Parameters:
      AU - the absolute unit type
      RU - 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 org.djunits.unit.util.UnitException
      Test the instantiation of dense and sparse matrix types with dense data (no zeros).
      Throws:
      org.djunits.unit.util.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 org.djunits.unit.util.UnitException
      Test the instantiation of dense and sparse matrix types with dense data (no zeros).
      Throws:
      org.djunits.unit.util.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 and/or zero rows/columns.