UNPKG

nyo

Version:

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

5 lines (3 loc) 169 B
const multiplyScalar = (mat, scalar) => mat.map((row) => row.map((entry) => entry * scalar)); module.exports = multiplyScalar; module.exports.default = multiplyScalar;