Astrodynamics Functions
Loading...
Searching...
No Matches
Nlm.hpp
Go to the documentation of this file.
1
9#ifndef _NLM_HPP_
10#define _NLM_HPP_
11
12#include <cmath>
13
39class Nlm
40{
41 double *_Nlm = nullptr; // Private attribute storing Nlm coefficients
42 int l_max;
43
50 int lm_idx(int l, int m);
51
52public:
56 Nlm();
61 Nlm(int l_max);
62
63 // Copy assignment operator constructor
64 Nlm &operator=(const Nlm &other);
65
66 // Copy constructor
67 Nlm(const Nlm &other);
68
69 // Destructor
70 ~Nlm();
71
77 double get_Nlm(int l, int m);
78};
79
80#endif //_NLM_HPP_
Computes recursively and stores normalization constants for fully-normalized spherical harmonics.
Definition Nlm.hpp:40
double get_Nlm(int l, int m)
Getter for normalization constant.
Definition Nlm.cpp:72
Nlm()
Definition Nlm.cpp:14