--- a/src/dist.rs Mon Oct 21 10:02:57 2024 -0500
+++ b/src/dist.rs Mon Oct 21 10:05:07 2024 -0500
@@ -45,7 +45,8 @@
impl<M : ManifoldPoint> Desc<M> for DistToSquaredDiv2<M> {
fn desc(&self, τ : f64, x : M) -> M {
- x.exp(&(self.grad(&x) * τ))
+ let t = self.grad(&x) * τ;
+ x.exp(&t)
}
}