Query: interpolate
OS: debian
Section: 4rheolef
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
interpolate(4rheolef) rheolef-6.1 interpolate(4rheolef)NAMEinterpolate - Lagrange interpolation of a functionDESCRIPTIONThe function interpolation implements the Lagrange interpolation of a function or a class-function.SYNOPSYStemplate <class Function> field interpolate (const space& Vh, const Function& f);EXAMPLEThe following code compute the Lagrange interpolation pi_h_u of u(x). Float u(const point& x); ... geo omega("square"); space Xh (omega, "P1"); field pi_h_u = interpolate (Xh, u);ADVANCED EXAMPLEIt is possible the replace the function u by a variable of the field type that represents a picewise polynomial function: this invocation allows the reinterpolation of a field on another mesh or with another approximation. geo omega2 ("square2"); space X2h (omega2, "P1"); field uh2 = interpolate (X2h, pi_h_u);IMPLEMENTATIONtemplate <class T, class M, class Function> inline field_basic<T,M> interpolate (const space_basic<T,M>& V, Function f) rheolef-6.1 rheolef-6.1 interpolate(4rheolef)