naginterfaces.library.blas.daxpyi

naginterfaces.library.blas.daxpyi(a, x, indx, y)[source]

daxpyi adds a scaled sparse real vector, stored in compressed form, to an unscaled real vector.

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

https://support.nag.com/numeric/nl/nagdoc_30.3/flhtml/f06/f06etf.html

Parameters
afloat

The scalar .

xfloat, array-like, shape

The nonzero elements of the sparse vector .

indxint, array-like, shape

must contain the index of in the sparse vector , for .

yfloat, array-like, shape

The vector . Only elements corresponding to indices in are accessed.

Returns
yfloat, ndarray, shape

The updated vector .

Notes

No equivalent traditional C interface for this routine exists in the NAG Library.

daxpyi performs the operation

where is a sparse real vector, stored in compressed form, and is a real vector in full storage form.

References

Dodson, D S, Grimes, R G and Lewis, J G, 1991, Sparse extensions to the Fortran basic linear algebra subprograms, ACM Trans. Math. Software (17), 253–263