Triumvirate C++ API 0.5.0.post1.dev301+g026f21751
Three-point clustering measurements in large-scale structure analyses.
Loading...
Searching...
No Matches
maths.cpp File Reference
#include "maths.hpp"
+ Include dependency graph for maths.cpp:

Go to the source code of this file.

Namespaces

namespace  trv
 
namespace  trv::maths
 

Functions

std::complex< double > trv::maths::eval_complex_in_polar (double r, double theta)
 Evaluate a complex number \( r e^{i \theta} \) in the polar form.
 
double trv::maths::get_vec3d_magnitude (std::vector< double > vec)
 Return the magnitude of a 3-d vector.
 
double trv::maths::get_vec3d_magnitude (double *vec)
 Return the magnitude of a 3-d vector.
 
std::complex< double > trv::maths::eval_lanczos_approx_series (std::complex< double > z)
 Evaluate the Lanczos approximation series \( A_g(z) \) for the gamma function.
 
std::complex< double > trv::maths::eval_gamma_lanczos (std::complex< double > z)
 Evaluate the gamma function \( \Gamma(z) \) on the complex plane using the Lanczos approximation.
 
void trv::maths::get_lngamma_parts (double x, double y, double &lnr, double &theta)
 Get the real and imaginary parts of the log-gamma function \( \ln\Gamma(z = x + \mathrm{i}\,y) \).
 
std::complex< double > trv::maths::eval_gamma_lnratio (double mu, std::complex< double > nu)
 Evaluate the logarithm of the ratio of two gamma functions.
 
double trv::maths::wigner_3j (int j1, int j2, int j3, int m1, int m2, int m3)
 Calculate Wigner 3-j symbol.
 

Variables

const double trv::maths::gconst_lanczos = 7.
 Lanczos approximation constant.
 

Detailed Description

Authors
Mike S Wang (https://github.com/MikeSWang), Naonori S Sugiyama (https://github.com/naonori)

Definition in file maths.cpp.