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

Function copy

src/recurrent/matrix/copy.js:6–11  ·  view source on GitHub ↗
(product, left)

Source from the content-addressed store, hash-verified

4 * @param {Matrix} left
5 */
6export default function copy(product, left) {
7 product.rows = parseInt(left.rows);
8 product.columns = parseInt(left.columns);
9 product.weights = left.weights.slice(0);
10 product.deltas = left.deltas.slice(0);
11}

Callers 1

runMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected