naginterfaces.library.blast.zsum

naginterfaces.library.blast.zsum(x)[source]

zsum sums the elements of a complex vector.

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

https://www.nag.com/numeric/nl/nagdoc_27.1/flhtml/f16/f16glf.html

Parameters
xcomplex, array-like, shape

The -element vector .

If , must be stored in , for .

If , is not referenced.

Returns
sxcomplex

The sum of the elements of the complex vector .

Raises
NagValueError
(errno )

On entry, error in parameter .

Constraint: .

Notes

zsum returns the sum

of the elements of an -element complex vector .

If on entry, zsum returns the value .

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