Package org.djunits.vecmat.dnxm
Class AbsMatrixNxMTest
java.lang.Object
org.djunits.vecmat.dnxm.AbsMatrixNxMTest
Tests for
AbsMatrixNxM.
This class provides exhaustive coverage of AbsMatrixNxM and all inherited functionality from AbsMatrix, AbsTable, AbsVectorMatrix and Value.
Copyright (c) 2026-2026 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djunits.org. The DJUNITS project is distributed under a three-clause BSD-style license.
- Author:
- Alexander Verbraeck
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTest of(A[]) and of(A[][]) factory methods.voidTest add() and subtract() methods.voidVerify as* matrix conversions and shape checks.voidVerify asAbsQuantityTable() conversion and shape checks.voidVerify as* vector conversions for 2/3/N Col and Row, plus shape checks.voidTest constructor and base methods such as rows(), cols(), order().voidTest exceptions for constructor.voidTest equals(), hashCode().voidTest 0-based scalar row and column access.voidTest 0-based row and column SI access.voidTest 0-based vector row and column access.voidTest instantiateSi().voidTest 1-based scalar row and column access.voidTest 1-based row and column SI access.voidTest 1-based vector row and column access.voidTest min(), max() and median().voidTest scalar and SI array / grid extraction.voidTest all of() and ofSi() static factories.voidTest toString().voidTest transpose().voidTest mgetRowVector and getColumnVector.
-
Constructor Details
-
AbsMatrixNxMTest
public AbsMatrixNxMTest()
-
-
Method Details
-
testCtorBase
@Test public void testCtorBase()Test constructor and base methods such as rows(), cols(), order(). -
testCtorBaseExceptions
@Test public void testCtorBaseExceptions()Test exceptions for constructor. -
testInstantiateSi
@Test public void testInstantiateSi()Test instantiateSi(). -
testStaticFactories
@Test public void testStaticFactories()Test all of() and ofSi() static factories. -
testAbsoluteFactories
@Test public void testAbsoluteFactories()Test of(A[]) and of(A[][]) factory methods. -
testScalarAndSiGrids
@Test public void testScalarAndSiGrids()Test scalar and SI array / grid extraction. -
testGetRowAndColumnSi
@Test public void testGetRowAndColumnSi()Test 0-based row and column SI access. -
testGetRowAndColumnScalars
@Test public void testGetRowAndColumnScalars()Test 0-based scalar row and column access. -
testMgetRowAndColumnSi
@Test public void testMgetRowAndColumnSi()Test 1-based row and column SI access. -
testMgetRowAndColumnScalars
@Test public void testMgetRowAndColumnScalars()Test 1-based scalar row and column access. -
testGetRowAndColumnVector
@Test public void testGetRowAndColumnVector()Test 0-based vector row and column access. -
testMgetRowAndColumnVector
@Test public void testMgetRowAndColumnVector()Test 1-based vector row and column access. -
testMinMaxMedian
@Test public void testMinMaxMedian()Test min(), max() and median(). -
testTranspose
@Test public void testTranspose()Test transpose(). -
testAddSubtract
@Test public void testAddSubtract()Test add() and subtract() methods. -
testAsAbsMatrixConversions
@Test @DisplayName("asAbsMatrix2x2 / asAbsMatrix3x3 / asAbsMatrixNxN") public void testAsAbsMatrixConversions()Verify as* matrix conversions and shape checks. -
testAsAbsVectorConversions
@Test @DisplayName("asAbsVector2/3/N (Col/Row) conversions") public void testAsAbsVectorConversions()Verify as* vector conversions for 2/3/N Col and Row, plus shape checks. -
testAsAbsQuantityTableConversions
@Test @DisplayName("asAbsQuantityTable") public void testAsAbsQuantityTableConversions()Verify asAbsQuantityTable() conversion and shape checks. -
testToString
@Test public void testToString()Test toString(). -
testEqualsHashCode
@Test public void testEqualsHashCode()Test equals(), hashCode(). -
testVectorAccess
@Test public void testVectorAccess()Test mgetRowVector and getColumnVector.
-