Commit 13829c15 authored by Thibault Hallouin's avatar Thibault Hallouin
Browse files

avoid index type mismatch and unnecessary casting

1 merge request!3release v0.1.0
Pipeline #43778 passed with stage
in 2 minutes and 56 seconds
Showing with 2 additions and 2 deletions
+2 -2
...@@ -57,7 +57,7 @@ namespace evalhyd ...@@ -57,7 +57,7 @@ namespace evalhyd
); );
xt::view(max_ranks, xt::all()) = NAN; xt::view(max_ranks, xt::all()) = NAN;
for (int m = 0; m < n_mbr; m++) for (std::size_t m = 0; m < n_mbr; m++)
{ {
// strictly below a member and no rank yet // strictly below a member and no rank yet
xt::view(ranks, xt::all()) = xt::where( xt::view(ranks, xt::all()) = xt::where(
...@@ -170,7 +170,7 @@ namespace evalhyd ...@@ -170,7 +170,7 @@ namespace evalhyd
xt::view(r_k_masked, xt::all(), xt::all(), xt::view(r_k_masked, xt::all(), xt::all(),
b_exp[e]); b_exp[e]);
for (int j = 0; j < n_mbr + 1; j++) for (std::size_t j = 0; j < n_mbr + 1; j++)
{ {
// compute the observed relative frequency // compute the observed relative frequency
// $o_j = \sum_{k \in M_j} r_k$ // $o_j = \sum_{k \in M_j} r_k$
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment