-
- Downloads
Implement new method distanceSquared, between a double vector and an adouble one
This is needed for the new gradientflow application. The standard 'distance' method doesn't cut it, because it is not differentiable near zero. Therefore, even the differentiable expression 'distance*distance' will fail to be differentiable for an automatic-differentiation system. I think in the long run we should replace 'distance' by 'distanceSquared' everywhere it is used. Unfortunately, this patch is hacky: it only adds the method for the double/adouble combination.
Loading
Please register or sign in to comment