|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.kernel.math.algebra.AbstractMdMatrix<R,C>
sbrt.kernel.math.algebra.AbstractSmdMatrix<R,C>
R
- the row type.C
- the column type.public abstract class AbstractSmdMatrix<R,C>
This abstract class is a skeleton implementation of SmdMatrix.
Constructor Summary | |
---|---|
AbstractSmdMatrix()
|
Method Summary | ||
---|---|---|
boolean |
equals(java.lang.Object obj)
Indicates if the provided object is equal to this matrix. |
|
int |
hashCode()
Returns a content-based hash code. |
|
|
setElement(X rowIndex,
Y columnIndex,
double value)
Sets the element at the provided row and column indices to the provided double precision value. |
|
void |
setElements(java.util.Map<IndexPair<R,C>,java.lang.Double> elements)
Sets the corresponding elements of this matrix to those provided. |
|
void |
setElements(Matrix<? extends R,? extends C,? extends java.lang.Double> m)
Sets the corresponding elements of this matrix to those of the provided matrix. |
|
void |
setElements(SparseDoubleMatrix<? extends R,? extends C> m)
Sets the corresponding elements of this matrix to those of the provided matrix. |
|
java.util.List<LinearComb<C>> |
toLinearCombs()
Returns this matrix as a list of linear combinations. |
Methods inherited from class sbrt.kernel.math.algebra.AbstractMdMatrix |
---|
isEmpty, setElements, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface sbrt.kernel.math.algebra.DoubleMatrixBuilder |
---|
setElements |
Methods inherited from interface sbrt.kernel.math.algebra.MatrixBuilder |
---|
removeColumn, removeRow, setElement |
Methods inherited from interface sbrt.kernel.math.algebra.SparseDoubleMatrix |
---|
getColIndNzEl, getColumn, getRow, getRowIndNzEl |
Methods inherited from interface sbrt.kernel.math.algebra.DoubleMatrix |
---|
getElement |
Methods inherited from interface sbrt.kernel.math.algebra.Matrix |
---|
columns, getColumnIndices, getRowIndices, isColumnIndex, isEmpty, isRowIndex, rows, toString |
Constructor Detail |
---|
public AbstractSmdMatrix()
Method Detail |
---|
public <X extends R,Y extends C> void setElement(X rowIndex, Y columnIndex, double value)
setElement
in interface DoubleMatrixBuilder<R,C>
X
- a type extending the primary row type.Y
- a type extending the primary column type.rowIndex
- the row index.columnIndex
- the column index.value
- the double precision element value.public void setElements(Matrix<? extends R,? extends C,? extends java.lang.Double> m)
setElements
in interface MatrixBuilder<R,C,java.lang.Double>
m
- the matrix whose elements are to be copied
into this matrix.public void setElements(SparseDoubleMatrix<? extends R,? extends C> m)
setElements
in interface SmdMatrix<R,C>
m
- the matrix whose elements are to be copied
into this matrix.public void setElements(java.util.Map<IndexPair<R,C>,java.lang.Double> elements)
elements
- the elements to be copied into this matrix.public boolean equals(java.lang.Object obj)
equals
in interface Matrix<R,C,java.lang.Double>
equals
in class AbstractMdMatrix<R,C>
obj
- the object with which to compare.
true
if this object equals the provided
object; false
otherwise.public int hashCode()
hashCode
in interface Matrix<R,C,java.lang.Double>
hashCode
in class AbstractMdMatrix<R,C>
public java.util.List<LinearComb<C>> toLinearCombs()
toLinearCombs
in interface DoubleMatrix<R,C>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |