How-to guides¤
Directions for specific tasks. These assume you already know what you want to do and are looking for the shortest path to it. If you are still orienting yourself, start with the tutorial instead.
- How to enable double precision — the first thing to do in any project using
spexial, and the ways to get it wrong. - How to use spexial with jit, vmap and grad — broadcasting, static integer parameters, and the one gradient you should not trust.
-
How to port code from
scipy.special— what swaps cleanly, what is less accurate, and what has no counterpart. -
How to choose between
spexialandjax.scipy.special— the four functions where both libraries have something, and which to reach for.
For the exact domain and tolerance of any function, see Accuracy and domains.