Difference between revisions of "Swizzle.m"
(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=...") |
(Update function See also links and function index membership) |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 6: | Line 6: | ||
tuples=swizzle(index_arrays) | tuples=swizzle(index_arrays) | ||
| − | == | + | ==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 | + | [[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