Skip to content
Snippets Groups Projects

added ProductManifold<...>

Merged Müller, Alexander requested to merge addProductManifold into master
3 files
+ 48
9
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 13
1
@@ -106,7 +106,14 @@ public:
Simply the Euclidean distance */
static T distance(const RealTuple& a, const RealTuple& b) {
return (a.data_ - b.data_).two_norm();
return log(a.data_,b.data_).two_norm();
}
/** \brief The logarithmic map
* Simply the difference vector for RealTuple
* */
static auto log(const RealTuple& a, const RealTuple& b) {
return a.data_ - b.data_;
}
#if ADOLC_ADOUBLE_H
@@ -215,6 +222,11 @@ public:
return data_;
}
Dune::FieldVector<T,N>& globalCoordinates() {
return data_;
}
/** \brief Compute an orthonormal basis of the tangent space of R^n.
In general this frame field, may of course not be continuous, but for RealTuples it is.
Loading