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 type
Q - the quantity type
MA - the absolute matrix type
MQ - the relative matrix type
MAT - 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 Details

    • AbsMatrix

      public AbsMatrix(MQ matrix, Reference<?,A,Q> reference)
      Create a new matrix of absolute values with a reference point.
      Parameters:
      matrix - the underlying relative matrix with SI values relative to the reference point
      reference - the reference point for the absolute values
  • Method Details

    • format

      public String format()
      Concise description of this matrix.
      Returns:
      a String with the matrix, with the unit attached.
    • format

      public String format(MatrixFormat 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

      public String format(Unit<?,Q> targetUnit)
      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