|
ROL
|
#include <Lagrange.hpp>
Public Member Functions | |
| Lagrange (const std::vector< Real > &xin, const std::vector< Real > &xev) | |
| Interpolation object which interpolates from to the grid xin to xev. | |
| ~Lagrange () | |
| void | interp (const std::vector< Real > &f, std::vector< Real > &p) |
| Given the values of a function on the interpolation points xin, stored in f, evaluate the interpolating polynomial on the evaluation points xev. | |
| void | dinterp (const std::vector< Real > &f, std::vector< Real > &p) |
| void | interpolant (const int k, std::vector< Real > &l) |
| Evaluate the kth interpolant on the evaluation points. | |
| void | derivative (const int k, std::vector< Real > &d) |
| Derivative of the \(k\)th interpolant on the interpolation points. | |
| void | bi_sum (const std::vector< Real > &f, std::vector< Real > &y) |
| This routine evaluates sums of the form shown in equation (4.2) in the paper by J-P Berrut and L.N. Trefethen. | |
Private Attributes | |
| const std::vector< Real > | xin_ |
| const std::vector< Real > | xev_ |
| const int | nin_ |
| const int | nev_ |
| std::vector< Real > | w_ |
| std::vector< Real > | ell_ |
| std::vector< Real > | D_ |
Definition at line 16 of file Lagrange.hpp.
| Lagrange< Real >::Lagrange | ( | const std::vector< Real > & | xin, |
| const std::vector< Real > & | xev ) |
Definition at line 124 of file Lagrange.hpp.
| void Lagrange< Real >::interp | ( | const std::vector< Real > & | f, |
| std::vector< Real > & | p ) |
Given the values of a function on the interpolation points xin, stored in f, evaluate the interpolating polynomial on the evaluation points xev.
| [in] | f | vector of function values sampled at xin |
| [out] | y | vector of interpolating polynomial values evaluated ay xev |
Definition at line 156 of file Lagrange.hpp.
References bi_sum(), ell_, and nev_.
Referenced by derivative().
| void Lagrange< Real >::dinterp | ( | const std::vector< Real > & | f, |
| std::vector< Real > & | p ) |
| void Lagrange< Real >::interpolant | ( | const int | k, |
| std::vector< Real > & | l ) |
| void Lagrange< Real >::derivative | ( | const int | k, |
| std::vector< Real > & | d ) |
Derivative of the \(k\)th interpolant on the interpolation points.
Definition at line 200 of file Lagrange.hpp.
| void Lagrange< Real >::bi_sum | ( | const std::vector< Real > & | f, |
| std::vector< Real > & | y ) |
This routine evaluates sums of the form shown in equation (4.2) in the paper by J-P Berrut and L.N. Trefethen.
| [in] | f | vector of values appearing in the sum |
| [out] | y | the result |
Definition at line 131 of file Lagrange.hpp.
References nev_, nin_, w_, xev_, and xin_.
Referenced by dinterp(), interp(), interpolant(), and Lagrange().
|
private |
| xin_ | Vector of interpolation points |
Definition at line 39 of file Lagrange.hpp.
Referenced by bi_sum(), interpolant(), and Lagrange().
|
private |
Definition at line 42 of file Lagrange.hpp.
Referenced by bi_sum(), interpolant(), and Lagrange().
|
private |
Definition at line 45 of file Lagrange.hpp.
Referenced by bi_sum(), derivative(), dinterp(), interpolant(), and Lagrange().
|
private |
Definition at line 48 of file Lagrange.hpp.
Referenced by bi_sum(), dinterp(), interp(), interpolant(), and Lagrange().
|
private |
Definition at line 51 of file Lagrange.hpp.
Referenced by bi_sum(), interpolant(), and Lagrange().
|
private |
Definition at line 54 of file Lagrange.hpp.
Referenced by dinterp(), interp(), interpolant(), and Lagrange().
|
private |
Definition at line 57 of file Lagrange.hpp.
Referenced by derivative(), and Lagrange().