Difference between revisions of "Polyadic/gpuArray.m"
(Created page with "{{DISPLAYTITLE:polyadic/gpuArray.m}} __NOTOC__ Uploads all components of a polyadic object to the GPU. The object still looks like a polyadic to Matlab, but all of its constit...") |
(Normalise sequential blank lines) |
||
| Line 21: | Line 21: | ||
==See also== | ==See also== | ||
[[polyadic.m]], [[kronm.m]], [[polyadic/mtimes.m]] | [[polyadic.m]], [[kronm.m]], [[polyadic/mtimes.m]] | ||
| − | |||
''Version 2.3, authors: [[Ilya Kuprov]]'' | ''Version 2.3, authors: [[Ilya Kuprov]]'' | ||
Revision as of 12:28, 25 April 2026
Uploads all components of a polyadic object to the GPU. The object still looks like a polyadic to Matlab, but all of its constituent matrices become gpuArrays.
Syntax
p=gpuArray(p)
Arguments
p - polyadic object
Outputs
p - polyadic object with all cores,
prefixes and suffixes uploaded
to the current GPU
Notes
GPUs are not good at permuting array dimensions. If you find yourself using polyadics, do check that the CPU isn't faster.
See also
polyadic.m, kronm.m, polyadic/mtimes.m
Version 2.3, authors: Ilya Kuprov