Matrix
|
Matrix functions |
SYNTAX | Matrix( rows, cols, initvalue, increment = 0 ) |
RETURNS | Matrix |
FUNCTION | The function creates a new matrix of user specified dimensions with all elements filled with initvalue.
An optional parameter 'increment' that allows to create a matrix with monotonically increasing elements.
To create a matrix use my_var_name = Matrix( rows, cols, initvalue) To access matrix elements, use: my_var_name[ row ][ col ]
where
Matrices and their elements support all scalar (element-wise) arithmetic and logical operations So you can for example add, subtract, multiply, divide two matrices if they have same dimensions with one call. |
EXAMPLE | |
SEE ALSO |
The Matrix function is used in the following formulas in AFL on-line library:
See updated/extended version on-line.