naginterfaces.library.blas.dsyr

naginterfaces.library.blas.dsyr(uplo, alpha, x, a)[source]

dsyr computes the rank-1 update of a real symmetric matrix.

For full information please refer to the NAG Library document for f06pp

https://support.nag.com/numeric/nl/nagdoc_30/flhtml/f06/f06ppf.html

Parameters
uplostr, length 1

Specifies whether the upper or lower triangular part of is stored.

The upper triangular part of is stored.

The lower triangular part of is stored.

alphafloat

The scalar .

xfloat, array-like, shape

The -element vector .

afloat, array-like, shape

The symmetric matrix .

Returns
afloat, ndarray, shape

The updated matrix .

Raises
NagValueError
(errno )

On entry, error in parameter .

Constraint: or .

(errno )

On entry, error in parameter .

Constraint: .

(errno )

On entry, error in parameter .

Constraint: .

Notes

In the NAG Library the traditional C interface for this routine uses a different algorithmic base. Please contact NAG if you have any questions about compatibility.

dsyr performs the symmetric rank-1 update operation

where is an real symmetric matrix, is an -element real vector, and is a real scalar.