function tf = isgpuarray(obj)
%ISGPUARRAY True for dlarrays containing a gpuArray.
%   TF = ISGPUARRAY(X)
%   
%   See also ISGPUARRAY, DLARRAY, GPUARRAY.

%   Copyright 2019 The MathWorks, Inc.

% Use isa instead of isgpuarray just incase PCT isn't installed.
tf = isa(gatherData(obj.FormattedData), "gpuArray");
