Package org.djunits.vecmat.def
Class AbsMatrix<A extends AbsQuantity<A,Q,?>,Q extends Quantity<Q>,MA extends AbsMatrix<A,Q,MA,MQ,MAT>,MQ extends Matrix<Q,MQ,?,?,?>,MAT extends AbsMatrix<A,Q,MAT,?,MA>>
java.lang.Object
org.djunits.vecmat.def.AbsVectorMatrix<A,Q,MA,MQ,MAT>
org.djunits.vecmat.def.AbsTable<A,Q,MA,MQ,MAT>
org.djunits.vecmat.def.AbsMatrix<A,Q,MA,MQ,MAT>
- Type Parameters:
A- the absolute quantity typeQ- the quantity typeMA- the absolute matrix typeMQ- the relative matrix typeMAT- the type of the transposed version of the absolute matrix
- All Implemented Interfaces:
Serializable,Value<MA,Q>
- Direct Known Subclasses:
AbsMatrixNxM,AbsSquareMatrix
public abstract class AbsMatrix<A extends AbsQuantity<A,Q,?>,Q extends Quantity<Q>,MA extends AbsMatrix<A,Q,MA,MQ,MAT>,MQ extends Matrix<Q,MQ,?,?,?>,MAT extends AbsMatrix<A,Q,MAT,?,MA>>
extends AbsTable<A,Q,MA,MQ,MAT>
AbsMatrix contains a number of standard operations on matrices that contain absolute quantities.
Copyright (c) 2025-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
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.djunits.vecmat.def.AbsTable
get, getColumnScalars, getColumnSi, getColumnVector, getRowScalars, getRowSi, getRowVector, getScalarArray, getScalarGrid, getSiArray, getSiGrid, mget, mgetColumnScalars, mgetColumnSi, mgetColumnVector, mgetRowScalars, mgetRowSi, mgetRowVector, msi, siMethods inherited from class org.djunits.vecmat.def.AbsVectorMatrix
add, add, asAbsMatrix1x1, asAbsMatrix2x2, asAbsMatrix3x3, asAbsMatrixNxM, asAbsMatrixNxN, asAbsQuantityTable, asAbsVector1, asAbsVector2Col, asAbsVector2Row, asAbsVector3Col, asAbsVector3Row, asAbsVectorNCol, asAbsVectorNRow, checkCol, checkRow, cols, equals, getDisplayUnit, getReference, getRelativeVecMat, hashCode, instantiate, instantiateSi, isRelative, max, mcheckCol, mcheckRow, median, min, rows, setDisplayUnit, subtract, subtract, subtract, subtract, toString, transposeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.djunits.value.Value
isAbsolute, setDisplayUnit
-
Constructor Details
-
AbsMatrix
Create a new matrix of absolute values with a reference point.- Parameters:
matrix- the underlying relative matrix with SI values relative to the reference pointreference- the reference point for the absolute values
-
-
Method Details
-
format
Concise description of this matrix.- Returns:
- a String with the matrix, with the unit attached.
-
format
String representation of this matrix after applying the format.- Parameters:
format- the format to apply for the matrix- Returns:
- a String representation of this matrix, formatted according to the given format
-
format
String representation of this matrix, expressed in the specified unit.- Parameters:
targetUnit- the unit into which the values of the matrix are converted for display- Returns:
- printable string with the matrix's values expressed in the specified unit
-