This function fully supports thread-based environments. For
more information, see Run MATLAB Functions in Thread-Based Environment.
The speye
function
supports GPU array input with these usage notes and limitations:
To run this function on a GPU and obtain a gpuArray
output, use any
of the following
syntaxes:
S = gpuArray.speye
S = gpuArray.speye(n)
S = gpuArray.speye(n,m)
S = gpuArray.speye(sz)
For more information, see Run MATLAB Functions on a GPU (Parallel Computing Toolbox).
This function fully supports distributed arrays. For more
information, see Run MATLAB Functions with Distributed Arrays (Parallel Computing Toolbox).