MCPcopy
hub / github.com/trekhleb/javascript-algorithms / zeros

Function zeros

src/algorithms/math/matrix/Matrix.js:116–118  ·  view source on GitHub ↗
(mShape)

Source from the content-addressed store, hash-verified

114 * @returns {Matrix}
115 */
116export const zeros = (mShape) => {
117 return generate(mShape, () => 0);
118};
119
120/**
121 * @param {Matrix} a

Callers 5

dotFunction · 0.85
tFunction · 0.85
addFunction · 0.85
mulFunction · 0.85
subFunction · 0.85

Calls 1

generateFunction · 0.85

Tested by

no test coverage detected