See Refinement implementation for simplices.
$Id: simplex.cc 4915 2009-03-10 10:50:41Z mnolte $
#include <dune/common/geometrytype.hh>
#include <dune/common/fvector.hh>
#include <dune/common/helpertemplates.hh>
#include "base.cc"
Namespaces | |
namespace | Dune |
namespace | Dune::RefinementImp |
namespace | Dune::RefinementImp::Simplex |
Classes | |
struct | Dune::RefinementImp::Simplex::Factorial< n > |
Calculate factorial at compile time. More... | |
Functions | |
Utilities | |
int | Dune::RefinementImp::Simplex::factorial (int n) |
Calculate n! | |
int | Dune::RefinementImp::Simplex::binomial (int upper, int lower) |
calculate ![]() | |
template<int dimension> | |
int | Dune::RefinementImp::Simplex::pointIndex (const FieldVector< int, dimension > &point) |
calculate the index of a given gridpoint within a Kuhn0 simplex | |
template<int n> | |
FieldVector< int, n > | Dune::RefinementImp::Simplex::getPermutation (int m) |
Calculate permutation from it's index. | |
template<int dimension, class CoordType> | |
FieldVector< CoordType, dimension > | Dune::RefinementImp::Simplex::referenceToKuhn (FieldVector< CoordType, dimension > point, const FieldVector< int, dimension > &kuhn) |
Map from the reference simplex to some Kuhn simplex. | |
template<int dimension, class CoordType> | |
FieldVector< CoordType, dimension > | Dune::RefinementImp::Simplex::kuhnToReference (FieldVector< CoordType, dimension > point, const FieldVector< int, dimension > &kuhn) |
Map from some Kuhn simplex to the reference simplex. |