1 #ifndef DUNE_GEOMETRY_GENERICGEOMETRY_MAPPING_HH
2 #define DUNE_GEOMETRY_GENERICGEOMETRY_MAPPING_HH
12 namespace GenericGeometry
27 template<
class CoordTraits,
class Topo,
int dimW,
class Impl >
32 typedef Impl Implementation;
51 template<
unsigned int codim,
unsigned int i >
65 template<
class CoordVector >
66 explicit Mapping (
const CoordVector &coords )
71 :
impl_( implementation )
86 const FieldType epsilon = CoordTraits::epsilon();
87 x = ReferenceElement::template baryCenter< 0 >( 0 );
97 MatrixHelper::template xTRightInvA< dimension, dimWorld >( JT, z, dx );
99 }
while( dx.two_norm2() > epsilon*epsilon );
113 return MatrixHelper :: template rightInvA< dimension, dimWorld >( JT, JTInv );
120 return MatrixHelper :: template sqrtDetAAT< dimension, dimWorld >( JT );
128 template<
unsigned int codim,
unsigned int i >
131 return impl_.template trace< codim, i >();
139 #endif // #ifndef DUNE_GEOMETRY_GENERICGEOMETRY_MAPPING_HH