• vectorize a one parameter function

    Parameters

    Returns void

    Example

    const abs = (v) => v >= 0 ? v : -v
    const arr = new Float32Array(10_000).map(() => 123 * (Math.random() - 0.5))
    vectorize1(rand, arr, arr) // `arr` is now filled with absolute valued random numbers

Generated using TypeDoc