Skip to content

Commit

Permalink
lessen random dependence
Browse files Browse the repository at this point in the history
  • Loading branch information
jarlebring committed Jun 28, 2023
1 parent 75d3ae7 commit 9580d22
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/compan.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ using LinearAlgebra
#####################
# Dense matrix test #
#####################
Random.seed!(0)
pep = nep_gallery("pep0");
deg = size(get_fv(pep),1) -1;
n = size(pep,1);
Expand All @@ -34,7 +33,7 @@ using LinearAlgebra
Dc,Vc = polyeig(pep,DefaultEigSolver);

ind = argmin(abs.(λa .- Dc)./abs(λa));
@test (abs(λa-Dc[ind])/abs(λa) < tolerance*200)
@test (abs(λa-Dc[ind])/abs(λa) < tolerance*1000)


########################
Expand Down

0 comments on commit 9580d22

Please sign in to comment.