Advanced Computing Platform for Theoretical Physics
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shuang Liang
FiniteTLanczos
Commits
f6f14409
Commit
f6f14409
authored
Jul 19, 2022
by
Shuang Liang
Browse files
fix: eigensolver
parent
d04917e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/FullOrthoLanczos.jl
View file @
f6f14409
...
...
@@ -129,8 +129,10 @@ LanczosEigen(init_vector::AbstractVector{T},
function
eigensolver
(
A
::
itFOLMResult
{
T
,
S
,
U
,
V
})
where
{
T
,
S
,
U
,
V
}
@unpack
init_vector
,
symtridiagonal
,
krylov_basis
=
A
values
,
Q
=
eigen
(
symtridiagonal
)
values
=
convert
(
S
,
values
)
Q
=
convert
(
V
,
Q
)
if
S
<:
CuArray
values
=
convert
(
CuArray
,
values
)
Q
=
convert
(
CuArray
,
Q
)
end
vectors
=
krylov_basis
*
Q
weight
=
Q
[
1
,
:
]
return
LanczosEigen
(
init_vector
,
weight
,
values
,
vectors
)
...
...
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