pub fn spadd_pattern(a: &SparsityPattern, b: &SparsityPattern) -> SparsityPattern
Expand description

Sparse matrix addition pattern construction, C <- A + B.

Builds the pattern for C, which is able to hold the result of the sum A + B. The patterns are assumed to have the same major and minor dimensions. In other words, both patterns A and B must both stem from the same kind of compressed matrix: CSR or CSC.

Panics

Panics if the patterns do not have the same major and minor dimensions.