\( f(x,y) = \sum_{i=0}^{M-1} \sum_{j=0}^{N-1} c_{iN+j} x^i y^j \)
More...
|
| 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 |
|
\( 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
◆ 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
-
c | vector of size MN containing coefficientc c (accessed as c[i*N+j] i.e. y-direction is contiguous) |
M | number of polynomials in x |
N | number of polynomials in y |
◆ operator()()
double dg::Horner2d::operator() |
( |
double |
x, |
|
|
double |
y |
|
) |
| const |
|
inline |
The documentation for this struct was generated from the following file: