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  (  x ,  axis=-1  )[source]

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

Parameters:
xarray_like

A real vector or an array of real vectors.

axisint

The axis along which the vector components are aligned.

Returns:
x_absndarray

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