Difference between revisions of "Polyadic/gpuArray.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Normalise sequential blank lines)
m (Rename Arguments section heading to Parameters)
Line 6: Line 6:
 
     p=gpuArray(p)
 
     p=gpuArray(p)
  
==Arguments==
+
==Parameters==
  
 
     p  - polyadic object
 
     p  - polyadic object

Revision as of 18:51, 5 June 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)

Parameters

    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