naginterfaces.library.blast.zaxpby¶

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

zaxpby computes the sum of two scaled vectors, for complex scalars and vectors.

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

https://www.nag.com/numeric/nl/nagdoc_29/flhtml/f16/f16gcf.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.

Returns
ycomplex, ndarray, shape

The updated vector stored in the array elements used to supply the original vector .

Intermediate elements of are unchanged.

Raises
NagValueError
(errno )

On entry, error in parameter .

Constraint: .

(errno )

On entry, error in parameter .

Constraint: .

Notes

zaxpby performs the operation

where and are -element complex vectors, and and are complex scalars. If is less than or equal to zero, or if is equal to zero and is equal to , this function returns immediately.

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