Skip to main content

Module complex

Module complex 

Source
Expand description

Utilities for complex fields, amplitude, and wrapped phase. Allocation-aware helpers for two-dimensional complex sample fields.

Use crate::complex::amplitude and crate::complex::phase to derive real arrays, or crate::complex::from_amplitude_phase to construct a complex field. Inputs are borrowed ndarray views and results are newly allocated in standard row-major order.

Functions§

amplitude
Computes amplitude from any logical two-dimensional layout.
from_amplitude_phase
Combines amplitude and phase from arbitrary, matching ndarray layouts.
phase
Computes phase from any logical two-dimensional layout.

Type Aliases§

Complex
Double-precision complex scalar used for fields, spectra, and pupils.