CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
GSLwrapper.h File Reference

functions that wrap GSL routines for integration, root finding and minimization More...

#include "Kernel.h"
Include dependency graph for GSLwrapper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 cbl
 The global namespace of the CosmoBolognaLib
 
 cbl::wrapper
 The namespace of the wrappers
 
 cbl::wrapper::gsl
 The namespace of the GSL wrappers
 

Functions

void cbl::wrapper::gsl::check_GSL_fail (const int status, const bool exit, const std::string CBLfunction, const std::string GSLroutine)
 Function used to check output of the wrapped GSL routines. More...
 
double cbl::wrapper::gsl::generic_function (const double xx, void *params)
 function used to integrate interpolated function More...
 
double cbl::wrapper::gsl::generic_roots (double xx, void *params)
 generic roots More...
 
double cbl::wrapper::gsl::generic_minimizer (const gsl_vector *xx, void *params)
 generic roots More...
 
double cbl::wrapper::gsl::generic_minimizer_return (const gsl_vector *xx, void *params)
 generic roots More...
 
double cbl::wrapper::gsl::GSL_derivative (gsl_function Func, const double xx, const double hh, const double prec=1.e-2)
 the derivative of a function More...
 
double cbl::wrapper::gsl::GSL_integrate_romberg (gsl_function Func, const double a, const double b, const int npoints, const double eps_rel=1.e-4, const double eps_abs=1.e-12)
 integral, using the gsl romberg method More...
 
double cbl::wrapper::gsl::GSL_integrate_cquad (gsl_function func, const double a, const double b, const double rel_err=1.e-3, const double abs_err=0, const int nevals=100)
 integral, using the gsl cquad method More...
 
double cbl::wrapper::gsl::GSL_integrate_qag (gsl_function Func, const double a, const double b, const double rel_err=1.e-3, const double abs_err=0, const int limit_size=1000, const int rule=6)
 integral, computed using the GSL qag method More...
 
double cbl::wrapper::gsl::GSL_integrate_qags (gsl_function Func, const double a, const double b, const double rel_err=1.e-3, const double abs_err=0, const int limit_size=1000)
 integral, computed using the GSL qags method More...
 
double cbl::wrapper::gsl::GSL_integrate_qaws (gsl_function Func, const double a, const double b, const double alpha=0, const double beta=0, const int mu=1, const int nu=0, const double rel_err=1.e-3, const double abs_err=0, const int limit_size=1000)
 integral, computed using the GSL qaws method More...
 
double cbl::wrapper::gsl::GSL_integrate_qagiu (gsl_function Func, const double a, const double rel_err=1.e-3, const double abs_err=0, const int limit_size=1000)
 integral, computed using the GSL qagiu method More...
 
double cbl::wrapper::gsl::GSL_derivative (FunctionDoubleDouble func, const double xx, const double hh, const double prec=1.e-2)
 the derivative of a function More...
 
double cbl::wrapper::gsl::GSL_integrate_romberg (FunctionDoubleDouble Func, const double a, const double b, const int npoints, const double eps_rel=1.e-4, const double eps_abs=1.e-12)
 integral, using the gsl romberg method More...
 
double cbl::wrapper::gsl::GSL_integrate_cquad (FunctionDoubleDouble func, const double a, const double b, const double rel_err=1.e-3, const double abs_err=0, const int nevals=100)
 integral, using the GSL cquad method More...
 
double cbl::wrapper::gsl::GSL_integrate_qag (FunctionDoubleDouble func, const double a, const double b, const double rel_err=1.e-3, const double abs_err=0, const int limit_size=1000, const int rule=6)
 integral, using the GSL qag method More...
 
double cbl::wrapper::gsl::GSL_integrate_qags (FunctionDoubleDouble func, const double a, const double b, const double rel_err=1.e-3, const double abs_err=0, const int limit_size=1000)
 integral, using the GSL qags method More...
 
double cbl::wrapper::gsl::GSL_integrate_qagiu (FunctionDoubleDouble func, const double a, const double rel_err=1.e-3, const double abs_err=0, const int limit_size=1000)
 integral, using the GSL qagiu method More...
 
