isgpuarray
Determine whether a value is a gpuArray.
📝Syntax
tf = isgpuarray(A)
📥Input Arguments
Parameter Description
A any value.
📤Output Arguments
Parameter Description
tf logical: true when A is a gpuArray.
📄Description

tf = isgpuarray(A) returns true when A is a gpuArray stored on the device, and false otherwise.

💡Examples
isgpuarray(gpuArray(single(1)))
isgpuarray(single(1))
🔗See Also
gpuArray
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub