Class FloatSparseValue<Q extends Quantity<Q,U>,U extends UnitInterface<U,Q>>

java.lang.Object
org.djunits.vecmat.storage.FloatSparseValue<Q,U>
Type Parameters:
Q - the quantity type of the value
U - the unit type of the value
All Implemented Interfaces:
Serializable

public class FloatSparseValue<Q extends Quantity<Q,U>,U extends UnitInterface<U,Q>> extends Object implements Serializable
Float-precision data point for a matrix that can be used for constructing sparse matrices.

Copyright (c) 2019-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.

Author:
Alexander Verbraeck
See Also:
  • Constructor Details

    • FloatSparseValue

      public FloatSparseValue(int row, int column, Q value)
      Create a data point for a sparse matrix.
      Parameters:
      row - the row of the sparse data point in the matrix
      column - the column of the sparse data point in the matrix
      value - the value in the given unit of the data point in the matrix
    • FloatSparseValue

      public FloatSparseValue(int row, int column, float valueInUnit, U unit)
      Create a data point for a sparse matrix.
      Parameters:
      row - the row of the sparse data point in the matrix
      column - the column of the sparse data point in the matrix
      valueInUnit - the value in the given unit of the data point in the matrix
      unit - the unit of the value
    • FloatSparseValue

      public FloatSparseValue(int row, int column, float si)
      Create a data point for a sparse matrix.
      Parameters:
      row - the row of the sparse data point in the matrix
      column - the column of the sparse data point in the matrix
      si - the SI value of the data point in the matrix
  • Method Details

    • getRow

      public final int getRow()
      Returns:
      the row in the matrix
    • getColumn

      public final int getColumn()
      Returns:
      the column in the matrix
    • si

      public final float si()
      Returns:
      the SI value of the data point in the matrix
    • toString

      public String toString()
      Overrides:
      toString in class Object