pynlo.utility#

Time and frequency grid utilities and other miscellaneous helper functions.

The submodules contain calculator-type functions for converting between physically relevant parameters related to the linear and nonlinear susceptibilities, as well as an efficient interface to fast Fourier transforms.

Modules#

pynlo.utility.chi1

Conversion functions and other calculators relevant to the linear susceptibility.

pynlo.utility.chi2

Conversion functions and other calculators relevant to the 2nd-order nonlinear susceptibility.

pynlo.utility.chi3

Conversion functions and other calculators relevant to the 3rd-order nonlinear susceptibility.

pynlo.utility.fft

Aliases to fast FFT implementations and associated helper functions.

Functions#

vacuum(v_grid[, rng])

Generate a root-power spectrum due to quantum vacuum fluctuations.

taylor_series(x0, fn)

Calculate a Taylor series expansion given the derivatives of a function about a point.

shift(f_t, dt, t_shift)

Fourier shift.

resample_v(v_grid, f_v, n)

Resample frequency-domain data to the given number of points.

resample_t(t_grid, f_t, n)

Resample time-domain data to the given number of points.

Classes#

TFGrid(n, v_ref, dv[, alias])

Complementary time- and frequency-domain grids for the representation of analytic functions with complex-valued envelopes.