number of components in a vector or matrix
t = size_of(v)
vector or matrix
number or vector of two numbers
If v
is a vector, size_of(v)
returns its number of components.
If v is a matrix of dimension m X n, size_of(v)
returns the vector [m,n].
Note that for an empty matrix []
, the number of components is 0.