uxarray.utils.computing._norm_faithful#
- uxarray.utils.computing._norm_faithful(x)#
Compute the faithful norm of a vector.
This function calculates the faithful norm (L2 norm) of a vector, which is a more numerically stable version of the Euclidean norm.
- Parameters:
x (list of float) – The vector whose norm is to be computed.
- Returns:
The faithful norm of the vector.
- Return type:
Examples
>>> _norm_faithful([1.0, 2.0, 3.0]) 3.7416573867739413