Skip to content

Commit 99e747c

Browse files
authored
Merge pull request #265 from PhilippMisofCH/Documentation_fix
Minor fixes in the documentation
2 parents 876e090 + e7fade9 commit 99e747c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

s2fft/sampling/so3_samples.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ def f_shape(
1313
:math:`SO(3)`.
1414
1515
Note:
16-
Importantly, the convention adopted for storage of f is :math:`[\beta, \alpha,
17-
\gamma]`, for Euler angles :math:`(\alpha, \beta, \gamma)` following the
16+
Importantly, the convention adopted for storage of :math:`f` is :math:`[\gamma,
17+
\beta, \alpha]`, for Euler angles :math:`(\alpha, \beta, \gamma)` following the
1818
:math:`zyz` Euler convention, in order to simplify indexing for internal use.
1919
For a given :math:`\gamma` we thus recover a signal on the sphere indexed by
2020
:math:`[\theta, \phi]`, i.e. we associate :math:`\beta` with :math:`\theta` and

s2fft/utils/signal_generator.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ def complex_el_and_m_indices(L: int, min_el: int) -> tuple[np.ndarray, np.ndarra
3939
4040
Equivalent to nested list-comprehension based implementation
4141
42-
```
43-
el_indices, m_indices = np.array(
44-
[(el, m) for el in range(min_el, L) for m in range(1, el + 1)]
45-
).T
46-
```
42+
.. code-block:: python
43+
44+
el_indices, m_indices = np.array(
45+
[(el, m) for el in range(min_el, L) for m in range(1, el + 1)]
46+
).T
4747
4848
For `L, min_el = 1024, 0`, this implementation is around 80x quicker in
4949
benchmarks compared to list-comprehension implementation.

0 commit comments

Comments
 (0)