pymiediff.special#
Special functions used by pymiediff.
This module provides autograd-friendly spherical Bessel/Hankel functions and their derivatives, together with Riccati-Bessel forms and vector spherical harmonic (VSH) helpers used by Mie coefficient and near-field solvers.
Both SciPy-backed and torch-native recurrence implementations are available. The Peña/Yang log-derivative recurrences are also implemented for stable multilayer computations.
Functions
|
Vectorized D(1)n logrithmic derivative via downward recurrence |
|
|
|
|
|
Evaluate second derivative of a spherical Bessel function. |
|
Riccati-Bessel function |
|
Torch-native Riccati-Bessel |
|
Differentiate order-indexed spherical Bessel-like sequences. |
|
Compute |
|
Compute |
|
Evaluate Peña/Pal interface ratio recurrence |
|
Build |
|
Compute angular functions |
|
Riccati-Bessel function |
|
Torch-native Riccati-Bessel |
|
|
|
Spherical Hankel function of the first kind. |
|
Derivative of spherical Hankel function of the first kind. |
|
Torch-native spherical Hankel function |
|
Spherical Bessel function of the first kind. |
|
Derivative of spherical Bessel function of the first kind. |
|
Torch-native |
|
Torch-native |
|
Spherical Bessel function of the second kind. |
|
Derivative of spherical Bessel function of the second kind. |
|
Torch-native |
|
Compute vector spherical harmonics with standard radial kernels. |
|
Compute VSH terms using Peña log-derivative recurrences. |
|
Riccati-Bessel function |
|
Torch-native Riccati-Bessel |
|