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 matches the pattern patt.
ArrayQ
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 matches the pattern patt.
Examples
open all close allBasic Examples (2)
A vector of numbers is a full array:
A vector in which one element is itself a list is not a full array:
A ragged collection of nested lists is not a full array:
Scope (5)
Test for a vector:
Test for a matrix:
Test for a vector or a matrix:
Test for a numeric vector:
Test for an array of any depth with numeric entries:
Applications (1)
Define a function that only evaluates with arrays:
This constructs the tensor product interpolating polynomial assuming integer coordinates:
The polynomial interpolates the data:
See Also
ArrayDepth MatrixQ VectorQ Dimensions PadLeft ArrayFlatten Array
Function Repository: TableQ
Tech Notes
Related Guides
History
Introduced in 2003 (5.0)
Text
Wolfram Research (2003), ArrayQ, Wolfram Language function, https://reference.wolfram.com/language/ref/ArrayQ.html.
CMS
Wolfram Language. 2003. "ArrayQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ArrayQ.html.
APA
Wolfram Language. (2003). ArrayQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ArrayQ.html
BibTeX
@misc{reference.wolfram_2025_arrayq, author="Wolfram Research", title="{ArrayQ}", year="2003", howpublished="\url{https://reference.wolfram.com/language/ref/ArrayQ.html}", note=[Accessed: 05-December-2025]}
BibLaTeX
@online{reference.wolfram_2025_arrayq, organization={Wolfram Research}, title={ArrayQ}, year={2003}, url={https://reference.wolfram.com/language/ref/ArrayQ.html}, note=[Accessed: 05-December-2025]}