13#include "cantera/numerics/eigen_sparse.h"
38double linearInterp(
double x,
const vector<double>& xpts,
const vector<double>& fpts);
50double trapezoidal(
const Eigen::ArrayXd& f,
const Eigen::ArrayXd& x);
65double simpson(
const Eigen::ArrayXd& f,
const Eigen::ArrayXd& x);
79 const Eigen::ArrayXd& f,
80 const Eigen::ArrayXd& x);
This file contains definitions of constants, types and terms that are used in internal routines and a...
double linearInterp(double x, const vector< double > &xpts, const vector< double > &fpts)
Linearly interpolate a function defined on a discrete grid.
double numericalQuadrature(const string &method, const Eigen::ArrayXd &f, const Eigen::ArrayXd &x)
Numerical integration of a function.
double trapezoidal(const Eigen::ArrayXd &f, const Eigen::ArrayXd &x)
Numerical integration of a function using the trapezoidal rule.
double simpson(const Eigen::ArrayXd &f, const Eigen::ArrayXd &x)
Numerical integration of a function using Simpson's rule with flexibility of taking odd and even numb...
Namespace for the Cantera kernel.