Tomographer  v5.4
Tomographer C++ Framework Documentation
sphcoords.h File Reference

(v5.4)

spherical coordinates conversion routines, with jacobian etc. See Hyperspherical Coordinates. More...

#include <cmath>
#include <Eigen/Eigen>
#include <tomographer/tools/cxxutil.h>
+ Include dependency graph for sphcoords.h:

Go to the source code of this file.

Namespaces

 Tomographer
 Base namespace for the Tomographer project.
 
 Tomographer::MathTools
 General math routines.
 
 Tomographer::MathTools::SphCoords
 Utilities for hyperspherical coordinates.
 

Functions

template<typename Der1 , typename Der2 >
void Tomographer::MathTools::SphCoords::cart_to_sph (Eigen::MatrixBase< Der2 > &rtheta, const Eigen::MatrixBase< Der1 > &cart)
 Convert Cartesian coordinates to spherical coordinates in N dimensions. More...
 
template<typename Der1 , typename Der2 >
void Tomographer::MathTools::SphCoords::sphsurf_to_cart (Eigen::MatrixBase< Der2 > &cart, const Eigen::MatrixBase< Der1 > &theta, const typename Eigen::MatrixBase< Der1 >::Scalar R=1.0)
 Convert spherical angles to Cartesian coordinates in N dimensions. More...
 
template<typename Der1 , typename Der2 >
void Tomographer::MathTools::SphCoords::sph_to_cart (Eigen::MatrixBase< Der2 > &cart, const Eigen::MatrixBase< Der1 > &rtheta)
 Convert spherical coordinates to Cartesian coordinates in N dimensions. More...
 
template<typename Der1 >
Eigen::MatrixBase< Der1 >::Scalar Tomographer::MathTools::SphCoords::cart_to_sph_jacobian (const Eigen::MatrixBase< Der1 > &rtheta)
 Volume element of the hypersphere. More...
 
template<typename Der1 >
Eigen::MatrixBase< Der1 >::Scalar Tomographer::MathTools::SphCoords::surf_sph_jacobian (const Eigen::MatrixBase< Der1 > &theta)
 Surface element of the hypersphere. More...
 
template<typename Der1 , typename Der2 >
void Tomographer::MathTools::SphCoords::sphsurf_diffjac (Eigen::ArrayBase< Der1 > &dxdtheta, const Eigen::MatrixBase< Der2 > &theta)
 The differential of passing from spherical to cartesian coordinates on the sphere of unit radius. More...
 
template<typename Der1 , typename Der2 >
void Tomographer::MathTools::SphCoords::sphsurf_diffjac2 (Eigen::ArrayBase< Der1 > &ddxddtheta, const Eigen::MatrixBase< Der2 > &theta)
 The second order differential of passing from spherical to cartesian coordinates on the sphere of unit radius. More...
 

Detailed Description

spherical coordinates conversion routines, with jacobian etc. See Hyperspherical Coordinates.

Definition in file sphcoords.h.