|
| 1 | +cdef extern from "sharp.h": |
| 2 | + ctypedef long ptrdiff_t |
| 3 | + |
| 4 | + void sharp_legendre_transform_s(float *bl, float *recfac, ptrdiff_t lmax, float *x, |
| 5 | + float *out, ptrdiff_t nx) |
| 6 | + void sharp_legendre_transform(double *bl, double *recfac, ptrdiff_t lmax, double *x, |
| 7 | + double *out, ptrdiff_t nx) |
| 8 | + void sharp_legendre_transform_recfac(double *r, ptrdiff_t lmax) |
| 9 | + void sharp_legendre_transform_recfac_s(float *r, ptrdiff_t lmax) |
| 10 | + void sharp_legendre_roots(int n, double *x, double *w) |
| 11 | + |
| 12 | + # sharp_lowlevel.h |
| 13 | + ctypedef struct sharp_alm_info: |
| 14 | + pass |
| 15 | + |
| 16 | + ctypedef struct sharp_geom_info: |
| 17 | + pass |
| 18 | + |
| 19 | + void sharp_make_alm_info (int lmax, int mmax, int stride, |
| 20 | + ptrdiff_t *mvstart, sharp_alm_info **alm_info) |
| 21 | + |
| 22 | + void sharp_make_geom_info (int nrings, int *nph, ptrdiff_t *ofs, |
| 23 | + int *stride, double *phi0, double *theta, |
| 24 | + double *wgt, sharp_geom_info **geom_info) |
| 25 | + |
| 26 | + void sharp_destroy_alm_info(sharp_alm_info *info) |
| 27 | + void sharp_destroy_geom_info(sharp_geom_info *info) |
| 28 | + |
| 29 | + ptrdiff_t sharp_map_size(sharp_geom_info *info) |
| 30 | + ptrdiff_t sharp_alm_count(sharp_alm_info *self) |
| 31 | + |
| 32 | + |
| 33 | + ctypedef enum sharp_jobtype: |
| 34 | + SHARP_YtW |
| 35 | + SHARP_Yt |
| 36 | + SHARP_WY |
| 37 | + SHARP_Y |
| 38 | + |
| 39 | + ctypedef enum: |
| 40 | + SHARP_DP |
| 41 | + SHARP_ADD |
| 42 | + |
| 43 | + void sharp_execute(sharp_jobtype type_, |
| 44 | + int spin, |
| 45 | + void *alm, |
| 46 | + void *map, |
| 47 | + sharp_geom_info *geom_info, |
| 48 | + sharp_alm_info *alm_info, |
| 49 | + int ntrans, |
| 50 | + int flags, |
| 51 | + double *time, |
| 52 | + unsigned long long *opcnt) nogil |
| 53 | + |
| 54 | + ctypedef enum: |
| 55 | + SHARP_ERROR_NO_MPI |
| 56 | + |
| 57 | + int sharp_execute_mpi_maybe (void *pcomm, sharp_jobtype type, int spin, |
| 58 | + void *alm, void *map, sharp_geom_info *geom_info, |
| 59 | + sharp_alm_info *alm_info, int ntrans, int flags, double *time, |
| 60 | + unsigned long long *opcnt) nogil |
| 61 | + |
| 62 | + |
| 63 | +cdef extern from "sharp_geomhelpers.h": |
| 64 | + void sharp_make_subset_healpix_geom_info( |
| 65 | + int nside, int stride, int nrings, |
| 66 | + int *rings, double *weight, sharp_geom_info **geom_info) |
| 67 | + void sharp_make_gauss_geom_info( |
| 68 | + int nrings, int nphi, double phi0, |
| 69 | + int stride_lon, int stride_lat, sharp_geom_info **geom_info) |
| 70 | + |
| 71 | +cdef extern from "sharp_almhelpers.h": |
| 72 | + void sharp_make_triangular_alm_info (int lmax, int mmax, int stride, |
| 73 | + sharp_alm_info **alm_info) |
| 74 | + void sharp_make_rectangular_alm_info (int lmax, int mmax, int stride, |
| 75 | + sharp_alm_info **alm_info) |
| 76 | + void sharp_make_mmajor_real_packed_alm_info (int lmax, int stride, |
| 77 | + int nm, const int *ms, sharp_alm_info **alm_info) |
| 78 | + |
| 79 | + |
0 commit comments