Class Matrix2x2<Q extends Quantity<Q>>

Type Parameters:
Q - the quantity type
All Implemented Interfaces:
Serializable, Additive<Matrix2x2<Q>>, Scalable<Matrix2x2<Q>>, Value<Matrix2x2<Q>,Q>, Hadamard<Matrix2x2<?>,Matrix2x2<SIQuantity>>

public class Matrix2x2<Q extends Quantity<Q>> extends SquareDenseMatrix<Q,Matrix2x2<Q>,Matrix2x2<SIQuantity>,Matrix2x2<?>>
Matrix2x2 implements a matrix with 2x2 real-valued entries. The matrix is immutable, except for the display unit, which can be changed.

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

    • Matrix2x2

      protected Matrix2x2(double[] dataSi, Unit<?,Q> displayUnit)
      Create a new Matrix2x2 with a unit.
      Parameters:
      dataSi - the matrix values {a11, a12, a21, a22} expressed in the SI-unit
      displayUnit - the display unit for the matrix
  • Method Details