Commit ea068573 authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

ChebyshevVectors: swap, don't copy

parent 39c4d613
......@@ -235,12 +235,12 @@ public:
SizeType steps() const {return params_.steps; }
const DenseMatrixType& lanczosVectors() const
void lanczosVectorsSwap(DenseMatrixType& V)
{
const DenseMatrixType* ptr = lanczosVectors_.data();
DenseMatrixType* ptr = lanczosVectors_.data();
if (!ptr)
err("LanczosSolver::lanczosVectors() called but no data stored\n");
return *(ptr);
return ptr->swap(V);
}
private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment