117 void set (
const int lMax);
129 double operator () (
const double x,
const int ell);
151 double integral (
const double x_min,
const double x_max,
const int ell);
161 std::vector<double>
integral (
const double x_min,
const double x_max);
173 std::vector<std::vector<double>>
triangle (
const double r12,
const double r13,
const double r23);
191 std::vector<double>
triangle_integral (
const double r12_min,
const double r12_max,
const double r13_min,
const double r13_max,
const double r23_min,
const double r23_max,
const double rel_err=1.e-4,
const int nevals=10000);
Useful generic functions.
The class LegendrePolynomials.
double operator()(const double x, const int ell)
evaluate the Legendre polynomial of order ell at x
std::vector< double > triangle_integral(const double r12_min, const double r12_max, const double r13_min, const double r13_max, const double r23_min, const double r23_max, const double rel_err=1.e-4, const int nevals=10000)
evaluate the bin-averaged Legendre polynomials over a triangle. Triangle side can vary from a minimum...
double integral(const double x_min, const double x_max, const int ell)
evaluate the bin-averaged Legendre polynomial of order ell
std::vector< std::vector< double > > triangle(const double r12, const double r13, const double r23)
evaluate the Legendre polynomials for triangle angles.
void set(const int lMax)
set maximum order of expansion
Eigen::MatrixXd m_coefficients
Coefficients of the Legendre polynomials.
~LegendrePolynomials()
Default destructor.
void m_set_coefficients(const int lMax)
set internal attribute m_coefficients
LegendrePolynomials()
Default constructor of LegendrePolynomials.
size_t m_nOrders
Number of Legendre polynomial.
The global namespace of the CosmoBolognaLib