Discontinuous Galerkin Library
#include "dg/algorithm.h"
projection.h File Reference

Creation of projection matrices. More...

#include <vector>
#include <cusp/coo_matrix.h>
#include <cusp/transpose.h>
#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 >
dg::gcd (T a, T b)
 Greatest common divisor. More...
 
template<class T >
dg::lcm (T a, T b)
 Least common multiple. More...
 
template<class real_type >
cusp::coo_matrix< int, real_type, cusp::host_memory > dg::create::diagonal (const thrust::host_vector< real_type > &diagonal)
 Create a diagonal matrix. More...
 
template<class real_type >
cusp::coo_matrix< int, real_type, cusp::host_memory > dg::create::projection (const RealGrid1d< real_type > &g_new, const RealGrid1d< real_type > &g_old, std::string method="dg")
 Create a projection between two grids. More...
 
template<class real_type >
cusp::coo_matrix< int, real_type, cusp::host_memory > dg::create::projection (const aRealTopology2d< real_type > &g_new, const aRealTopology2d< real_type > &g_old, std::string method="dg")
 Create a projection between two grids. More...
 
template<class real_type >
cusp::coo_matrix< int, real_type, cusp::host_memory > dg::create::projection (const aRealTopology3d< real_type > &g_new, const aRealTopology3d< real_type > &g_old, std::string method="dg")
 Create a projection between two grids. More...
 
template<class real_type >
cusp::coo_matrix< int, real_type, cusp::host_memory > dg::create::transformation (const aRealTopology3d< real_type > &g_new, const aRealTopology3d< real_type > &g_old)
 Create a transformation matrix between two grids. More...
 
template<class real_type >
cusp::coo_matrix< int, real_type, cusp::host_memory > dg::create::transformation (const aRealTopology2d< real_type > &g_new, const aRealTopology2d< real_type > &g_old)
 Create a transformation matrix between two grids. More...
 
template<class real_type >
cusp::coo_matrix< int, real_type, cusp::host_memory > dg::create::transformation (const RealGrid1d< real_type > &g_new, const RealGrid1d< real_type > &g_old)
 Create a transformation matrix between two grids. More...
 
template<class real_type >
dg::IHMatrix_t< real_type > dg::create::backproject (const RealGrid1d< real_type > &g)
 Create a matrix \( PI\) that projects values to an equidistant grid. More...
 
template<class real_type >
dg::IHMatrix_t< real_type > dg::create::backproject (const aRealTopology2d< real_type > &g)
 Create a matrix \( PI\) that projects values to an equidistant grid. More...
 
template<class real_type >
dg::IHMatrix_t< real_type > dg::create::backproject (const aRealTopology3d< real_type > &g)
 Create a matrix \( PI\) that projects values to an equidistant grid. More...
 
template<class real_type >
dg::IHMatrix_t< real_type > dg::create::inv_backproject (const RealGrid1d< real_type > &g)
 Create a matrix \( (PI)^{-1}\) that transforms values from an equidistant grid back to a dg grid. More...
 
template<class real_type >
dg::IHMatrix_t< real_type > dg::create::inv_backproject (const aRealTopology2d< real_type > &g)
 Create a matrix \( (PI)^{-1}\) that transforms values from an equidistant grid back to a dg grid. More...
 
template<class real_type >
dg::IHMatrix_t< real_type > dg::create::inv_backproject (const aRealTopology3d< real_type > &g)
 Create a matrix \( (PI)^{-1}\) that transforms values from an equidistant grid back to a dg grid. More...
 

Detailed Description

Creation of projection matrices.