com.numericalmethod.suanshu.matrix.doubles.matrixtype.sparse
Class SparseElement
java.lang.Object
com.numericalmethod.suanshu.matrix.doubles.matrixtype.sparse.SparseElement
public final class SparseElement
- extends java.lang.Object
This class represents a matrix element in a sparse matrix.
|
Constructor Summary |
SparseElement(Coordinates coordinates,
double value)
Create a sparse element with its coordinates and value. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
coordinates
public final Coordinates coordinates
- the coordinates of this element
value
public final double value
- the value of this element
SparseElement
public SparseElement(Coordinates coordinates,
double value)
- Create a sparse element with its coordinates and value.
- Parameters:
coordinates - the coordinates of the elementvalue - the value of the element
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.