Function nalgebra_sparse::ops::serial::spadd_csr_prealloc[][src]

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

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

Errors

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.