Skip to content
Snippets Groups Projects
Commit 2b6bdd3f authored by Oliver Sander's avatar Oliver Sander Committed by sander@PCPOOL.MI.FU-BERLIN.DE
Browse files

remove method derivativeOfDistance (not squared). It is not used anymore

[[Imported from SVN: r5791]]
parent 18a8466f
No related branches found
No related tags found
No related merge requests found
......@@ -58,13 +58,6 @@ public:
return (a.data_ - b.data_).two_norm();
}
/** \brief Compute the gradient of the distance function keeping the first argument fixed
*/
static EmbeddedTangentVector derivativeOfDistanceWRTSecondArgument(const RealTuple& a, const RealTuple& b) {
EmbeddedTangentVector gradient = a.data_ - b.data_;
return -gradient/distance(a,b);
}
/** \brief Compute the gradient of the squared distance function keeping the first argument fixed
Unlike the distance itself the squared distance is differentiable at zero
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment