LevelS SHT library  3.50
sharp_internal.h
Go to the documentation of this file.
1 /*
2  * This file is part of libsharp.
3  *
4  * libsharp 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  * libsharp 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 libsharp; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 /*
20  * libsharp is being developed at the Max-Planck-Institut fuer Astrophysik
21  * and financially supported by the Deutsches Zentrum fuer Luft- und Raumfahrt
22  * (DLR).
23  */
24 
25 /*! \file sharp_internal.h
26  * Internally used functionality for the spherical transform library.
27  *
28  * Copyright (C) 2006-2013 Max-Planck-Society
29  * \author Martin Reinecke \author Dag Sverre Seljebotn
30  */
31 
32 #ifndef PLANCK_SHARP_INTERNAL_H
33 #define PLANCK_SHARP_INTERNAL_H
34 
35 #ifdef __cplusplus
36 #error This header file cannot be included from C++, only from C
37 #endif
38 
39 #include "sharp.h"
40 
41 #define SHARP_MAXTRANS 100
42 
43 typedef struct
44  {
45  sharp_jobtype type;
46  int spin;
47  int nmaps, nalm;
48  int flags;
49  void **map;
50  void **alm;
51  int s_m, s_th; // strides in m and theta direction
52  complex double *phase;
53  double *norm_l;
54  complex double *almtmp;
55  const sharp_geom_info *ginfo;
56  const sharp_alm_info *ainfo;
57  double time;
58  int ntrans;
59  unsigned long long opcnt;
60  } sharp_job;
61 
62 int sharp_get_nv_max (void);
63 int sharp_nv_oracle (sharp_jobtype type, int spin, int ntrans);
64 int sharp_get_mlim (int lmax, int spin, double sth, double cth);
65 
66 #endif
sharp_jobtype

Generated on Mon Dec 10 2018 10:24:20 for LevelS SHT library