naginterfaces.library.blas.dnrm2w¶
- naginterfaces.library.blas.dnrm2w(w, x)[source]¶
dnrm2w
computes the weighted Euclidean norm of a real vector.For full information please refer to the NAG Library document for f06fk
https://support.nag.com/numeric/nl/nagdoc_30.2/flhtml/f06/f06fkf.html
- Parameters
- wfloat, array-like, shape
, the vector of weights.
- xfloat, array-like, shape
The -element vector .
- Returns
- nrmfloat
The weighted Euclidean norm of the real vector, .
- Raises
- NagValueError
- (errno )
On entry, error in parameter .
Constraint: the elements of the array must not be negative.
- Notes
No equivalent traditional C interface for this routine exists in the NAG Library.
dnrm2w
returns the weighted Euclidean normof the -element real vector , where and is a vector of weights.