Function rgsl::cblas::level1::sscal
[−]
[src]
pub fn sscal(N: i32, alpha: f32, x: &mut [f32], incx: i32)
Multiple each element of a matrix/vector by a constant.
Postcondition: Every incX'th element of X has been multiplied by a factor of alpha
Parameters:
- N : number of elements in x to scale
- alpha : factor to scale by
- X : pointer to the vector/matrix data
- incx : Amount to increment counter after each scaling, ie incX=2 mean to scale elements {1,3,...}
Note that the allocated length of X must be incX*N-1 as N indicates the number of scaling operations to perform.