Algosim documentation: IsVector

IsVector

Tests if an object is a vector.

Syntax

Description

IsVector(X) returns true iff X is a vector. A column or row matrix is NOT considered a vector. (If disappointed, you might be interested in the IsCol and IsRow functions.)

Examples

IsVector(5)
false
IsVector(i^π)
false
IsVector(❨5, 1, 3❩)
true
IsVector(IdentityMatrix(100))
false
IsVector("I suspect nargles are behind it.")
false
IsVector('(1, 2, 3))
false

See also