|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
R
- the row index type.C
- the column index type.E
- the element type.public interface MatrixBuilder<R,C,E>
This interface is used to represent mutable matrices.
Method Summary | ||
---|---|---|
void |
removeColumn(java.lang.Object columnIndex)
Removes the column corresponding to the provided column index. |
|
void |
removeRow(java.lang.Object rowIndex)
Removes the row corresponding to the provided row index. |
|
|
setElement(X rowIndex,
Y columnIndex,
Z elementValue)
Sets the element at the provided row and column indices to the one provided. |
|
void |
setElements(Matrix<? extends R,? extends C,? extends E> m)
Sets the corresponding elements of this matrix to those of the provided matrix. |
Methods inherited from interface sbrt.kernel.math.algebra.Matrix |
---|
columns, equals, getColumn, getColumnIndices, getElement, getRow, getRowIndices, hashCode, isColumnIndex, isEmpty, isRowIndex, rows, toString |
Method Detail |
---|
void removeRow(java.lang.Object rowIndex)
rowIndex
- the index of the row to be removed.void removeColumn(java.lang.Object columnIndex)
columnIndex
- the index of the column to be removed.void setElements(Matrix<? extends R,? extends C,? extends E> m)
m
- the matrix whose elements are to be copied
into this matrix.<X extends R,Y extends C,Z extends E> void setElement(X rowIndex, Y columnIndex, Z elementValue)
X
- a type extending the primary row index type.Y
- a type extending the primary column index type.Z
- a type extending the primary element type.rowIndex
- the row index.columnIndex
- the column index.elementValue
- the element.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |