Package smile.util

Class SparseArray.Entry

java.lang.Object
smile.util.SparseArray.Entry
Enclosing class:
SparseArray

public class SparseArray.Entry extends Object
The entry in a sparse array of double values.
  • Field Details

    • i

      public final int i
      The index of entry.
    • x

      public final double x
      The value of entry.
  • Method Details

    • update

      public void update(double x)
      Update the value of entry in the array. Note that the field x is final and thus not updated.
      Parameters:
      x - the new entry value.
    • toString

      public String toString()
      Overrides:
      toString in class Object