Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Saves committed Feb 21, 2024
1 parent fdf0213 commit ede362c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions smt/utils/kriging.py
Original file line number Diff line number Diff line change
Expand Up @@ -1550,7 +1550,7 @@ def quadratic(x):
return f


@njit_use(parallel=True)
@njit_use(parallel=False)
def matrix_data_corr_levels_cat_matrix(
i, n_levels, theta_cat, theta_bounds, is_ehh: bool
):
Expand All @@ -1563,9 +1563,8 @@ def matrix_data_corr_levels_cat_matrix(
if j == k + j:
Theta_mat[j, k + j] = 1.0
else:
val = theta_cat[int(v)]
Theta_mat[int(j), int(k + j)] = val
Theta_mat[int(k + j), int(j)] = val
Theta_mat[j, k + j] = theta_cat[int(v)]
Theta_mat[k + j, j] = theta_cat[int(v)]
v = v + 1

for j in range(n_levels[i]):
Expand Down

0 comments on commit ede362c

Please sign in to comment.