rustml::blas::cblas_saxpy
[−]
[src]
pub unsafe extern fn cblas_saxpy(n: c_int, alpha: c_float, x: *const c_float, incx: c_int, y: *mut c_float, incy: c_int)
Computes alpha * x + y
and stores the result in y
.
The paramters alpha
is a scalar of type f32 and x
and y
are
vectors with elements of type f32. The parameter n
specifies
the number of elements in x
and y
. The parameters incx
and incy
specify the increments between the elements in
vector x
and y
respectively.
For a high level interface you should use s_axpy in the module ops_inplace.