simd_sparse_scale

Function simd_sparse_scale 

Source
pub fn simd_sparse_scale<T, S>(
    matrix: &S,
    scalar: T,
    options: Option<SimdOptions>,
) -> SparseResult<CsrArray<T>>
where T: Float + SparseElement + Debug + Copy + 'static + SimdUnifiedOps + Send + Sync, S: SparseArray<T>,
Expand description

SIMD-accelerated sparse matrix scaling

Scales all non-zero elements by a scalar value using SIMD acceleration

§Arguments

  • matrix - The sparse matrix to scale
  • scalar - The scaling factor
  • options - SIMD acceleration options

§Returns

Scaled matrix