gives True if expr is a list or a one‐dimensional SparseArray object, none of whose elements are themselves lists, and gives False otherwise.
gives True only if test yields True when applied to each of the elements in expr.
Examplesopen allclose all
Basic Examples (3)
Test whether an object is a vector:
These are not vectors:
Use specific tests to generalize or specialize:
Test for a vector of integers:
Test for a vector of machine-real numbers:
Test for a vector of real-valued numeric quantities:
Faster test for explicit real-valued numbers:
Define a function that only evaluates for vector arguments:
Numerically find the minimum of the functions with components:
Properties & Relations (3)
Introduced in 1988
Updated in 2003