pub fn spadd_csc_prealloc<T>(
    beta: T,
    c: &mut CscMatrix<T>,
    alpha: T,
    a: Op<&CscMatrix<T>>
) -> Result<(), OperationError>where
    T: Scalar + ClosedAdd + ClosedMul + Zero + One,
Expand description

Sparse matrix addition C <- beta * C + alpha * op(A).

If the pattern of c does not accommodate all the non-zero entries in a, an error is returned.

Panics

Panics if the dimensions of the matrices involved are not compatible with the expression.