Discontinuous Galerkin Library
#include "dg/algorithm.h"
|
Function discretization routines. More...
#include <cassert>
#include <cmath>
#include <thrust/host_vector.h>
#include "dg/backend/config.h"
#include "grid.h"
#include "operator.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. | |
Functions | |
template<class UnaryOp , class real_type > | |
thrust::host_vector< real_type > | dg::evaluate (UnaryOp f, const RealGrid1d< real_type > &g) |
Evaluate a 1d function on grid coordinates. More... | |
template<class BinaryOp , class real_type > | |
thrust::host_vector< real_type > | dg::evaluate (const BinaryOp &f, const aRealTopology2d< real_type > &g) |
Evaluate a 2d function on grid coordinates. More... | |
template<class TernaryOp , class real_type > | |
thrust::host_vector< real_type > | dg::evaluate (const TernaryOp &f, const aRealTopology3d< real_type > &g) |
Evaluate a 3d function on grid coordinates. More... | |
template<class real_type > | |
thrust::host_vector< real_type > | dg::integrate (const thrust::host_vector< real_type > &in, const RealGrid1d< real_type > &g, dg::direction dir=dg::forward) |
Indefinite integral of a function on a grid. More... | |
template<class UnaryOp , class real_type > | |
thrust::host_vector< real_type > | dg::integrate (UnaryOp f, const RealGrid1d< real_type > &g, dg::direction dir=dg::forward) |
Indefinite integral of a function on a grid. More... | |
Function discretization routines.