add(value) {
    // assume scalar
    let i, j;
    for (i = 0; i < this._elements.length; i++) {
      for (j = 0; j < this._elements[i].length; j++) {
        this._elements[i][j] += value;
      }
    }
    return this;
  }
/**
   * Adds a scalar value to each element in the matrix.
   * @param {Number} value
   */
Adds a scalar value to each element in the matrix.
@param {Number} value
Adds a scalar value to each element in the matrix . @param { Number } value
add(value) {
    let i, j;
    for (i = 0; i < this._elements.length; i++) {
      for (j = 0; j < this._elements[i].length; j++) {
        this._elements[i][j] += value;
      }
    }
    return this;
  }
add ( value ) { let i , j ; for ( i = 0 ; i < this . _elements . length ; i ++ ) { for ( j = 0 ; j < this . _elements [ i ] . length ; j ++ ) { this . _elements [ i ] [ j ] += value ; } } return this ; }
Adds a scalar value to each element in the matrix.
Adds a scalar value to each element in the matrix .
// assume scalar