UNPKG

nyo

Version:

A matrix library for JavaScript with ability to calculate determinants, transpose, inverse, RREF and other simple matrix operations

3 lines (2 loc) 117 B
const getScalarProduct = (arr, scalar = 1) => arr.map((entry) => entry * scalar); module.exports = getScalarProduct;