mathtools.h Source File

LibRPA: mathtools.h Source File
LibRPA
mathtools.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <cstddef>
8 
10 
15 void GaussChebyshevI_unit(size_t N, double *nodes, double *weights);
16 
18 
23 void GaussChebyshevII_unit(size_t N, double *nodes, double *weights);
24 
26 
31 void GaussLegendre_unit(size_t N, double *nodes, double *weights);
32 
34 
40 void LegendreP_order_N(int N, double x, double &y, double &dy);
41 
43 
49 void transform_GaussQuad_unit2x0inf(double x0, size_t N, double *nodes, double *weights);
50 
52 
59 void transform_GaussQuad_unit2x0x1(double x0, double x1, size_t N, double *nodes, double *weights);
60 
62 
67 void transform_GaussQuad_unit2inf(size_t N, double *nodes, double *weights);
68 
70 
76 void transform_GaussQuad_unit2minfx0(double x0, size_t N, double *nodes, double *weights);
void GaussLegendre_unit(size_t N, double *nodes, double *weights)
Compute N-point Gauss-Legendre grids in [-1, 1];.
Definition: mathtools.cpp:52
void transform_GaussQuad_unit2x0x1(double x0, double x1, size_t N, double *nodes, double *weights)
Transform Gauss grids from [-1, 1] to [x0, x1].
Definition: mathtools.cpp:115
void GaussChebyshevI_unit(size_t N, double *nodes, double *weights)
Get the Gauss-Chebyshev quadrature based on Chebyshev points of the first type (kind)
Definition: mathtools.cpp:18
void transform_GaussQuad_unit2inf(size_t N, double *nodes, double *weights)
Transform Gauss grids from [-1, 1] to [-infty, infty].
Definition: mathtools.cpp:132
void transform_GaussQuad_unit2minfx0(double x0, size_t N, double *nodes, double *weights)
Transform Gauss grids from [-1, 1] to [-infty, x0].
Definition: mathtools.cpp:149
void LegendreP_order_N(int N, double x, double &y, double &dy)
Compute Legendre polynomial of order N at x in [-1, 1];.
Definition: mathtools.cpp:83
void transform_GaussQuad_unit2x0inf(double x0, size_t N, double *nodes, double *weights)
Transform Gauss grids from [-1, 1] to [x0, infty].
Definition: mathtools.cpp:100
void GaussChebyshevII_unit(size_t N, double *nodes, double *weights)
Get the Gauss-Chebyshev quadrature based on Chebyshev points of the second type (kind)
Definition: mathtools.cpp:38