naginterfaces.library.blas.dspr¶
- naginterfaces.library.blas.dspr(uplo, alpha, x, ap)[source]¶
dspr
computes the rank-1 update of a real symmetric matrix stored in packed form.For full information please refer to the NAG Library document for f06pq
https://support.nag.com/numeric/nl/nagdoc_30.3/flhtml/f06/f06pqf.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 .
- apfloat, array-like, shape
The symmetric matrix , packed by columns.
- Returns
- apfloat, 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.
dspr
performs the symmetric rank-1 update operationwhere is an real symmetric matrix, stored in packed form, is an -element real vector, and is a real scalar.