module/src/matrix.js
/**
     * Create a shallow copy of the current matrix.
     * @return {Matrix}
     */
Create a shallow copy of the current matrix.
@return {Matrix}
Create a shallow copy of the current matrix . @return { Matrix }
clone() {
        const data = new Array(this.rows);
        for(let row = 0; row < this.rows; row ++) {
            data[row] = [...this.data[row]];
        }
        return new Matrix(this.rows, this.columns, data);
    }
clone ( ) { const data = new Array ( this . rows ) ; for ( let row = 0 ; row < this . rows ; row ++ ) { data [ row ] = [ ... this . data [ row ] ] ; } return new Matrix ( this . rows , this . columns , data ) ; }
Create a shallow copy of the current matrix.
Create a shallow copy of the current matrix .