High Performance Plasticity  0.5.0
gsh.h File Reference

The complex generalized spherical harmonic coefficients for real data. More...

#include <hpp/config.h>
#include <cmath>
#include <complex>
Include dependency graph for gsh.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  hpp::GSHCoeffs< T >
 

Namespaces

 hpp
 

Functions

template<typename T >
GSHCoeffs< T > hpp::operator+ (const GSHCoeffs< T > &coeffs1, const GSHCoeffs< T > &coeffs2)
 
template<typename T >
void hpp::operator+= (GSHCoeffs< T > &A, const GSHCoeffs< T > &B)
 
template<typename T >
GSHCoeffs< T > hpp::operator/ (const GSHCoeffs< T > &coeffs, const T val)
 
template<typename T >
void hpp::operator/= (GSHCoeffs< T > &A, const T B)
 

Detailed Description

The complex generalized spherical harmonic coefficients for real data.

For real data, there is the guarantee that C[l,-m,-n] = (-1)^{(m+n)} C[l,m,n]*. So, we only store the upper triangular values for m and n, such that n>=m. These values are then flattened in row major order.

Template Parameters
Thereal scalar type