scipy.linalg.blas.cspr#

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

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

Parameters:
nint

Order of the matrix.

alphacomplex

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.