Functions and C++ header files for computation on manifolds
