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


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.

yfloat, ndarray, shape

The updated vector .


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.


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