Mathematica 9 is now available

Documentation / Mathematica / Built-in Functions / Lists and Matrices / List Testing /

ArrayQ

FilledSmallSquare ArrayQ[expr] gives True if expr is a full array or a SparseArray object, and gives False otherwise.

FilledSmallSquare ArrayQ[expr, patt] requires expr to be a full array with a depth that matches the pattern patt.

FilledSmallSquare ArrayQ[expr, patt, test] requires also that test yield True when applied to each of the array elements in expr.

FilledSmallSquare In a full array all parts at a particular level must be lists of the same length.

FilledSmallSquare ArrayQ[expr, 1|2] tests whether expr is either a vector or a matrix.

FilledSmallSquare ArrayQ[expr, _, NumberQ] tests whether expr is a numerical array at all levels.

FilledSmallSquare See Section 2.3.5 and Section 2.4.3.

FilledSmallSquare See also: ArrayDepth, MatrixQ, VectorQ, Dimensions.

FilledSmallSquare New in Version 5.0.

Further Examples



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.