freude
freude

Reputation: 3832

Python and associated Legendre polynomials

I have been searching for a python implementation of the associated Legendre polynomials quite a long time and have found nothing satisfying me. There is an implementation in scipy.special, but it is not vectorized. I have found a solution to use pygsl interface with gsl library, but I had a hard time to get everything compiled.

Does anyone know better solution to get access to associated Legendre polynomials in efficiently vectorized way, i.e. Legendre functions has to be applied for multidimensional matrices?

Upvotes: 0

Views: 1447

Answers (1)

pv.
pv.

Reputation: 35125

scipy.special.lpmv is vectorized.

Upvotes: 3

Related Questions