Rest
...input_arrs: []const rand = () => 123 * Math.random()
const arr = new Float32Array(10_000)
vectorize0(rand, arr) // `arr` is now filled with random numbers
despite being a simple operation with no inputs, this still performs 4 times quicker than array.map
, probably due to the fact that array.map
passes three arguments
Generated using TypeDoc
vectorize a zero parameter function