WOLFRAM

GPUArrayQ
GPUArrayQ

Unsupported in CloudNew in 14.2[Experimental]

gives True if g is a valid GPUArray object and False otherwise.

Details

  • GPUArrayQ tests whether an input is a valid array stored in memory accessible for GPU-accelerated computation.

Examples

open allclose all

Basic Examples  (2)Summary of the most common use cases

Test whether an object is a valid GPUArray object:

Out[1]=1
Out[2]=2

A list is not a valid GPUArray object:

Out[1]=1

Scope  (3)Survey of the scope of standard use cases

GPUArrayQ works with vectors:

Out[1]=1
Out[2]=2

GPUArrayQ works with matrices:

Out[1]=1
Out[2]=2

GPUArrayQ gives False for anything that is not a valid GPUArray object:

Out[1]=1

Properties & Relations  (3)Properties of the function, and connections to other functions

ArrayQ gives True for valid GPUArray objects:

Out[1]=1
Out[2]=2

Use VectorQ to test whether a GPUArray object is a vector:

Out[1]=1
Out[2]=2

Use MatrixQ to test whether a GPUArray object is a matrix:

Out[1]=1
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 ]}

@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 ]}

@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 ]}