Logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2025 Patrick Müller. All rights reserved.

qspec.unit_vector  (  indexes dim axis = -1 dtype = 'float'  )[source]

Parameters:
indexesarray_like

The indexes of the vectors that are filled with a 1.

dimint

The dimension of the unit vectors.

axisint

The axis with the dimension 'dim'.

dtypetype

The data type of the unit vectors.

Returns:
outNone

Unit vectors in the specified 'indexes' with dimension 'dim' along the specified 'axis'.

API navigation