MCPcopy
hub / github.com/BrainJS/brain.js / OnesMatrix

Function OnesMatrix

browser.js:3411–3421  ·  view source on GitHub ↗
(rows, columns)

Source from the content-addressed store, hash-verified

3409 _inherits(OnesMatrix, _Matrix);
3410
3411 function OnesMatrix(rows, columns) {
3412 _classCallCheck(this, OnesMatrix);
3413
3414 var _this = _possibleConstructorReturn(this, (OnesMatrix.__proto__ || Object.getPrototypeOf(OnesMatrix)).call(this, rows, columns));
3415
3416 _this.rows = rows;
3417 _this.columns = columns;
3418 _this.weights = (0, _ones2.default)(rows * columns);
3419 _this.deltas = (0, _ones2.default)(rows * columns);
3420 return _this;
3421 }
3422
3423 return OnesMatrix;
3424}(_2.default);

Callers

nothing calls this directly

Calls 2

_classCallCheckFunction · 0.70

Tested by

no test coverage detected