pycupyarray
R2026bSyntax
Description
converts the specified MATLAB® array to a cpa = pycupyarray(mla)cupy.ndarray. This function requires
CuPy.
Note
The pycupyarray function supports sending
data to Python® environments running in out-of-process execution mode only. To configure the
Python interpreter to use out-of-process execution mode, call the pyenv function and
set the ExecutionMode name-value argument to
"OutOfProcess".
Examples
Input Arguments
Output Arguments
Limitations
Sparse arrays are not supported.
Extended Capabilities
Version History
Introduced in R2026b