|
Discontinuous Galerkin Library
#include "dg/algorithm.h"
|
Creation of projection matrices. More...
#include <vector>#include "grid.h"#include "interpolation.h"#include "weights.h"#include "fem.h"Go to the source code of this file.
Namespaces | |
| namespace | dg |
| This is the namespace for all functions and classes defined and used by the discontinuous Galerkin library. | |
| namespace | dg::create |
| Contains functions used for matrix creation. | |
Functions | |
| template<class T > | |
| T | dg::gcd (T a, T b) |
| Greatest common divisor. | |
| template<class T > | |
| T | dg::lcm (T a, T b) |
| Least common multiple. | |
| template<class real_type > | |
| dg::SparseMatrix< int, real_type, thrust::host_vector > | dg::create::diagonal (const thrust::host_vector< real_type > &diagonal) |
| Create a diagonal matrix. | |
| template<class real_type , size_t Nd> | |
| dg::SparseMatrix< int, real_type, thrust::host_vector > | dg::create::projection (const aRealTopology< real_type, Nd > &g_new, const aRealTopology< real_type, Nd > &g_old, std::string method="dg") |
| Create a projection between two grids. | |
| template<class real_type , size_t Nd> | |
| dg::SparseMatrix< int, real_type, thrust::host_vector > | dg::create::transformation (const aRealTopology< real_type, Nd > &g_new, const aRealTopology< real_type, Nd > &g_old) |
| Create a transformation matrix between two grids. | |
| template<class real_type , size_t Nd> | |
| dg::IHMatrix_t< real_type > | dg::create::backproject (const aRealTopology< real_type, Nd > &g) |
| Create a matrix \( PI\) that projects values to an equidistant grid. | |
| template<class real_type , size_t Nd> | |
| dg::IHMatrix_t< real_type > | dg::create::inv_backproject (const aRealTopology< real_type, Nd > &g) |
| Create a matrix \( (PI)^{-1}\) that transforms values from an equidistant grid back to a dg grid. | |
Creation of projection matrices.