public Matrix transpose()
    {
        Matrix toReturn = new DenseMatrix(cols(), rows());
        this.transpose(toReturn);
        return toReturn;
    }
public Matrix transpose ( ) { Matrix toReturn = new DenseMatrix ( cols ( ) , rows ( ) ) ; this . transpose ( toReturn ) ; return toReturn ; }
Returns a new matrix that is the transpose of this matrix.
@return a new matrix <tt>A</tt>'