tf = isdlarray(X) returns
logical 1 (true) if X is a
dlarray, and logical 0 (false)
otherwise. You can use this function with an if statement to avoid
executing code that expects dlarray input.
The isdlarray function
fully supports GPU arrays. To run the function on a GPU, specify the input data as a gpuArray (Parallel Computing Toolbox). For more information, see Run MATLAB Functions on a GPU (Parallel Computing Toolbox).