/usr/include/CLHEP/GenericFunctions/SphericalHarmonicCoefficientSet.hh is in libclhep-dev 2.1.4.1+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | #ifndef _SPHERICALHARMONICCOEFFICIENTSET_H_
#define _SPHERICALHARMONICCOEFFICIENTSET_H_
#include <complex>
namespace Genfun {
class SphericalHarmonicCoefficientSet {
public:
// Constructor:
SphericalHarmonicCoefficientSet(unsigned int LMAX);
// Copy Constructor:
SphericalHarmonicCoefficientSet(const SphericalHarmonicCoefficientSet &);
// Destructor:
~SphericalHarmonicCoefficientSet();
// Get the size of the set:
unsigned int getLMax() const;
// Readonly access to a specific coefficient:
const std::complex<double> & operator () (unsigned int l, int m) const;
// Read/write access to a specific coefficient:
std::complex<double> & operator () (unsigned int l, int m);
// Assignement
SphericalHarmonicCoefficientSet & operator= (const SphericalHarmonicCoefficientSet & );
// Scale:
SphericalHarmonicCoefficientSet & operator*= (const std::complex<double> & s );
// Addition:
SphericalHarmonicCoefficientSet & operator+= (const SphericalHarmonicCoefficientSet & );
// Subtraction:
SphericalHarmonicCoefficientSet & operator-= (const SphericalHarmonicCoefficientSet & );
private:
class Clockwork;
Clockwork *c;
};
// Dump:
std::ostream & operator<< ( std::ostream & o, const SphericalHarmonicCoefficientSet & c);
// Take the dot product:
std::complex<double> dot(const SphericalHarmonicCoefficientSet &,
const SphericalHarmonicCoefficientSet &) ;
// If an expansion in Spherical Harmonics is squared, another expansion in Spherical
// harmonics is the result:
SphericalHarmonicCoefficientSet squareExpansionCoefficients(const SphericalHarmonicCoefficientSet &);
}
#include "CLHEP/GenericFunctions/SphericalHarmonicCoefficientSet.icc"
#endif
|