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

implement method 'projectOntoTangentSpace

[[Imported from SVN: r9081]]
parent 766b212d
No related branches found
No related tags found
No related merge requests found
...@@ -322,11 +322,9 @@ public: ...@@ -322,11 +322,9 @@ public:
} }
/** \brief Project tangent vector of R^n onto the tangent space */ /** \brief Project tangent vector of R^n onto the tangent space. For H^m this is the identity */
EmbeddedTangentVector projectOntoTangentSpace(const EmbeddedTangentVector& v) const { EmbeddedTangentVector projectOntoTangentSpace(const EmbeddedTangentVector& v) const {
EmbeddedTangentVector result = v; return v;
result.axpy(-1*(data_*result), data_);
return result;
} }
/** \brief The global coordinates, if you really want them */ /** \brief The global coordinates, if you really want them */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment