make SparseSolverBase and IterativeSolverBase move constructable

This commit is contained in:
AlexanderMueller 2022-03-08 20:03:53 +01:00
parent 9883108f3a
commit dfa5176780
2 changed files with 5 additions and 0 deletions

View File

@ -188,6 +188,9 @@ public:
compute(matrix());
}
IterativeSolverBase(IterativeSolverBase&&) = default;
~IterativeSolverBase() {}
/** Initializes the iterative solver for the sparsity pattern of the matrix \a A for further solving \c Ax=b problems.

View File

@ -75,6 +75,8 @@ class SparseSolverBase : internal::noncopyable
: m_isInitialized(false)
{}
SparseSolverBase(SparseSolverBase&&other ) : internal::noncopyable{}, m_isInitialized{other.m_isInitialized} {}
~SparseSolverBase()
{}