MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
interp.h
Go to the documentation of this file.
1 /* $Header: /var/cvs/mbdyn/mbdyn/mbdyn-1.0/libraries/libmbmath/interp.h,v 1.6 2015/01/25 13:59:23 masarati Exp $ */
2 
3 #ifndef INTERP_H
4 #define INTERP_H
5 
6 #include <vector>
7 #include "ac/f2c.h"
8 #include "myassert.h"
9 
10 /*
11  * Compute spline coefficients
12  */
13 extern void
14 spline(const std::vector<doublereal>& x,
15  const std::vector<doublereal>& y,
16  std::vector<doublereal>& b,
17  std::vector<doublereal>& c,
18  std::vector<doublereal>& d);
19 
20 /*
21  * Evaluate spline
22 */
23 extern doublereal
24 seval(const doublereal& u,
25  const std::vector<doublereal>& x,
26  const std::vector<doublereal>& y,
27  const std::vector<doublereal>& b,
28  const std::vector<doublereal>& c,
29  const std::vector<doublereal>& d,
30  const int diff = 0);
31 
32 /*
33  * Evaluate multilinear function
34 */
35 extern doublereal
36 leval(const doublereal& u,
37  const std::vector<doublereal>& x,
38  const std::vector<doublereal>& y,
39  const int diff = 0);
40 
41 #endif // INTERP_H
42 
void spline(const std::vector< doublereal > &x, const std::vector< doublereal > &y, std::vector< doublereal > &b, std::vector< doublereal > &c, std::vector< doublereal > &d)
Definition: interp.cc:8
doublereal seval(const doublereal &u, const std::vector< doublereal > &x, const std::vector< doublereal > &y, const std::vector< doublereal > &b, const std::vector< doublereal > &c, const std::vector< doublereal > &d, const int diff=0)
Definition: interp.cc:128
doublereal leval(const doublereal &u, const std::vector< doublereal > &x, const std::vector< doublereal > &y, const int diff=0)
Definition: interp.cc:242
static std::stack< cleanup * > c
Definition: cleanup.cc:59
double doublereal
Definition: colamd.c:52