From 527e8b28aad16d09b37fa8c9d8790a89276d68b1 Mon Sep 17 00:00:00 2001 From: Daniil Kazantsev Date: Sun, 17 Mar 2019 11:11:49 +0000 Subject: final corrections --- src/Core/regularisers_CPU/FGP_TV_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Core/regularisers_CPU/FGP_TV_core.c b/src/Core/regularisers_CPU/FGP_TV_core.c index 8b1bc8e..a17604e 100644 --- a/src/Core/regularisers_CPU/FGP_TV_core.c +++ b/src/Core/regularisers_CPU/FGP_TV_core.c @@ -77,7 +77,7 @@ float TV_FGP_CPU_main(float *Input, float *Output, float *infovector, float lamb Proj_func2D(P1, P2, methodTV, DimTotal); /*updating R and t*/ - tkp1 = (1.0f + sqrt(1.0f + 4.0f*tk*tk))*0.5f; + tkp1 = (1.0f + sqrtf(1.0f + 4.0f*tk*tk))*0.5f; Rupd_func2D(P1, P1_prev, P2, P2_prev, R1, R2, tkp1, tk, DimTotal); /*storing old values*/ @@ -135,7 +135,7 @@ float TV_FGP_CPU_main(float *Input, float *Output, float *infovector, float lamb Proj_func3D(P1, P2, P3, methodTV, DimTotal); /*updating R and t*/ - tkp1 = (1.0f + sqrt(1.0f + 4.0f*tk*tk))*0.5f; + tkp1 = (1.0f + sqrtf(1.0f + 4.0f*tk*tk))*0.5f; Rupd_func3D(P1, P1_prev, P2, P2_prev, P3, P3_prev, R1, R2, R3, tkp1, tk, DimTotal); /* calculate norm - stopping rules*/ -- cgit v1.2.3