Algosim documentation: dim

dim

Returns the dimension of a vector.

Syntax

Description

If v is a vector, then dim(v) is the dimension of v.

Notes

The length function and the associated prefix operator # can also be used to obtain the same number:

#❨5, 0, 1, 3❩
4

Examples

dim(❨5, 0, 1, 3❩)
4

See also