polyadic/gpuArray.m

From Spinach Documentation Wiki
Revision as of 12:28, 25 April 2026 by Kuprov (talk | contribs) (Normalise sequential blank lines)
Jump to: navigation, search

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