A general MxN dimensional matrix.
This object is not often used in Nape :)
Constructor
Variables
Methods
mul(matrix:MatMN):MatMN
Multiple this matrix with another.
This operation is only valid if the number of columns
in this matrix, is equal to the number of rows in the input
matrix.
The result of the multiplication is returned as a new matrix.
Parameters:
matrix | The matrix to multiple with. |
---|
Returns:
The result of the multiplication
Throws:
If | matrix dimensions are not compatible. |
---|
inlinesetx(row:Int, col:Int, x:Float):Float
Set element at index.
Parameters:
row | The row of the matrix to set. |
---|---|
col | The column of the matrix to set. |
x | The value to set at given (row,col) index. |
Returns:
The value of matrix at given index after set. (Always equal to the x parameter)
Throws:
# | If index is out of range. |
---|