com.tagtraum.jipes.math

## Interface MutableMatrix

• ### Method Summary

All Methods
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.
• ### Methods inherited from interface com.tagtraum.jipes.math.Matrix

`add, columnSum, enlarge, get, getColumn, getNumberOfColumns, getNumberOfRows, getRow, hadamardMultiply, isZeroPadded, multiply, multiply, rowSum, subtract, sum, translate, transpose`
• ### Method Detail

• #### set

```void set(int row,
int column,
float value)```
Sets the given value.
Parameters:
`row` - row
`column` - column
`value` - value
Throws:
`IndexOutOfBoundsException` - row, column or both are out of bounds
`IllegalArgumentException` - if the given value cannot be stored in the matrix, e.g. because it is not in the valid range
• #### setRow

```void setRow(int row,
float[] values)```
Sets the given values.
Parameters:
`row` - row
`values` - values
Throws:
`IndexOutOfBoundsException` - row is out of bounds
`IllegalArgumentException` - if the given value cannot be stored in the matrix, e.g. because it is not in the valid range
• #### setColumn

```void setColumn(int column,
float[] values)```
Sets the given values.
Parameters:
`column` - column
`values` - values
Throws:
`IndexOutOfBoundsException` - column is out of bounds
`IllegalArgumentException` - if the given value cannot be stored in the matrix, e.g. because it is not in the valid range
• #### fill

`void fill(float value)`
Fills all writable elements of this matrix with the given value.
Parameters:
`value` - value
• #### copy

`void copy(float[] values)`
Copies values from the provided array row by row to this matrix.
Parameters:
`values` - values
• #### copy

`void copy(Matrix fromMatrix)`
Copies values from another `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.
Parameters:
`fromMatrix` - other matrix
• #### copy

```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. 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.
Parameters:
`fromMatrix` - other matrix
`fromRow` - row start offset of from matrix
`fromColumn` - column start offset of from matrix
`toRow` - column start offset of this matrix
`toColumn` - column start offset of this matrix
`rows` - number of rows to copy
`columns` - number of column to copy