Difference between revisions of "Swizzle.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:swizzle.m}} __NOTOC__ Flattens out nested index lists and outputs them as an array of tuples in random order, useful for parallel loop vectorisation. ==Syntax=...")
 
(→‎See also)
Line 15: Line 15:
  
 
==See also==
 
==See also==
−
[[Kernel_utilities#Housekeeping_functions|Housekeeping functions]]
+
[[Kernel_utilities#Parallelisation_and_GPUs|Parallelisation and GPUs]]
  
  
 
''Version 2.11, authors: [[Ilya Kuprov]]''
 
''Version 2.11, authors: [[Ilya Kuprov]]''

Revision as of 14:08, 17 May 2025

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)

Arguments

   index_arrays  - a cell array of row vectors

Outputs

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

See also

Parallelisation and GPUs


Version 2.11, authors: Ilya Kuprov