m The second dimension of an imatrix.
imatrix The matrix of an instance. Matrix is stored as a pointer to vector of pointers pointing to the matrix rows.
= argument Sets imatrix value to argument. Argument can be either a list of numbers, in this case their number should be equal to n*m, or it can be a triple: a pointer to imatrix (int**) followed by values of n and m. This method copies an imatrix into an instance.
? Returns pointer to matrix (int**) and values of n and m.
n? Returns value of n.
nm= (arg1, arg2) Sets the values of n and m to arg1 and arg2 correspondingly.
nm? Returns values of n and m.
pointer= (arg1, arg2, arg3) Sets the value of matrix pointer to arg1, n to arg2, and m to arg3. Arg1 should be of type int**. This method does not perform copying of the matrix.
imatrix new: `b' nm= (2,2) = a print!; imatrix new: `c' nm= (2,2) pointer= a print!; -- changing a a = (2,3,4,5) print!; -- c points to the same imatrix c print!; -- but b is not changed because it was a copy b print!;