fujiisoup / py3nj

Wigner's 3J, 6J, 9J symbols for python
https://py3nj.readthedocs.io/
Apache License 2.0
18 stars 5 forks source link

Index error in wigner6j #13

Closed fujiisoup closed 3 years ago

fujiisoup commented 3 years ago

The following fails with IndexError

N = np.arange(10)
J = np.arange(11)[:, np.newaxis]
plt.plot(
    N, 
    np.sum(py3nj.wigner6j(0, N * 2, N * 2, J * 2, 2, 2)**2, axis=0))