swizzle.m

From Spinach Documentation Wiki
Revision as of 19:42, 6 June 2026 by Kuprov (talk | contribs) (Update function See also links and function index membership)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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