Healpix C++  3.83
alm.cc
Go to the documentation of this file.
1 /*
2  * This file is part of Healpix_cxx.
3  *
4  * Healpix_cxx is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * Healpix_cxx is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with Healpix_cxx; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  *
18  * For more information about HEALPix, see http://healpix.sourceforge.net
19  */
20 
21 /*
22  * Healpix_cxx is being developed at the Max-Planck-Institut fuer Astrophysik
23  * and financially supported by the Deutsches Zentrum fuer Luft- und Raumfahrt
24  * (DLR).
25  */
26 
27 /*! \file alm.cc
28  * Class for storing spherical harmonic coefficients.
29  *
30  * Copyright (C) 2003-2011 Max-Planck-Society
31  * \author Martin Reinecke
32  */
33 
34 #include "alm.h"
35 
36 using namespace std;
37 
38 //static
39 tsize Alm_Base::Num_Alms (int l, int m)
40  {
41  planck_assert(m<=l,"mmax must not be larger than lmax");
42  return ((m+1)*(m+2))/2 + (m+1)*(l-m);
43  }
44 
45 void Alm_Base::swap (Alm_Base &other)
46  {
47  std::swap(lmax, other.lmax);
48  std::swap(mmax, other.mmax);
49  std::swap(tval, other.tval);
50  }
Definition: alm.h:42
static tsize Num_Alms(int l, int m)
Definition: alm.cc:39
void swap(Alm_Base &other)
Definition: alm.cc:45

Generated on Wed Nov 13 2024 12:18:30 for Healpix C++