src/Matrix.php
protected function copy(Matrix $matrix) {
        for ($i=0; $i<static::ROWS; $i++) {
            for ($j=0; $j<static::COLUMNS; $j++) {
                $this->vectors[$i][$j] = $matrix[$i][$j];
            }
        }
    }
protected function copy(Matrix $matrix) {
        for ($i=0; $i<static::ROWS; $i++) {
            for ($j=0; $j<static::COLUMNS; $j++) {
                $this->vectors[$i][$j] = $matrix[$i][$j];
            }
        }
    }
protected function copy ( Matrix $ matrix ) { for ( $ i = 0 ; $ i < static :: ROWS ; $ i ++ ) { for ( $ j = 0 ; $ j < static :: COLUMNS ; $ j ++ ) { $ this -> vectors [ $ i ] [ $ j ] = $ matrix [ $ i ] [ $ j ] ; } } }
Copy the matrix to another matrix.

@param Matrix $matrix
Copy the matrix to another matrix .