Tomographer  v1.0a
Tomographer C++ Framework Documentation
sphcoords.h File Reference

(v1.0a)

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

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

Go to the source code of this file.

Namespaces

 Tomographer
 Base namespace for the Tomographer project.
 
 Tomographer::SphCoords
 

Functions

template<typename Der1 , typename Der2 >
void Tomographer::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::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::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::SphCoords::cart_to_sph_jacobian (const Eigen::MatrixBase< Der1 > &rtheta)
 Volume element of the hypersphere. More...
 
template<typename Der1 >
Eigen::MatrixBase< Der1 >::Scalar Tomographer::SphCoords::surf_sph_jacobian (const Eigen::MatrixBase< Der1 > &theta)
 Surface element of the hypersphere. More...
 
template<typename Der1 , typename Der2 >
void Tomographer::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::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.