Class VectorTuple

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

public class VectorTuple extends Object
A mutable tuple used to avoid allocation when iterating a vector.

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

  • Field Details

    • DELTA

      public static final double DELTA
      See Also:
    • index

      public int index
    • value

      public double value
  • Constructor Details

    • VectorTuple

      public VectorTuple()
    • VectorTuple

      public VectorTuple(int index, int value)
  • Method Details