Skip to content

Commit

Permalink
bugfix for conj for gcc 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
titaschanda committed Jun 25, 2017
1 parent 9a89dce commit 4cb372b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/QIClib_bits/function/coherence.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ inline TR l1_coh(const T1& rho1) {

for (arma::uword ii = 0; ii < rho.n_rows; ++ii) {
for (arma::uword jj = 0; jj < rho.n_rows; ++jj) {
ret += ii != jj ? std::abs(rho.at(ii) * std::conj(rho.at(jj))) : 0.0;
ret += ii != jj ? std::abs(rho.at(ii) * _internal::conj2(rho.at(jj))) : 0.0;
}
}
}
Expand Down

0 comments on commit 4cb372b

Please sign in to comment.