Class MatrixTuple

java.lang.Object
org.tribuo.math.la.MatrixTuple

public class MatrixTuple extends Object
A mutable tuple used to avoid allocation when iterating a matrix.

While it does implement hashcode, don't use it as a key as the hashcode is data dependent.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    The i index.
    int
    The j index.
    double
    The value.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs an empty matrix tuple.
    MatrixTuple(int i, int j, int value)
    Constructs a matrix tuple with the specified values.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • i

      public int i
      The i index.
    • j

      public int j
      The j index.
    • value

      public double value
      The value.
  • Constructor Details

    • MatrixTuple

      public MatrixTuple()
      Constructs an empty matrix tuple.
    • MatrixTuple

      public MatrixTuple(int i, int j, int value)
      Constructs a matrix tuple with the specified values.
      Parameters:
      i - The i index.
      j - The j index.
      value - The value.
  • Method Details