Skip to content

Commit 01fefd0

Browse files
committed
expose more attributes of sharp_alm_info to Python
1 parent d24879b commit 01fefd0

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

python/libsharp/libsharp.pxd

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
cdef extern from "sharp.h":
2-
ctypedef long ptrdiff_t
32

43
void sharp_legendre_transform_s(float *bl, float *recfac, ptrdiff_t lmax, float *x,
54
float *out, ptrdiff_t nx)
@@ -11,7 +10,19 @@ cdef extern from "sharp.h":
1110

1211
# sharp_lowlevel.h
1312
ctypedef struct sharp_alm_info:
14-
pass
13+
# Maximum \a l index of the array
14+
int lmax
15+
# Number of different \a m values in this object
16+
int nm
17+
# Array with \a nm entries containing the individual m values
18+
int *mval
19+
# Combination of flags from sharp_almflags
20+
int flags
21+
# Array with \a nm entries containing the (hypothetical) indices of
22+
# the coefficients with quantum numbers 0,\a mval[i]
23+
long *mvstart
24+
# Stride between a_lm and a_(l+1),m
25+
long stride
1526

1627
ctypedef struct sharp_geom_info:
1728
pass

0 commit comments

Comments
 (0)