Package org.djunits.vecmat.d2
Class AbsVector2Test
java.lang.Object
org.djunits.vecmat.d2.AbsVector2Test
Tests for
AbsVector2.
This class provides exhaustive coverage of AbsVector2.Col and AbsVector2.Row and all inherited functionality from AbsVector, 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[]) static factories for column matrices.voidTest of(A) and of(A[]) static factories for row matrices.voidTest AbsVector2.Col as() functions.voidTest AbsVector2.Row as() functions.voidTest add() and subtract() methods for column vectors.voidTest add() and subtract() methods for row vectors.voidTest constructor and base methods such as rows(), cols(), size() for column vector.voidTest exceptions for row and column constructor.voidTest constructor and base methods such as rows(), cols(), size() for row vector.voidTest equals(), hashCode() for column vectors.voidTest equals(), hashCode() for row vectors.voidTest instantiate() and instantiateSi() for column matrices.voidTest instantiate() and instantiateSi() for row matrices.voidTest iterator for column vectors.voidTest iterator for row vectors.voidTest min(), max() and median() for column vectors.voidTest min(), max() and median() for row vectors.voidTest scalar and SI array extraction for column vectors.voidTest scalar and SI array extraction for row vectors.voidTest all of() and ofSi() static factories for column matrices.voidTest all of() and ofSi() static factories for row matrices.voidTest toString() for column vectors.voidTest toString() for row vectors.voidTest transpose().
-
Constructor Details
-
AbsVector2Test
public AbsVector2Test()
-
-
Method Details
-
testCtorBaseCol
@Test public void testCtorBaseCol()Test constructor and base methods such as rows(), cols(), size() for column vector. -
testCtorBaseRow
@Test public void testCtorBaseRow()Test constructor and base methods such as rows(), cols(), size() for row vector. -
testCtorBaseExceptions
@Test public void testCtorBaseExceptions()Test exceptions for row and column constructor. -
testInstantiateCol
@Test public void testInstantiateCol()Test instantiate() and instantiateSi() for column matrices. -
testInstantiateRow
@Test public void testInstantiateRow()Test instantiate() and instantiateSi() for row matrices. -
testStaticFactoriesCol
@Test public void testStaticFactoriesCol()Test all of() and ofSi() static factories for column matrices. -
testStaticFactoriesRow
@Test public void testStaticFactoriesRow()Test all of() and ofSi() static factories for row matrices. -
testAbsStaticFactoriesCol
@Test public void testAbsStaticFactoriesCol()Test of(A) and of(A[]) static factories for column matrices. -
testAbsStaticFactoriesRow
@Test public void testAbsStaticFactoriesRow()Test of(A) and of(A[]) static factories for row matrices. -
testScalarAndSiArrayCol
@Test public void testScalarAndSiArrayCol()Test scalar and SI array extraction for column vectors. -
testScalarAndSiArrayRow
@Test public void testScalarAndSiArrayRow()Test scalar and SI array extraction for row vectors. -
testMinMaxMedianCol
@Test public void testMinMaxMedianCol()Test min(), max() and median() for column vectors. -
testMinMaxMedianRow
@Test public void testMinMaxMedianRow()Test min(), max() and median() for row vectors. -
testTranspose
@Test public void testTranspose()Test transpose(). -
testAddSubtractCol
@Test public void testAddSubtractCol()Test add() and subtract() methods for column vectors. -
testAddSubtractRow
@Test public void testAddSubtractRow()Test add() and subtract() methods for row vectors. -
testIteratorCol
@Test public void testIteratorCol()Test iterator for column vectors. -
testIteratorRow
@Test public void testIteratorRow()Test iterator for row vectors. -
testToStringCol
@Test public void testToStringCol()Test toString() for column vectors. -
testToStringRow
@Test public void testToStringRow()Test toString() for row vectors. -
testEqualsHashCodeCol
@Test public void testEqualsHashCodeCol()Test equals(), hashCode() for column vectors. -
testEqualsHashCodeRow
@Test public void testEqualsHashCodeRow()Test equals(), hashCode() for row vectors. -
testAbsVector2ColAsFunctions
@Test @DisplayName("AbsVector2.Col as() functions test") public void testAbsVector2ColAsFunctions()Test AbsVector2.Col as() functions. -
testAbsVector2RowAsFunctions
@Test @DisplayName("AbsVector2.Row as() functions test") public void testAbsVector2RowAsFunctions()Test AbsVector2.Row as() functions.
-