Method Math.Matrix()->create()
- Method
create
Math.Matrix Math.Matrix(array(array(int|float))matrix_2d)
Math.Matrix Math.Matrix(array(int|float)matrix_1d)- Description
Initializes the matrix as a 1D or 2D matrix, e.g.
Math.Matrix( ({({1,2}),({3,4})}) ).
- Method
create
Math.Matrix Math.Matrix(intn,intm)
Math.Matrix Math.Matrix(intn,intm,stringtype)
Math.Matrix Math.Matrix(intn,intm,float|intinit)- Description
Initializes the matrix as to be a n*m matrix with init in every value. If no third argument is given, or the third argument is
"identity", the matrix will be initialized with all zeroes except for the diagonal which will be1.
- Method
create
Math.Matrix Math.Matrix(stringtype,intsize)- Description
When type is
"identity"the matrix is initializes as a square identity matrix.