VectorQ
(Built-in Mathematica Symbol) 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, ...
Mathematica represents matrices and vectors using lists. Anything that is not a list Mathematica considers as a scalar. A vector in Mathematica consists of a list of scalars. ...
Mathematica provides a general mechanism for specifying constraints on patterns. All you need to do is to put /;condition at the end of a pattern to signify that it applies ...
ArrayQ
(Built-in Mathematica Symbol) ArrayQ[expr] gives True if expr is a full array or a SparseArray object, and gives False otherwise. ArrayQ[expr, patt] requires expr to be a full array with a depth that ...
ArrayDepth[expr] gives the depth to which expr is a full array, with all the parts at a particular level being lists of the same length, or is a SparseArray object.
Mathematica provides a carefully chosen set of functions for accessing elements of lists either using indices or positions, or using patterns or criteria for their values.
Mathematica represents vectors as lists, and never needs to distinguish between row and column cases. Vectors in Mathematica can always mix numbers and arbitrary symbolic or ...
Mathematica symbolic expressions can represent an immense range of types of objects. Mathematica provides a rich collection of functions to test expressions. Functions that ...
MatrixQ
(Built-in Mathematica Symbol) MatrixQ[expr] gives True if expr is a list of lists or a two-dimensional SparseArray object that can represent a matrix, and gives False otherwise. MatrixQ[expr, test] gives ...
Using the objects described in "Introduction to Patterns", you can set up patterns for many kinds of expressions. In all cases, you must remember that the patterns must ...