13#include "cantera/numerics/eigen_sparse.h"
42double trapezoidal(
const Eigen::ArrayXd& f,
const Eigen::ArrayXd& x);
56double simpson(
const Eigen::ArrayXd& f,
const Eigen::ArrayXd& x);
69 const Eigen::ArrayXd& f,
70 const Eigen::ArrayXd& x);
This file contains definitions of constants, types and terms that are used in internal routines and a...
Namespace for the Cantera kernel.
doublereal linearInterp(doublereal x, const vector_fp &xpts, const vector_fp &fpts)
Linearly interpolate a function defined on a discrete grid.
double trapezoidal(const Eigen::ArrayXd &f, const Eigen::ArrayXd &x)
Numerical integration of a function using the trapezoidal rule.
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
double numericalQuadrature(const std::string &method, const Eigen::ArrayXd &f, const Eigen::ArrayXd &x)
Numerical integration of a function.
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...