Mathematica 9 is now available

VectorQ

Usage

VectorQ[expr] gives True if expr is a list or a one-dimensional SparseArray object, none of whose elements are themselves lists, and gives False otherwise.
VectorQ[expr, test] gives True only if test yields True when applied to each of the elements in expr.


Notes

VectorQ[expr, NumberQ] tests whether expr is a vector of numbers.
• See also: MatrixQ, ArrayDepth.
• New in Version 1; modified in 2.
• Advanced Documentation.


Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.