dist/recurrent/matrix/all-ones.js
function allOnes(product) {
  for (var i = 0; i < product.weights.length; i++) {
    product.weights[i] = 1;
    product.deltas[i] = 0;
  }
}
function allOnes(product) {
  for (var i = 0; i < product.weights.length; i++) {
    product.weights[i] = 1;
    product.deltas[i] = 0;
  }
}
function allOnes ( product ) { for ( var i = 0 ; i < product . weights . length ; i ++ ) { product . weights [ i ] = 1 ; product . deltas [ i ] = 0 ; } }
makes matrix weights and deltas all ones
@param {Matrix} product
makes matrix weights and deltas all ones