diff --git a/src/misc/func.rs b/src/misc/func.rs index 8c0c5f1..c7b73f0 100644 --- a/src/misc/func.rs +++ b/src/misc/func.rs @@ -297,7 +297,7 @@ pub fn ln_pflips( let z = if normed { 0.0 } else { - ln_weights.iter().copied().logsumexp() + ln_weights.iter().logsumexp() }; // doing this instead of calling pflips shaves about 30% off the runtime.