8 std::vector<std::complex<double> >
data;
13 LegendreCoefficientSet::LegendreCoefficientSet(
unsigned int LMAX):c(new
Clockwork()){
14 for (
unsigned int l=0;l<=LMAX;l++) {
20 LegendreCoefficientSet::~LegendreCoefficientSet(){
25 LegendreCoefficientSet::LegendreCoefficientSet(
const LegendreCoefficientSet & right):
26 c(new Clockwork(*right.c))
31 unsigned int LegendreCoefficientSet::getLMax()
const {
32 return c->data.size()-1;
36 const std::complex<double> &LegendreCoefficientSet:: operator () (
unsigned int l)
const {
41 std::complex<double> & LegendreCoefficientSet::operator () (
unsigned int l) {
46 std::ostream &
operator << ( std::ostream & o,
const LegendreCoefficientSet & c)
48 for (
unsigned int l=0;l<=c.getLMax();l++) {
49 o << l <<
" mag: " << c(l) << std::endl;
56 LegendreCoefficientSet & LegendreCoefficientSet::operator= (
const LegendreCoefficientSet & source ){
59 c =
new Clockwork(*source.c);
std::ostream & operator<<(std::ostream &o, const LegendreCoefficientSet &c)
std::vector< std::complex< double > > data