Package org.tribuo.math.la
Class MatrixTuple
java.lang.Object
org.tribuo.math.la.MatrixTuple
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
-
Constructor Summary
ConstructorDescriptionConstructs an empty matrix tuple.MatrixTuple
(int i, int j, int value) Constructs a matrix tuple with the specified values. -
Method Summary
-
Field Details
-
i
public int iThe i index. -
j
public int jThe j index. -
value
public double valueThe 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