Class MatrixEntry

java.lang.Object
jline.util.matrix.MatrixEntry

public final class MatrixEntry extends Object
A (row, column, value) triple returned by BaseMatrix.nonZeroIterator().

Iterators reuse a single instance for all entries to avoid allocation; callers must copy the fields if they need to retain an entry beyond the next call to next().

  • Field Details

    • row

      public int row
      Row index of the entry.
    • col

      public int col
      Column index of the entry.
    • value

      public double value
      Value of the entry.
  • Constructor Details

    • MatrixEntry

      public MatrixEntry()