Skip to content

Commit 52d1f43

Browse files
author
Michael McLeod
committed
dereference phi
1 parent aae45f1 commit 52d1f43

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cpp/tests/algo_factory.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ TEST_CASE("fb_factory") {
193193
CHECK(mse <= average_intensity * 1e-3);
194194
}
195195

196-
#ifdef PURIFY_H5
197196
TEST_CASE("fb_factory_stochastic") {
198197
const std::string &test_dir = "expected/fb/";
199198
const std::string &input_data_path = data_filename(test_dir + "input_data.vis");
@@ -248,7 +247,7 @@ TEST_CASE("fb_factory_stochastic") {
248247

249248
Vector<t_complex> const init = Vector<t_complex>::Ones(imsizex * imsizey);
250249
auto const power_method_stuff =
251-
sopt::algorithm::power_method<Vector<t_complex>>(phi, 1000, 1e-5, init);
250+
sopt::algorithm::power_method<Vector<t_complex>>(*phi, 1000, 1e-5, init);
252251
const t_real op_norm = std::get<0>(power_method_stuff);
253252
phi->set_norm(op_norm);
254253

@@ -300,7 +299,6 @@ TEST_CASE("fb_factory_stochastic") {
300299
SOPT_HIGH_LOG("MSE = {}", mse);
301300
CHECK(mse <= average_intensity * 1e-3);
302301
}
303-
#endif
304302

305303
#ifdef PURIFY_ONNXRT
306304
TEST_CASE("tf_fb_factory") {

0 commit comments

Comments
 (0)