Skip to content

Commit

Permalink
Merge pull request #256 from GeoStat-Framework/fix_c_exact_values_bug
Browse files Browse the repository at this point in the history
C-Backend: Fix exact_values behavior
  • Loading branch information
MuellerSeb authored Aug 23, 2022
2 parents 4b2ce01 + 6af0e08 commit 70c4e7b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pykrige/lib/cok.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ cpdef _c_exec_loop(double [:, ::1] a_all,
b[k] *= -1
b[n] = 1.0

if not pars['exact_values']:
if pars['exact_values']:
check_b_vect(n, bd, b, eps)


Expand Down Expand Up @@ -160,7 +160,8 @@ cpdef _c_exec_loop_moving_window(double [:, ::1] a_all,
b[k] = - tmp[k]
b[n] = 1.0

check_b_vect(n, bd, b, eps)
if pars['exact_values']:
check_b_vect(n, bd, b, eps)

for k in range(nb):
x[k] = b[k]
Expand Down

0 comments on commit 70c4e7b

Please sign in to comment.