Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Commit

Permalink
fix: update Test check
Browse files Browse the repository at this point in the history
  • Loading branch information
tiankaima committed Dec 19, 2023
1 parent 0d2729b commit 83dae88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Doctests/GeneralTests/PowerIterationTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ TEST_CASE("PowerIteration::RevPowerIteration") {
auto lambda = -10.263471;
auto A = m - I * lambda;
auto x = Vector("[1 1 1]");
auto x_expected = Vector("[0.13173557387983645 -0.010742111583240704 1]");
auto r = RevPowerIteration(PowerIterationInput{A, x, 1000});

CHECK(r.result == x_expected);
CHECK_LE(VectorNorm_Infinity(A * r.result), 1e-5);
}

0 comments on commit 83dae88

Please sign in to comment.