size(arg)

import almafa.engine.linalg-1

Return the matrix size of the argument.

import almafa.engine.linalg-1;
size([1,2;3,4;5,6])
argThe object, the size of which is to be measured.
return valueThe size of the argument.

The argument can be any scalar, vector, or matrix. It always handles the input as a matrix: a scalar is a 1x1 matrix, a vector is a 1xN size matrix.

The size is a vector in [no. of rows, no. of colums] format.

import almafa.engine.linalg-1;
size([1,2,3])[1]