|
||||||||||
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>
R
- the row type.C
- the column type.public abstract class AbstractMdMatrix<R,C>
This abstract class is a skeleton implementation of DoubleMatrixBuilder.
Constructor Summary | |
---|---|
AbstractMdMatrix()
|
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. |
boolean |
isEmpty()
Indicates if this matrix is empty. |
void |
setElements(DoubleMatrix<? extends R,? extends C> m)
Sets the corresponding elements of this matrix to those of the provided matrix. |
java.lang.String |
toString()
Returns a string representation of this matrix. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface sbrt.kernel.math.algebra.DoubleMatrixBuilder |
---|
setElement |
Methods inherited from interface sbrt.kernel.math.algebra.MatrixBuilder |
---|
removeColumn, removeRow, setElement, setElements |
Methods inherited from interface sbrt.kernel.math.algebra.DoubleMatrix |
---|
getColumn, getElement, getRow, toLinearCombs |
Methods inherited from interface sbrt.kernel.math.algebra.Matrix |
---|
columns, getColumnIndices, getRowIndices, isColumnIndex, isRowIndex, rows |
Constructor Detail |
---|
public AbstractMdMatrix()
Method Detail |
---|
public boolean isEmpty()
isEmpty
in interface Matrix<R,C,java.lang.Double>
rows() == 0 && columns() == 0
.public java.lang.String toString()
toString
in interface Matrix<R,C,java.lang.Double>
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in interface Matrix<R,C,java.lang.Double>
equals
in class java.lang.Object
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 java.lang.Object
public void setElements(DoubleMatrix<? extends R,? extends C> m)
setElements
in interface DoubleMatrixBuilder<R,C>
m
- the matrix whose elements are to be copied
into this matrix.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |