Skip to content
Snippets Groups Projects
Commit b1df3898 authored by Tuomas Karna's avatar Tuomas Karna
Browse files

fix fix r9633. fullMatrix::resize re-allocates proxies even if size matches.

parent f0eb5eb6
No related branches found
No related tags found
No related merge requests found
......@@ -297,7 +297,8 @@ bool fullMatrix<double>::invert(fullMatrix<double> &result) const
{
int M = size1(), N = size2(), lda = size1(), info;
int *ipiv = new int[std::min(M, N)];
result.resize(M,N,false);
if (result._own_data)
result.resize(M,N,false);
result.setAll(*this);
F77NAME(dgetrf)(&M, &N, result._data, &lda, ipiv, &info);
if(info == 0){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment