Skip to content

Commit e1190b1

Browse files
author
Michael McLeod
committed
Linting that makes things harder to read
1 parent 8486870 commit e1190b1

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

cpp/tests/algo_factory.cc

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,10 @@ TEST_CASE("fb_factory") {
181181

182182
double average_intensity = diagnostic.x.real().sum() / diagnostic.x.size();
183183
SOPT_HIGH_LOG("Average intensity = {}", average_intensity);
184-
double mse = (Vector<t_complex>::Map(solution.data(), solution.size()) - diagnostic.x).real().squaredNorm() / solution.size();
184+
double mse = (Vector<t_complex>::Map(solution.data(), solution.size()) - diagnostic.x)
185+
.real()
186+
.squaredNorm() /
187+
solution.size();
185188
SOPT_HIGH_LOG("MSE = {}", mse);
186189
CHECK(mse <= average_intensity * 1e-3);
187190
}
@@ -239,7 +242,10 @@ TEST_CASE("tf_fb_factory") {
239242

240243
double average_intensity = diagnostic.x.real().sum() / diagnostic.x.size();
241244
SOPT_HIGH_LOG("Average intensity = {}", average_intensity);
242-
double mse = (Vector<t_complex>::Map(solution.data(), solution.size()) - diagnostic.x).real().squaredNorm() / solution.size();
245+
double mse = (Vector<t_complex>::Map(solution.data(), solution.size()) - diagnostic.x)
246+
.real()
247+
.squaredNorm() /
248+
solution.size();
243249
SOPT_HIGH_LOG("MSE = {}", mse);
244250
CHECK(mse <= average_intensity * 1e-3);
245251
}
@@ -300,7 +306,10 @@ TEST_CASE("onnx_fb_factory") {
300306

301307
double average_intensity = diagnostic.x.real().sum() / diagnostic.x.size();
302308
SOPT_HIGH_LOG("Average intensity = {}", average_intensity);
303-
double mse = (Vector<t_complex>::Map(solution.data(), solution.size()) - diagnostic.x).real().squaredNorm() / solution.size();
309+
double mse = (Vector<t_complex>::Map(solution.data(), solution.size()) - diagnostic.x)
310+
.real()
311+
.squaredNorm() /
312+
solution.size();
304313
SOPT_HIGH_LOG("MSE = {}", mse);
305314
CHECK(mse <= average_intensity * 1e-3);
306315
}

0 commit comments

Comments
 (0)