module/src/matrix.js
/**
     * Create a matrix of the specified width and height with all values initialized to 1.
     * @param  {number} width - the width of the filled matrix
     * @param  {number} height - the height of the filled matrix
     * @return {Matrix}
     */
Create a matrix of the specified width and height with all values initialized to 1.
@param  {number} width - the width of the filled matrix
@param  {number} height - the height of the filled matrix
@return {Matrix}
Create a matrix of the specified width and height with all values initialized to 1 . @param { number } width - the width of the filled matrix @param { number } height - the height of the filled matrix @return { Matrix }
static rectangle(width, height) {
        const data = new Array(height);
        for(let row = 0; row < height; row ++) {
            data[row] = new Array(width).fill(1);
        }
        return new Matrix(height, width, data);
    }
static rectangle ( width , height ) { const data = new Array ( height ) ; for ( let row = 0 ; row < height ; row ++ ) { data [ row ] = new Array ( width ) . fill ( 1 ) ; } return new Matrix ( height , width , data ) ; }
Create a matrix of the specified width and height with all values initialized to 1.
Create a matrix of the specified width and height with all values initialized to 1 .