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

Function Matrix

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

Source from the content-addressed store, hash-verified

3070 */
3071var Matrix = function () {
3072 function Matrix(rows, columns) {
3073 _classCallCheck(this, Matrix);
3074
3075 if (rows === undefined) return;
3076 if (columns === undefined) return;
3077
3078 this.rows = rows;
3079 this.columns = columns;
3080 this.weights = (0, _zeros2.default)(rows * columns);
3081 this.deltas = (0, _zeros2.default)(rows * columns);
3082 }
3083
3084 /**
3085 *

Callers

nothing calls this directly

Calls 1

_classCallCheckFunction · 0.70

Tested by

no test coverage detected