@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
17 lines • 780 B
TypeScript
/**
* N-dimensional AXPY over offset slices of two flat buffers.
*
* y[yOff + i] += alpha * x[xOff + i] for i in [0, n)
*
* Use when the operands are columns/rows of a flat matrix; passing offsets
* avoids per-call `.subarray(...)` header allocation.
*
* @param {number[]|Float32Array|Float64Array} y receives in-place update
* @param {number} yOff starting index into y
* @param {number} alpha
* @param {number[]|Float32Array|Float64Array} x
* @param {number} xOff starting index into x
* @param {number} n number of elements
*/
export function vector_axpy_offset(y: number[] | Float32Array | Float64Array, yOff: number, alpha: number, x: number[] | Float32Array | Float64Array, xOff: number, n: number): void;
//# sourceMappingURL=vector_axpy_offset.d.ts.map