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

Simple 1d derivatives. More...

#include <cassert>
#include "dg/backend/sparseblockmat.h"
#include "grid.h"
#include "functions.h"
#include "operator.h"
#include "weights.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 real_type >
EllSparseBlockMat< real_type > dg::create::dx_symm (int n, int N, real_type h, bc bcx)
 Create and assemble a host Matrix for the centered 1d single derivative. More...
 
template<class real_type >
EllSparseBlockMat< real_type > dg::create::dx_plus (int n, int N, real_type h, bc bcx)
 Create and assemble a host Matrix for the forward 1d single derivative. More...
 
template<class real_type >
EllSparseBlockMat< real_type > dg::create::dx_minus (int n, int N, real_type h, bc bcx)
 Create and assemble a host Matrix for the backward 1d single derivative. More...
 
template<class real_type >
EllSparseBlockMat< real_type > dg::create::jump (int n, int N, real_type h, bc bcx)
 Create and assemble a host Matrix for the jump terms in 1d. More...
 
template<class real_type >
EllSparseBlockMat< real_type > dg::create::dx_normed (int n, int N, real_type h, bc bcx, direction dir)
 Create and assemble a host Matrix for normed derivative in 1d. More...
 
template<class real_type >
EllSparseBlockMat< real_type > dg::create::dx (const RealGrid1d< real_type > &g, bc bcx, direction dir=centered)
 Create and assemble a host Matrix for the derivative in 1d. More...
 
template<class real_type >
EllSparseBlockMat< real_type > dg::create::dx (const RealGrid1d< real_type > &g, direction dir=centered)
 Create and assemble a host Matrix for the derivative in 1d. More...
 
template<class real_type >
EllSparseBlockMat< real_type > dg::create::jump (const RealGrid1d< real_type > &g, bc bcx)
 Create and assemble a host Matrix for the jump in 1d. More...
 
template<class real_type >
EllSparseBlockMat< real_type > dg::create::jump (const RealGrid1d< real_type > &g)
 Create and assemble a host Matrix for the jump in 1d. More...
 

Detailed Description

Simple 1d derivatives.