GPUArrayQ

GPUArrayQ[g]

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)

Test whether an object is a valid GPUArray object:

A list is not a valid GPUArray object:

Scope  (3)

GPUArrayQ works with vectors:

GPUArrayQ works with matrices:

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

Properties & Relations  (3)

ArrayQ gives True for valid GPUArray objects:

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

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

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.

CMS

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

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: 20-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: 20-January-2025 ]}