#include <cassert>
#include <numeric>
#include "dune/common/fvector.hh"
#include "dune/common/fmatrix.hh"
Go to the source code of this file.
|
template<class CoordType , int dim> |
Dune::FieldVector< CoordType, dim+1 > | Kaskade::barycentric (Dune::FieldVector< CoordType, dim > const &x) |
| Computes the barycentric coordinates of a point in the unit simplex. More...
|
|
template<class CoordType , int dim, std::enable_if_t< std::is_floating_point_v< CoordType >, int > = 0> |
Dune::FieldVector< CoordType, dim > | Kaskade::projectToUnitSimplex (Dune::FieldVector< CoordType, dim > x) |
| Projects a vector onto the unit simplex. More...
|
|
template<class CoordType , int dim> |
Dune::FieldVector< CoordType, dim+1 > | Kaskade::barycentric2 (Dune::FieldVector< CoordType, dim > const &x) |
| Computes barycentric coordinates of a point in the unit simplex. More...
|
|
template<class CoordType , int dim> |
Dune::FieldMatrix< CoordType, dim+1, dim > | Kaskade::barycentric2Derivative (Dune::FieldVector< CoordType, dim > const &x) |
| Computes the derivative of the barycentric coordinates of a point in the unit simplex. More...
|
|
template<size_t dim> |
std::array< int, dim+1 > | Kaskade::barycentric (std::array< int, dim > const &x, int bsum) |
| Converts integer coordinate index to barycentric indices. More...
|
|