public function transpose()
    {
        $out = new self($this->size->cols, $this->size->rows);

        foreach ($this->arr as $row) {
            $out->addCol($row);
        }

        return $out;
    }
public function transpose()
    {
        $out = new self($this->size->cols, $this->size->rows);

        foreach ($this->arr as $row) {
            $out->addCol($row);
        }

        return $out;
    }
public function transpose ( ) { $ out = new self ( $ this -> size -> cols , $ this -> size -> rows ) ; foreach ( $ this -> arr as $ row ) { $ out -> addCol ( $ row ) ; } return $ out ; }
Returns the transpose of the current matrix.

@access public
@return Matrix
Returns the transpose of the current matrix .