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

A rudimentary class implementing tuples of real numbers as a Riemannian...

A rudimentary class implementing tuples of real numbers as a Riemannian manifold.  Mainly for testing

[[Imported from SVN: r5514]]
parent cfb3a733
Branches
No related tags found
No related merge requests found
#ifndef REAL_TUPLE_HH
#define REAL_TUPLE_HH
#include <dune/common/array.hh>
#include <dune/common/fvector.hh>
/** \brief Implement a tuple of real numbers as a Riemannian manifold
Currently this class only exists for testing purposes.
*/
template <int N>
class RealTuple
{
public:
typedef Dune::FieldVector<double,N> EmbeddedTangentVector;
/** \brief Default constructor */
RealTuple()
{}
/** \brief Construction from a scalar */
RealTuple(double v)
{
data_.assign(v);
}
/** \brief Write LocalKey object to output stream */
friend std::ostream& operator<< (std::ostream& s, const RealTuple& realTuple)
{
return s << realTuple.data_;
}
private:
Dune::array<double,N> data_;
};
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment