Package smile.math.matrix
Class SparseMatrix.Entry
java.lang.Object
smile.math.matrix.SparseMatrix.Entry
- Enclosing class:
SparseMatrix
Encapsulates an entry in a matrix for use in streaming. As typical stream object,
this object is immutable. But we can update the corresponding value in the matrix
through
update
method. This provides an efficient way to update the
non-zero entries of a sparse matrix.-
Field Summary
-
Method Summary
-
Field Details
-
i
public final int iThe row index. -
j
public final int jThe column index. -
x
public final double xThe value. -
index
public final int indexThe index to the matrix storage.
-
-
Method Details