Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
116
export
const
zeros = (mShape) => {
117
return
generate(mShape, () => 0);
118
};
119
120
/**
121
* @param {Matrix} a
Callers
5
dot
Function · 0.85
t
Function · 0.85
add
Function · 0.85
mul
Function · 0.85
sub
Function · 0.85
Calls
1
generate
Function · 0.85
Tested by
no test coverage detected