polyadic/gpuArray.m

From Spinach Documentation Wiki
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)

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, polinfo.m, polyadic/allfinite.m, polyadic/ctranspose.m, polyadic/full.m, polyadic/inflate.m, polyadic/isempty.m, polyadic/kron.m, polyadic/minus.m, polyadic/nnz.m, polyadic/plus.m, polyadic/polinfo.m, polyadic/prefix.m, polyadic/simplify.m, polyadic/size.m, polyadic/suffix.m, polyadic/transpose.m, polyadic/validate.m, Tensor_train_module

Version 2.3, authors: Ilya Kuprov