public interface MutableMatrix extends Matrix
Matrix
.Modifier and Type | Method and Description |
---|---|
void |
copy(float[] values)
Copies values from the provided array row by row to this matrix.
|
void |
copy(Matrix fromMatrix)
Copies values from another
Matrix to this matrix. |
void |
copy(Matrix fromMatrix,
int fromRow,
int fromColumn,
int toRow,
int toColumn,
int rows,
int columns)
Copies values from a defined offset from another matrix to a defined offset of this matrix.
|
void |
fill(float value)
Fills all writable elements of this matrix with the given value.
|
void |
set(int row,
int column,
float value)
Sets the given value.
|
void |
setColumn(int column,
float[] values)
Sets the given values.
|
void |
setRow(int row,
float[] values)
Sets the given values.
|
add, columnSum, enlarge, get, getColumn, getNumberOfColumns, getNumberOfRows, getRow, hadamardMultiply, isZeroPadded, multiply, multiply, rowSum, subtract, sum, translate, transpose
void set(int row, int column, float value)
row
- rowcolumn
- columnvalue
- valueIndexOutOfBoundsException
- row, column or both are out of boundsIllegalArgumentException
- if the given value cannot be stored in the matrix, e.g. because it is
not in the valid rangevoid setRow(int row, float[] values)
row
- rowvalues
- valuesIndexOutOfBoundsException
- row is out of boundsIllegalArgumentException
- if the given value cannot be stored in the matrix, e.g. because it is
not in the valid rangevoid setColumn(int column, float[] values)
column
- columnvalues
- valuesIndexOutOfBoundsException
- column is out of boundsIllegalArgumentException
- if the given value cannot be stored in the matrix, e.g. because it is
not in the valid rangevoid fill(float value)
value
- valuevoid copy(float[] values)
values
- valuesvoid copy(Matrix fromMatrix)
Matrix
to this matrix.
If this matrix does not support the setting of certain elements (e.g. SymmetricBandMatrix
),
the method fails silently, i.e. no values are copied, and no exception is raised.fromMatrix
- other matrixvoid copy(Matrix fromMatrix, int fromRow, int fromColumn, int toRow, int toColumn, int rows, int columns)
SymmetricBandMatrix
),
the method fails silently, i.e. no values are copied, and no exception is raised.fromMatrix
- other matrixfromRow
- row start offset of from matrixfromColumn
- column start offset of from matrixtoRow
- column start offset of this matrixtoColumn
- column start offset of this matrixrows
- number of rows to copycolumns
- number of column to copyCopyright © 2011–2020 tagtraum industries incorporated. All rights reserved.