Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alvarez, Gonzalo
PsimagLite
Commits
ea068573
Commit
ea068573
authored
Apr 05, 2021
by
Alvarez, Gonzalo
Browse files
ChebyshevVectors: swap, don't copy
parent
39c4d613
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ChebyshevSolver.h
View file @
ea068573
...
...
@@ -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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment