naginterfaces.library.blast.dwaxpby

naginterfaces.library.blast.dwaxpby(alpha, x, beta, y)[source]

dwaxpby computes the sum of two scaled vectors, preserving input, for real scalars and vectors.

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

https://www.nag.com/numeric/nl/nagdoc_27.3/flhtml/f16/f16ehf.html

Parameters
alphafloat

The scalar .

xfloat, array-like, shape

The -element vector .

If , must be stored in , for .

If , is not referenced.

betafloat

The scalar .

yfloat, array-like, shape

The -element vector .

If , must be stored in , for .

If , must be stored in , for .

Intermediate elements of are not referenced.

If or , is not referenced.

Returns
wfloat, ndarray, shape

The elements of the vector will be stored in as follows.

If , is in , for .

If , is in , for .

Intermediate elements of are not referenced.

Raises
NagValueError
(errno )

On entry, error in parameter .

Constraint: .

(errno )

On entry, error in parameter .

Constraint: .

(errno )

On entry, error in parameter .

Constraint: .

Notes

dwaxpby performs the operation

where and are -element real vectors, and and are real scalars.

References

Basic Linear Algebra Subprograms Technical (BLAST) Forum, 2001, Basic Linear Algebra Subprograms Technical (BLAST) Forum Standard, University of Tennessee, Knoxville, Tennessee, https://www.netlib.org/blas/blast-forum/blas-report.pdf