Skip to main content

sparse_scale

Function sparse_scale 

Source
pub fn sparse_scale<F>(a: &CsrMatrix<F>, alpha: F) -> SparseResult<CsrMatrix<F>>
where F: Float + NumAssign + Sum + SparseElement + Debug + 'static,
Expand description

Scale a sparse matrix: C = alpha * A.