scipy.linalg.blas.dspr2#

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

Packed symmetric rank-2 update ap = alpha*(outer(x, y) + outer(y, x)) + ap (BLAS dspr2).

Parameters:
nint

Order of the matrix.

alphafloat

Scalar multiplier.

xndarray

First input vector.

yndarray

Second 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.

incyint, optional

Stride between successive elements of y. Default is 1.

offyint, optional

Index of the first element of y 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.