Class defines a Gauss-Legendre-Chebyshev quadrature set on the unit sphere, where a Gauss-Legendre quadrature set is used along the polar direction, and a Gauss-Chebyshev quadrature set is used along the azimuthal direction. More...
#include <gauss_legendre_chebyshev.h>
Public Member Functions | |
| GaussLegendreChebyshev (const size_t n_half_azim, const size_t n_polar) | |
| Construct a new Gauss Legendre Chebyshev object. | |
| Public Member Functions inherited from hummingbird::QuadratureBase< Ordinate > | |
| QuadratureBase ()=default | |
| double | GetWeight (const unsigned int abscissa_index) const |
| Get the weight value corresponding to a given abscissa value. | |
| Ordinate | GetAbscissa (const unsigned int index) const |
| Get the abscissa corresponding to the index. | |
| double | Integrate (const std::vector< QuadraturePair > &quad_pairs) const |
| Integrate the function using the function value and its location on the quadrature grid. | |
| const std::vector< Ordinate > & | abscissas () const |
| Getter for the abscissas in the quadrature set. | |
| size_t | n_points () const |
| Get total number of abscissas. | |
Additional Inherited Members | |
| Protected Member Functions inherited from hummingbird::QuadratureBase< Ordinate > | |
| void | CreateWeightMap () |
| Create the weight map. | |
| virtual double | ComputeWeight (const size_t k, const size_t n) |
| Compute the weight for the k-th abscissa for n total points. | |
| Protected Attributes inherited from hummingbird::QuadratureBase< Ordinate > | |
| std::vector< Ordinate > | abscissas_ |
| Abscissa values. | |
| std::map< unsigned int, double > | weight_map_ |
| Map to store the weights of the quadrature set where the keys are the indices corresponding to abscissa values. | |
Class defines a Gauss-Legendre-Chebyshev quadrature set on the unit sphere, where a Gauss-Legendre quadrature set is used along the polar direction, and a Gauss-Chebyshev quadrature set is used along the azimuthal direction.
Definition at line 20 of file gauss_legendre_chebyshev.h.
| hummingbird::GaussLegendreChebyshev::GaussLegendreChebyshev | ( | const size_t | n_half_azim, |
| const size_t | n_polar ) |
Construct a new Gauss Legendre Chebyshev object.
| n_half_azim | Number of directions in a half-circle (directions will be mirrored, and thus doubled) |
| n_polar | Number of directions on the polar axis |
Definition at line 10 of file gauss_legendre_chebyshev.cc.