genarray
Generate a vector (one-dimensional k-rate or i-rate array) with an arithmetic sequence.
Syntax
The following expression can also be used,
where start, ends, and inc are as above for genarray.
Initialization
istart -- value to place in first element.
iend -- last value to place in array.
inc -- amount to add to previous value (default 1).
Replacing tabgen
tabgen generates a k-rate array only at initialization. Replace kArray = tabgen(istart, iend, istep) with kArray = genarray(istart, iend, istep), keeping the inputs at i-rate. genarrayi explicitly selects this initialization-only form.
K-rate bounds select repeated generation during performance. Preserve the input rates when migrating so later edits to the output array are not overwritten by a newly generated sequence.
Examples
Here is an example of the genarray opcode. It uses the file genarray.csd.
See also
Credits
Author: John ffitch
Codemist Ltd
2013
New in version 6.00