Discontinuous Galerkin Library
#include "dg/algorithm.h"

\( f(x,y) = \sum_{i=0}^{M-1} \sum_{j=0}^{N-1} c_{iN+j} x^i y^j \) More...

Public Member Functions

 Horner2d ()
 Initialize 1 coefficient to 1. More...
 
 Horner2d (std::vector< double > c, unsigned M, unsigned N)
 Initialize coefficients and dimensions. More...
 
double operator() (double x, double y) const
 

Detailed Description

\( f(x,y) = \sum_{i=0}^{M-1} \sum_{j=0}^{N-1} c_{iN+j} x^i y^j \)

Evaluated using Horner's method

Constructor & Destructor Documentation

◆ Horner2d() [1/2]

dg::Horner2d::Horner2d ( )
inline

Initialize 1 coefficient to 1.

◆ Horner2d() [2/2]

dg::Horner2d::Horner2d ( std::vector< double >  c,
unsigned  M,
unsigned  N 
)
inline

Initialize coefficients and dimensions.

Parameters
cvector of size MN containing coefficientc c (accessed as c[i*N+j] i.e. y-direction is contiguous)
Mnumber of polynomials in x
Nnumber of polynomials in y

Member Function Documentation

◆ operator()()

double dg::Horner2d::operator() ( double  x,
double  y 
) const
inline

The documentation for this struct was generated from the following file: