@@ -181,7 +181,10 @@ TEST_CASE("fb_factory") {
181
181
182
182
double average_intensity = diagnostic.x .real ().sum () / diagnostic.x .size ();
183
183
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 ();
185
188
SOPT_HIGH_LOG (" MSE = {}" , mse);
186
189
CHECK (mse <= average_intensity * 1e-3 );
187
190
}
@@ -239,7 +242,10 @@ TEST_CASE("tf_fb_factory") {
239
242
240
243
double average_intensity = diagnostic.x .real ().sum () / diagnostic.x .size ();
241
244
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 ();
243
249
SOPT_HIGH_LOG (" MSE = {}" , mse);
244
250
CHECK (mse <= average_intensity * 1e-3 );
245
251
}
@@ -300,7 +306,10 @@ TEST_CASE("onnx_fb_factory") {
300
306
301
307
double average_intensity = diagnostic.x .real ().sum () / diagnostic.x .size ();
302
308
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 ();
304
313
SOPT_HIGH_LOG (" MSE = {}" , mse);
305
314
CHECK (mse <= average_intensity * 1e-3 );
306
315
}
0 commit comments