- mu_stddev[i] += 1.0f / (prior_sigma * prior_sigma);
- }
-
- // Matches.
- for (unsigned i = 0; i < all_matches.size(); ++i) {
- const match &m = all_matches[i];
-
- int p1 = m.player;
- int p2 = m.other_player;
-
- double sigma_sq = global_sigma * global_sigma;
- float w = m.weight;
-
- mu_stddev[p1] += w / sigma_sq;
- mu_stddev[p2] += w / sigma_sq;
+ for (int j = 0; j < num_players; ++j) {
+ h(i, j) = hessian[i * num_players + j];
+ }