Only compute the sum of B for one phase and not over all phases.

This commit is contained in:
Markus Blatt 2015-01-28 19:10:24 +01:00
parent f5ed31d128
commit cb9048d928

View File

@ -1900,7 +1900,7 @@ namespace {
for(int idx=0; idx<MaxNumPhases; ++idx)
{
if (active_[idx]) {
B_avg[pu.phase_pos[idx]] = B.sum()/nc;
B_avg[pu.phase_pos[idx]] = B.col(pu.phase_pos[idx]).sum()/nc;
maxCoeff[pu.phase_pos[idx]]=tempV.col(pu.phase_pos[idx]).maxCoeff();
R_sum[pu.phase_pos[idx]] = R.col(pu.phase_pos[idx]).sum();
}else{