From 263d540413e8160942132fb9befdb07db41648bb Mon Sep 17 00:00:00 2001 From: Aakash Kaushik Date: Sun, 1 Nov 2020 01:39:35 +0530 Subject: [PATCH] build error fix --- src/mlpack/tests/init_rules_test.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mlpack/tests/init_rules_test.cpp b/src/mlpack/tests/init_rules_test.cpp index 8f6c731bbd..e161fcbed3 100644 --- a/src/mlpack/tests/init_rules_test.cpp +++ b/src/mlpack/tests/init_rules_test.cpp @@ -61,8 +61,8 @@ TEST_CASE("OrthogonalInitTest", "[InitRulesTest]") for (size_t i = 0; i < weights.n_rows; ++i) for (size_t j = 0; j < weights.n_cols; ++j) { - REQUIRE(weights.at(i, j) - orthogonalWeights.at(i, j)) == - Approx(0.0).margin(1e-3); + REQUIRE((weights.at(i, j) - orthogonalWeights.at(i, j)) == + Approx(0.0).margin(1e-3)); } orthogonalInit.Initialize(weights, 200, 100); @@ -71,8 +71,8 @@ TEST_CASE("OrthogonalInitTest", "[InitRulesTest]") for (size_t i = 0; i < weights.n_rows; ++i) for (size_t j = 0; j < weights.n_cols; ++j) { - REQUIRE(weights.at(i, j) - orthogonalWeights.at(i, j)) == - Approx(0.0).margin(1e-3); + REQUIRE((weights.at(i, j) - orthogonalWeights.at(i, j)) == + Approx(0.0).margin(1e-3)); } } @@ -94,8 +94,8 @@ TEST_CASE("OrthogonalInitGainTest", "[InitRulesTest]") for (size_t i = 0; i < weights.n_rows; ++i) for (size_t j = 0; j < weights.n_cols; ++j) { - REQUIRE(weights.at(i, j) - orthogonalWeights.at(i, j)) == - Approx(0.0).margin(1e-3); + REQUIRE((weights.at(i, j) - orthogonalWeights.at(i, j)) == + Approx(0.0).margin(1e-3)); } }