From d7fe70e49ff3117428aa4bc52ad879037d8ff8db Mon Sep 17 00:00:00 2001 From: Elias Pipping <elias.pipping@fu-berlin.de> Date: Sun, 16 Oct 2011 00:25:15 +0200 Subject: [PATCH] Rename: project -> negative_projection --- src/samplefunctional.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/samplefunctional.hh b/src/samplefunctional.hh index e69d3bfa..1aa0000e 100644 --- a/src/samplefunctional.hh +++ b/src/samplefunctional.hh @@ -74,7 +74,7 @@ template <int dimension> class SampleFunctional { "semigradient): " << -(ret * pg) << " (coordinates of the restriction)" << std::endl; } else { - ret = project(smoothGradient(x), x); + ret = negative_projection(smoothGradient(x), x); dverb << "## Directional derivative (as per scalar product w/ " "semigradient): " << -(ret * ret) << " (coordinates of the restriction)" << std::endl; @@ -110,7 +110,8 @@ template <int dimension> class SampleFunctional { } // No normalising is done! - SmallVector project(const SmallVector z, const SmallVector x) const { + SmallVector negative_projection(const SmallVector z, + const SmallVector x) const { SmallVector y = z; y.axpy(-(z * x) / x.two_norm2(), x); return y; -- GitLab