mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-16 06:05:32 -06:00
13 lines
299 B
C++
13 lines
299 B
C++
#ifndef _STEM4U_Integral_h_
|
|
#define _STEM4U_Integral_h_
|
|
|
|
namespace Upp {
|
|
|
|
enum IntegralType {TRAPEZOIDAL, SIMPSON_1_3};
|
|
|
|
double Integral(const Eigen::VectorXd &y, const Eigen::VectorXd &x);
|
|
double Integral(Eigen::VectorXd &y, double dx, IntegralType type = TRAPEZOIDAL);
|
|
|
|
}
|
|
|
|
#endif
|