IFEM  90A354
Lagrange.h
Go to the documentation of this file.
1 // $Id$
2 //==============================================================================
12 //==============================================================================
13 
14 #ifndef _LAGRANGE_H
15 #define _LAGRANGE_H
16 
17 #include "MatVec.h"
18 
19 
20 namespace Lagrange
21 {
34  bool computeBasis(RealArray& val, int p1, double x1,
35  int p2 = 0, double x2 = 0.0,
36  int p3 = 0, double x3 = 0.0);
37 
51  bool computeBasis(RealArray& val, Matrix& derval, int p1, double x1,
52  int p2 = 0, double x2 = 0.0,
53  int p3 = 0, double x3 = 0.0);
54 
69  bool computeBasis(RealArray& val, Matrix* derval,
70  const RealArray& p1, double x1,
71  const RealArray& p2 = {}, double x2 = 0.0,
72  const RealArray& p3 = {}, double x3 = 0.0);
73 };
74 
75 #endif
std::vector< Real > RealArray
A real-valued array without algebraic operations.
Definition: ImmersedBoundaries.h:29
Global algebraic operations on index 1-based matrices and vectors.
Evaluation of Lagrange basis functions.
Definition: Lagrange.h:21
bool computeBasis(RealArray &val, int p1, double x1, int p2=0, double x2=0.0, int p3=0, double x3=0.0)
Evaluates a 1D, 2D or 3D Lagrangian basis at a given point.
Definition: Lagrange.C:80