Difference between revisions of "Swizzle.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Normalise sequential blank lines)
(Update function See also links and function index membership)
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
 
     tuples=swizzle(index_arrays)
 
     tuples=swizzle(index_arrays)
  
−
==Arguments==
+
==Parameters==
  
 
     index_arrays  - a cell array of row vectors
 
     index_arrays  - a cell array of row vectors
Line 15: Line 15:
  
 
==See also==
 
==See also==
−
[[Kernel_utilities#Parallelisation_and_GPUs|Parallelisation and GPUs]]
+
[[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]]''
 
''Version 2.11, authors: [[Ilya Kuprov]]''

Latest revision as of 19:42, 6 June 2026

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