public static final class SparseMatrix.Entry extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SparseMatrix.Entry.TopLeftFirstComparator
This
Comparator sorts the matrix coordinates first from top to
bottom (rows), and then from left to right (columns). |
Modifier and Type | Field and Description |
---|---|
MatrixCoordinate |
coordinates
the coordinates of this entry
|
double |
value
the entry value
|
Constructor and Description |
---|
Entry(MatrixCoordinate coordinates,
double value)
Construct a sparse entry in a sparse matrix.
|
public final MatrixCoordinate coordinates
public final double value
public Entry(MatrixCoordinate coordinates, double value)
coordinates
- the entry coordinatesvalue
- the entry valueCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.