loop-fusion icon indicating copy to clipboard operation
loop-fusion copied to clipboard

Loop efficiently over a variadic number of containers

Results 4 loop-fusion issues
Sort by recently updated
recently updated
newest added

Loop-fusion code can be greatly simplified using the macro from [Laser](https://github.com/numforge/laser/) especially the [forEachContiguous](https://github.com/numforge/laser/blob/d7c5cae3b95b3f6c463a226f254f92da04b27fb6/laser/strided_iteration/foreach.nim#L38-L71) macro. Furthermore they also support parallel processing via OpenMP for non-ref types and types with trivial...

As explained in the readme: > Expressions must return value of the same types, i.e. you can't return void/no value at some iterations and a concrete value at other iterations....

enhancement

This assumes that indexing starts at 0: https://github.com/numforge/loop-fusion/blob/1b928f224c2c67fc035544c4d870398afd646022/loopfusion.nim#L167-L180 But array can start at an arbitrary value for example: `array['0'..'F', uint8]` for an array of 8-bit registers or for arrays of...

enhancement
good first issue

https://github.com/nim-lang/Nim/issues/7996 will introduce the indexable concept. Loop fusion should work on all indexable containers. This is blocked by #7737

enhancement