diff options
author | Daniil Kazantsev <dkazanc@hotmail.com> | 2019-03-17 11:11:49 +0000 |
---|---|---|
committer | Daniil Kazantsev <dkazanc@hotmail.com> | 2019-03-17 11:11:49 +0000 |
commit | 527e8b28aad16d09b37fa8c9d8790a89276d68b1 (patch) | |
tree | b8654877391908a82e2284f2b00d57a3bac67920 /src | |
parent | 9633c5d701c164c3ff8f4d870624f87744d186bd (diff) | |
download | regularization-527e8b28aad16d09b37fa8c9d8790a89276d68b1.tar.gz regularization-527e8b28aad16d09b37fa8c9d8790a89276d68b1.tar.bz2 regularization-527e8b28aad16d09b37fa8c9d8790a89276d68b1.tar.xz regularization-527e8b28aad16d09b37fa8c9d8790a89276d68b1.zip |
final corrections
Diffstat (limited to 'src')
-rw-r--r-- | src/Core/regularisers_CPU/FGP_TV_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
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*/ |