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

utility functions More...

#include <thrust/host_vector.h>
#include <cusp/coo_matrix.h>
#include <cassert>
#include "dg/backend/typedefs.h"
#include "grid.h"
#include "dlt.h"
#include "operator.h"
#include "operator_tensor.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 >
cusp::csr_matrix< int, T, cusp::host_memory > dg::tensorproduct (const cusp::csr_matrix< int, T, cusp::host_memory > &lhs, const cusp::csr_matrix< int, T, cusp::host_memory > &rhs)
 \( L\otimes R\) Form the tensor (Kronecker) product between two matrices More...
 
template<class real_type >
dg::IHMatrix_t< real_type > dg::create::backscatter (const RealGrid1d< real_type > &g)
 Create a matrix \( B_{eq} F\) that interpolates values to an equidistant grid ready for visualisation. More...
 
template<class real_type >
dg::IHMatrix_t< real_type > dg::create::backscatter (const aRealTopology2d< real_type > &g)
 Create a matrix \( B_{eq} F\) that interpolates values to an equidistant grid ready for visualisation. More...
 
template<class real_type >
dg::IHMatrix_t< real_type > dg::create::backscatter (const aRealTopology3d< real_type > &g)
 Create a matrix \( B_{eq} F\) that interpolates values to an equidistant grid ready for visualisation. More...
 
template<class real_type >
dg::IHMatrix_t< real_type > dg::create::inv_backscatter (const RealGrid1d< real_type > &g)
 Create a matrix \( (B_{eq} F)^{-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_backscatter (const aRealTopology2d< real_type > &g)
 Create a matrix \( (B_{eq} F)^{-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_backscatter (const aRealTopology3d< real_type > &g)
 Create a matrix \( (B_{eq} F)^{-1}\) that transforms values from an equidistant grid back to a dg grid. More...
 

Detailed Description

utility functions