solprop.backends.numpy_ref#

The NumPy reference backend: the oracle.

Plain NumPy and scipy.fft through solprop.fourier, one named function per pass, no fusion, no in-place tricks and no compiled code. It exists to be read and to be right: every other backend is validated against the numbers it produces (docs/dev/backends.md section 2). It propagates a mode-averaged or multimode problem on either grid with the Kerr, Raman and plasma terms, using interaction-picture DOPRI5 with the cumulative operator, the lagged PI controller, landing on save planes and hard kinks, the shot-noise field and the hard band mask.

solprop.backends.numpy_ref.passes holds the passes; solprop.backends.numpy_ref.backend holds the step loop and the seam.

Modules

admission

The general modal route's and the coupled flow's admission, for every backend.

backend

The reference backend: the step loop, the seam and the refusals.

batch

Evaluate reference Runge-Kutta stage arrays across a leading member axis.

envelope_plasma

Evaluate compiled envelope plasma as separate current-source streams.

general_modal

The general modal guide's nonlinear source, on the reference backend.

passes

The passes of one interaction-picture stage, one function each.

single

The single-precision path of the reference backend: SEP 33's oracle.

tdse

Assemble independently projected TDSE polarisation and current sources.