swizzle.m

From Spinach Documentation Wiki
Jump to: navigation, search

Flattens out nested index lists and outputs them as an array of tuples in random order, useful for parallel loop vectorisation.

Syntax

   tuples=swizzle(index_arrays)

Parameters

   index_arrays  - a cell array of row vectors

Outputs

   tuples        - matrix of tuples in random order, with tuples listed as rows

See also

distrib_dim.m, end_disallow_gpu.m, isworkernode.m, parallel_profiler_report.m, parallel_profiler_start.m, poolsize.m, save_anyway.m, smack.m, start_disallow_gpu.m, Kernel_utilities

Version 2.11, authors: Ilya Kuprov