public interface Matrix
MutableMatrix), they results change
dynamically.| Modifier and Type | Method and Description |
|---|---|
Matrix |
add(Matrix m)
Creates a view that is equal to the result of an addition.
|
float[] |
columnSum()
Compute the sum for each column.
|
Matrix |
enlarge(Matrix m)
Creates a view that is as large as the larger of the two involved matrices.
|
float |
get(int row,
int column)
Gets the value from
row and column. |
float[] |
getColumn(int column)
Gets the value from
column. |
int |
getNumberOfColumns()
Number of columns.
|
int |
getNumberOfRows()
Number of rows
|
float[] |
getRow(int row)
Gets the values from
row. |
Matrix |
hadamardMultiply(Matrix m)
Creates a view that is equal to the result of a Hadamard multiplication.
|
boolean |
isZeroPadded()
Indicates whether this matrix is zero padded.
|
Matrix |
multiply(float f)
Creates a view that is equal to the result of a scalar multiplication.
|
Matrix |
multiply(Matrix m)
Creates a view that is equal to the result of a matrix multiplication.
|
float[] |
rowSum()
Compute the sum for each row.
|
Matrix |
subtract(Matrix m)
Creates a view that is equal to the result of an subtraction.
|
float |
sum()
Compute the sum of all elements.
|
Matrix |
translate(int rows,
int columns)
Creates a view that is equal to the result of a matrix translation.
|
Matrix |
transpose()
Creates a view that is equal to the result of a matrix transposition.
|
float get(int row,
int column)
row and column.
If the matrix supports zero-padding, this method may return
0f for undefined rows or columns.row - rowcolumn - columnIndexOutOfBoundsException - if row, column or both are out of bounds and the matrix does not
support zero paddingfloat sum()
float[] rowSum()
float[] columnSum()
float[] getRow(int row)
row.
If the matrix supports zero-padding, this method may return
0f for undefined rows or columns.row - rowIndexOutOfBoundsException - if the row is out of bounds and the matrix does not
support zero paddingfloat[] getColumn(int column)
column.
If the matrix supports zero-padding, this method may return
0f for undefined columns.column - columnIndexOutOfBoundsException - if the column is out of bounds and the matrix does not
support zero paddingint getNumberOfRows()
int getNumberOfColumns()
boolean isZeroPadded()
Matrix add(Matrix m)
m - matrix to add to thisMatrix subtract(Matrix m)
m - matrix to subtract from thisMatrix multiply(float f)
f - scalarMatrix multiply(Matrix m)
m - matrix to multiply this withMatrix hadamardMultiply(Matrix m)
m - matrix to multiply this withMatrix transpose()
Matrix enlarge(Matrix m)
m - matrixMatrix translate(int rows, int columns)
rows - number of rows to move the matrixcolumns - number of columns to move the matrixCopyright © 2011–2020 tagtraum industries incorporated. All rights reserved.