scipy.linalg.blas.snrm2#

scipy.linalg.blas.snrm2(x, n=None, offx=0, incx=1) = <fblas function snrm2>#

Compute the Euclidean norm sqrt(sum(abs(x)**2)) (BLAS snrm2).

Parameters:
xndarray

Input vector.

nint, optional

Number of elements to process. Default is the whole vector.

offxint, optional

Index of the first element of x to use. Default is 0.

incxint, optional

Stride between successive elements of x. Default is 1.

Returns:
nrmfloat

The Euclidean norm of x.