tf = isgpuarray(A)
| Parameter | Description |
|---|---|
| A | any value. |
| Parameter | Description |
|---|---|
| tf | logical: true when A is a gpuArray. |
tf = isgpuarray(A) returns true when A is a gpuArray stored on the device, and false otherwise.
isgpuarray(gpuArray(single(1)))
isgpuarray(single(1))
| Version | Description |
|---|---|
| 2.0.0 | initial version |