Class MutableMatrix<E>
java.lang.Object
dk.jonaslindstrom.ruffini.common.matrices.elements.BaseMatrix<E>
dk.jonaslindstrom.ruffini.common.matrices.elements.MutableMatrix<E>
Instances of this class represents a mutable matrix.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionMutableMatrix(int m, int n, IntBinaryFunction<E> populator) MutableMatrix(int m, int n, E defaultValue) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns a new larger matrix of size m x n which has this matrix in the top left corner and pads the rest using the given padding value.get(int i, int j) getColumn(int j) intgetRow(int i) intgetWidth()<F> Matrix<F>minor(int i, int j) rows()voidsubmatrix(int[] rows, int[] columns) Return a submatrix of this matrix with the given rows and columns.submatrix(int r0, int r1, int c0, int c1) Return a submatrix of this matrix containing row r0,...,r1-1 and column c0,...,c1-1.view()Returns a view of the given matrix.Methods inherited from class dk.jonaslindstrom.ruffini.common.matrices.elements.BaseMatrixapply, columns, equals, equals, isSquare, mutable, toString, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.function.BiFunctionandThenMethods inherited from interface dk.jonaslindstrom.ruffini.common.matrices.elements.MatrixcollapseColumns, collapseRows, extendWith, get, stream
- 
Field Details- 
rows
 
- 
- 
Constructor Details- 
MutableMatrix
- 
MutableMatrix
 
- 
- 
Method Details- 
set
- 
submatrixReturn a submatrix of this matrix containing row r0,...,r1-1 and column c0,...,c1-1.
- 
minor
- 
transpose
- 
submatrixReturn a submatrix of this matrix with the given rows and columns.- Parameters:
- rows- Rows to include in submatrix.
- columns- Columns to include in submatrix.
 
- 
get
- 
getRow- Specified by:
- getRowin interface- Matrix<E>
- Overrides:
- getRowin class- BaseMatrix<E>
 
- 
getColumn- Specified by:
- getColumnin interface- Matrix<E>
- Overrides:
- getColumnin class- BaseMatrix<E>
 
- 
getHeightpublic int getHeight()
- 
getWidthpublic int getWidth()
- 
rows- Specified by:
- rowsin interface- Matrix<E>
- Overrides:
- rowsin class- BaseMatrix<E>
 
- 
viewDescription copied from interface:MatrixReturns a view of the given matrix. This does not store any values but instead maps operations to this matrix.
- 
extendToDescription copied from interface:MatrixReturns a new larger matrix of size m x n which has this matrix in the top left corner and pads the rest using the given padding value.
- 
map
 
-