GPUArrayQ
✖
GPUArrayQ
New in 14.2[Experimental]
Details
- GPUArrayQ tests whether an input is a valid array stored in memory accessible for GPU-accelerated computation.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Scope (3)Survey of the scope of standard use cases
GPUArrayQ works with vectors:
In[1]:=1
✖
https://wolfram.com/xid/0ixh00fnv9qj7j3-6cl86j
Out[1]=1
In[2]:=2
✖
https://wolfram.com/xid/0ixh00fnv9qj7j3-lle00n
Out[2]=2
GPUArrayQ works with matrices:
In[1]:=1
✖
https://wolfram.com/xid/0ixh00fnv9qj7j3-wcfeqj
Out[1]=1
In[2]:=2
✖
https://wolfram.com/xid/0ixh00fnv9qj7j3-3kwor3
Out[2]=2
GPUArrayQ gives False for anything that is not a valid GPUArray object:
In[1]:=1
✖
https://wolfram.com/xid/0ixh00fnv9qj7j3-z62chh
Out[1]=1
Properties & Relations (3)Properties of the function, and connections to other functions
ArrayQ gives True for valid GPUArray objects:
In[1]:=1
✖
https://wolfram.com/xid/0ixh00fnv9qj7j3-738f3d
Out[1]=1
In[2]:=2
✖
https://wolfram.com/xid/0ixh00fnv9qj7j3-27vztm
Out[2]=2
Use VectorQ to test whether a GPUArray object is a vector:
In[1]:=1
✖
https://wolfram.com/xid/0ixh00fnv9qj7j3-p750xp
Out[1]=1
In[2]:=2
✖
https://wolfram.com/xid/0ixh00fnv9qj7j3-ggtnua
Out[2]=2
Use MatrixQ to test whether a GPUArray object is a matrix:
In[1]:=1
✖
https://wolfram.com/xid/0ixh00fnv9qj7j3-gdslw7
Out[1]=1
In[2]:=2
✖
https://wolfram.com/xid/0ixh00fnv9qj7j3-46hsnt
Out[2]=2
Wolfram Research (2025), GPUArrayQ, Wolfram Language function, https://reference.wolfram.com/language/ref/GPUArrayQ.html.
✖
Wolfram Research (2025), GPUArrayQ, Wolfram Language function, https://reference.wolfram.com/language/ref/GPUArrayQ.html.
Text
Wolfram Research (2025), GPUArrayQ, Wolfram Language function, https://reference.wolfram.com/language/ref/GPUArrayQ.html.
✖
Wolfram Research (2025), GPUArrayQ, Wolfram Language function, https://reference.wolfram.com/language/ref/GPUArrayQ.html.
CMS
Wolfram Language. 2025. "GPUArrayQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GPUArrayQ.html.
✖
Wolfram Language. 2025. "GPUArrayQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GPUArrayQ.html.
APA
Wolfram Language. (2025). GPUArrayQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GPUArrayQ.html
✖
Wolfram Language. (2025). GPUArrayQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GPUArrayQ.html
BibTeX
✖
@misc{reference.wolfram_2024_gpuarrayq, author="Wolfram Research", title="{GPUArrayQ}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/GPUArrayQ.html}", note=[Accessed: 22-January-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2024_gpuarrayq, organization={Wolfram Research}, title={GPUArrayQ}, year={2025}, url={https://reference.wolfram.com/language/ref/GPUArrayQ.html}, note=[Accessed: 22-January-2025
]}