code: function allOnes(product) {
    for (var i = 0; i < product.weights.length; i++) {
      product.weights[i] = 1;
      product.deltas[i] = 0;
    }
  }
docs: makes matrix weights and deltas all ones
  @param {Matrix} product