Add private copy constructors to sparse solvers backends

This commit is contained in:
Desire NUENTSA
2012-03-29 19:19:12 +02:00
parent 2d35f88bcf
commit 5dbb646190
5 changed files with 40 additions and 0 deletions

View File

@@ -296,6 +296,9 @@ class PardisoImpl
mutable Array<Index,64,1> m_iparm;
mutable IntColVectorType m_perm;
Index m_size;
private:
PardisoImpl(PardisoImpl &) {}
};
template<class Derived>
@@ -451,6 +454,9 @@ class PardisoLU : public PardisoImpl< PardisoLU<MatrixType> >
{
m_matrix = matrix;
}
private:
PardisoLU(PardisoLU& ) {}
};
/** \ingroup PardisoSupport_Module
@@ -507,6 +513,9 @@ class PardisoLLT : public PardisoImpl< PardisoLLT<MatrixType,_UpLo> >
m_matrix.resize(matrix.rows(), matrix.cols());
m_matrix.template selfadjointView<Upper>() = matrix.template selfadjointView<UpLo>().twistedBy(p_null);
}
private:
PardisoLLT(PardisoLLT& ) {}
};
/** \ingroup PardisoSupport_Module
@@ -563,6 +572,9 @@ class PardisoLDLT : public PardisoImpl< PardisoLDLT<MatrixType,Options> >
m_matrix.resize(matrix.rows(), matrix.cols());
m_matrix.template selfadjointView<Upper>() = matrix.template selfadjointView<UpLo>().twistedBy(p_null);
}
private:
PardisoLDLT(PardisoLDLT& ) {}
};
namespace internal {