double cbl::wrapper::gsl::GSL_integrate_qaws (FunctionDoubleDouble func, const double a, const double b, const double alpha=0, const double beta=0, const int mu=1, const int nu=0, const double rel_err=1.e-3, const double abs_err=0, const int limit_size=1000)
 integral, using the GSL qaws method More...
 
double cbl::wrapper::gsl::GSL_integrate_cquad (FunctionDoubleDoublePtrVectorRef func, std::shared_ptr< void > pp, std::vector< double > par, const double a, const double b, const double rel_err=1.e-3, const double abs_err=0, const int nevals=100)
 integral, using the GSL cquad method More...
 
double cbl::wrapper::gsl::GSL_integrate_qag (FunctionDoubleDoublePtrVectorRef func, std::shared_ptr< void > pp, std::vector< double > par, const double a, const double b, const double rel_err=1.e-3, const double abs_err=0, const int limit_size=1000, const int rule=6)
 integral, using the GSL qag method More...
 
double cbl::wrapper::gsl::GSL_integrate_qags (FunctionDoubleDoublePtrVectorRef func, std::shared_ptr< void > pp, std::vector< double > par, const double a, const double b, const double rel_err=1.e-3, const double abs_err=0, const int limit_size=1000)
 integral, using the GSL qags method More...
 
double cbl::wrapper::gsl::GSL_integrate_qagiu (FunctionDoubleDoublePtrVectorRef func, std::shared_ptr< void > pp, std::vector< double > par, const double a, const double rel_err=1.e-3, const double abs_err=0, const int limit_size=1000)
 integral, using the GSL qagiu method More...
 
double cbl::wrapper::gsl::GSL_integrate_qaws (FunctionDoubleDoublePtrVectorRef func, std::shared_ptr< void > pp, std::vector< double > par, const double a, const double b, const double alpha=0, const double beta=0, const int mu=1, const int nu=0, const double rel_err=1.e-3, const double abs_err=0, const int limit_size=1000)
 integral, using the GSL qag method More...
 
double cbl::wrapper::gsl::GSL_root_brent (gsl_function Func, const double low_guess, const double up_guess, const double rel_err=1.e-3, const double abs_err=0)
 function to find roots using GSL qag method More...
 
double cbl::wrapper::gsl::GSL_root_brent (FunctionDoubleDouble func, double xx0, const double low_guess, const double up_guess, const double rel_err=1.e-3, const double abs_err=0)
 function to find roots using GSL brent method More...
 
std::vector< double > cbl::wrapper::gsl::GSL_minimize_nD (FunctionDoubleVector func, const std::vector< double > start, const std::vector< std::vector< double >> ranges, const unsigned int max_iter=1000, const double tol=1.e-6, const double epsilon=0.1)
 minimize the provided function using GSL procedure More...
 
std::vector< double > cbl::wrapper::gsl::GSL_minimize_nD (FunctionDoubleVectorRef func, const std::vector< double > start, const std::vector< std::vector< double >> ranges, const unsigned int max_iter=1000, const double tol=1.e-6, const double epsilon=0.1)
 minimize the provided function using GSL procedure More...
 
double cbl::wrapper::gsl::GSL_minimize_1D (FunctionDoubleDouble func, const double start, double min=par::defaultDouble, double max=-par::defaultDouble, const int max_iter=1000, const bool verbose=false)
 minimize the provided function using GSL procedure More...
 
double cbl::wrapper::gsl::GSL_polynomial_eval (const double x, const std::shared_ptr< void > fixed_parameters, const std::vector< double > coeff)
 evaluate a polynomial More...
 
void cbl::wrapper::gsl::GSL_polynomial_root (const std::vector< double > coeff, std::vector< std::vector< double >> &root)
 find polynomial roots More...
 

Detailed Description

functions that wrap GSL routines for integration, root finding and minimization

This file contains the wrappers of GSL routines for integration, root finding and minimization

Author
Federico Marulli
feder.nosp@m.ico..nosp@m.marul.nosp@m.li3@.nosp@m.unibo.nosp@m..it

Definition in file GSLwrapper.h.