naginterfaces.library.blast.zwaxpby

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

zwaxpby computes the sum of two scaled vectors, preserving input, for complex scalars and vectors.

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

https://support.nag.com/numeric/nl/nagdoc_30.2/flhtml/f16/f16ghf.html

Parameters
alphacomplex

The scalar .

xcomplex, array-like, shape

The -element vector .

If , must be stored in , for .

If , is not referenced.

betacomplex

The scalar .

ycomplex, 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
wcomplex, 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

zwaxpby performs the operation

where and are -element complex vectors, and and are complex 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