scipy.linalg.blas.sspr#

scipy.linalg.blas.sspr(n, alpha, x, ap, incx=1, offx=0, lower=0, overwrite_ap=0) = <fblas function sspr>#

Packed symmetric rank-1 update ap = alpha*outer(x, x) + ap (BLAS sspr).

Parameters:
nint

Order of the matrix.

alphafloat

Scalar multiplier.

xndarray

Input vector.

apndarray

Symmetric matrix in packed storage, updated in place.

incxint, optional

Stride between successive elements of x. Default is 1.

offxint, optional

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

lowerint, optional

If 0, the upper triangle is used; if 1, the lower. Default is 0.

overwrite_apint, optional

If nonzero, ap may be overwritten in place. Default is 0.

Returns:
apndarray

The updated packed matrix.