MCPcopy Index your code
hub / github.com/BrainJS/brain.js / fourSquareMatrix

Function fourSquareMatrix

test/recurrent/equation.js:7–13  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

5import Equation from '../../src/recurrent/matrix/equation';
6
7function fourSquareMatrix(value) {
8 var result = new Matrix(4, 4);
9 result.weights.forEach((_, i) => {
10 result.weights[i] = value;
11 });
12 return result;
13}
14
15describe('equation', () => {
16 describe('run', () => {

Callers 1

equation.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected