Skip to content

Commit 8fe4acb

Browse files
authored
normalize eigenvectors in eigs (#463)
1 parent b000e8d commit 8fe4acb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ApproxFunBase"
22
uuid = "fbd15aa5-315a-5a7d-a8a4-24992e37be05"
3-
version = "0.8.23"
3+
version = "0.8.24"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"

src/eigen.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ function pruneeigs(λ,V,ds,tolerance)
8686
for k=1:n
8787
if slnorm(V,n-3:n,k)tolerance
8888
push!(retλ,λ[k])
89-
push!(retV,Fun(ds,V[:,k]))
89+
f = Fun(ds, V[:,k])
90+
f /= norm(f)
91+
push!(retV, f)
9092
end
9193
end
9294
retλ,retV

0 commit comments

Comments
 (0)