Code generator for loop-unrolled vector operations. Takes a vector size dim
, a code template function tpl
and an array of symbol names participating in the template. For each symbol, creates iterator of index lookups (e.g. a[0]
or a[ia+k*sa]
), forms them into tuples and passes them to template to generate code and joins generated result with opJoin
separator (default: ""
).
If the optional ret
arg is not null
(default "a"
), appends a return
statement to the result array, using ret
as return value. Returns array of source code lines.
The optional pre
and post
strings can be used to wrap the generated code. post
will be injected before the generated return statement (if not suppressed).
-
-
-
-
-
-
-
-
Infinite iterator of simple (non-strided) index lookups for sym
.
-
Infinite iterator of strided index lookups for sym
.
-
HOF array index lookup gen to provide optimized versions of:
-
Generated using TypeDoc