qspec logo qspec logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2026 Patrick Müller. All rights reserved.

qspec. absolute_complex  (  x ,  axis=-1  )[source]

The length of complex vectors $|\vec{x}|$.

Parameters:
xarray_like

A complex vector or an array of complex vectors.

axisint

The axis along which the vector components are aligned.

Returns:
x_absndarray

The length(s) of the vector(s) x.