Skip to content

Commit

Permalink
Minor correction in nda_norm test
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentzell committed Oct 14, 2023
1 parent da78fd5 commit 6c71ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/c++/nda_norm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ TEST(Norm, Rand) { //NOLINT

EXPECT_EQ(norm(v), norm(v, 2.0));
EXPECT_EQ(norm(v, 0.0), N);
EXPECT_EQ(norm(v, 1.0), sum(v));
EXPECT_EQ(norm(v, 1.0), sum(abs(v)));
EXPECT_EQ(norm(v, 2.0), sqrt(std::real(nda::blas::dotc(v, v))));
EXPECT_EQ(norm(v, std::numeric_limits<double>::infinity()), max_element(v));
EXPECT_EQ(norm(v, -std::numeric_limits<double>::infinity()), min_element(v));
Expand Down

0 comments on commit 6c71ef7

Please sign in to comment.