|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.kernel.math.algebra.MatrixElement<R,C,E>
R
- the row index type.C
- the column index type.E
- the matrix element type.public final class MatrixElement<R,C,E>
This class is used to represent matrix elements.
Constructor Summary | |
---|---|
MatrixElement(IndexPair<R,C> indices,
U element)
Constructs a new matrix element. |
|
MatrixElement(S rowIndex,
T columnIndex,
U element)
Constructs a new matrix element. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Indicates if this matrix element is equal to the provided object. |
C |
getColumnIndex()
Returns the column index of this matrix element. |
E |
getElement()
Returns the value of this matrix element. |
IndexPair<R,C> |
getIndices()
Returns the pair of indices. |
R |
getRowIndex()
Returns the row index of this matrix element. |
int |
hashCode()
Returns a content-based hash code. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MatrixElement(S rowIndex, T columnIndex, U element)
S
- a type extending the primary row type.T
- a type extending the primary column type.U
- a type extending the primary element type.rowIndex
- the row index.columnIndex
- the column index.element
- the matrix element at the specified row and column indices.public MatrixElement(IndexPair<R,C> indices, U element)
U
- a type extending the primary element type.indices
- the row and column index of this element.element
- the matrix element at the specified row and column indices.Method Detail |
---|
public R getRowIndex()
public C getColumnIndex()
public IndexPair<R,C> getIndices()
public E getElement()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.
true
if this matrix element equals the provided object;
false
otherwise.public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |