polyadic/gpuArray.m

From Spinach Documentation Wiki
Revision as of 16:05, 12 January 2019 by Admin (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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