27 #ifndef __GyotoUtils_H_ 28 #define __GyotoUtils_H_ 83 const double mass_sun,
const double distance_kpc,
84 const std::string unit);
97 double atof(
const char * str);
103 void help(std::string class_name);
106 std::vector<std::string>
split(std::string
const &src, std::string
const &delim);
119 double bessk(
int nn,
double xx);
121 double hypergeom (
double kappaIndex,
double thetae);
134 void matrix4Invert(
double ARGOUT_ARRAY2[4][4],
double const IN_ARRAY2[4][4]);
173 std::vector<std::string>
glob(
const std::string pattern,
174 int flags = GLOB_NOCHECK | GLOB_NOSORT |
175 GLOB_TILDE | GLOB_BRACE);
void sphericalToCartesian(double const spos[3], double cpos[3])
Tranform from spherical 3-position to Cartesian 3-position.
double bessk(int nn, double xx)
Modified Bessel function.
void convert(double *const x, const std::size_t nelem, const double mass_sun, const double distance_kpc, const std::string unit)
Convert lengths (deprecated)
void matrix4Invert(double ARGOUT_ARRAY2[4][4], double const IN_ARRAY2[4][4])
Invert 4x4 matrix.
#define size_t
If not defined in <sys/types.h>.
Definition: GyotoConfig.h:424
void verbose(int mode)
Set verbosity level.
void help(std::string class_name)
Print help on class.
double atof(const char *str)
Interpret C string as double.
double bessi1(double xx)
Modified Bessel function I1
void cartesianToSpherical(double const cpos[3], double spos[3])
Tranform from Cartesian 3-position to spherical 3-position.
Gyoto ubiquitous macros and typedefs.
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:46
double bessk1(double xx)
Modified Bessel function K1
void debug(int mode)
Set debug mode.
std::vector< std::string > split(std::string const &src, std::string const &delim)
Split string.
double hypergeom(double kappaIndex, double thetae)
Gauss hypergeometric 2F1 term for kappa-distribution synchrotron.
void matrix4CircularInvert(double ARGOUT_ARRAY2[4][4], double const IN_ARRAY2[4][4])
Invert 4x4 circular spacetime metric.
double bessk0(double xx)
Modified Bessel function K0
double bessi0(double xx)
Bessel function computation.
std::vector< std::string > glob(const std::string pattern, int flags=GLOB_NOCHECK|GLOB_NOSORT|GLOB_TILDE|GLOB_BRACE)
Generate pathnames matching a pattern.