You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/decompression.jl
+56-9Lines changed: 56 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -189,6 +189,8 @@ The out-of-place alternative is [`decompress`](@ref).
189
189
190
190
!!! note
191
191
In-place decompression is faster when `A isa SparseMatrixCSC`.
192
+
- In general, this case requires the sparsity pattern of `A` to match the sparsity pattern `S` from which the coloring result was computed.
193
+
- For a coloring result with `decompression=:direct`, we also allow _full_ decompression into an `A` whose sparsity pattern is a strict superset of `S`.
192
194
193
195
Compression means summing either the columns or the rows of `A` which share the same color.
"Decompression target must have the same size as sparsity pattern"
74
+
),
75
+
)
76
+
elseif!same_pattern(A, S; allow_superset)
77
+
throw(
78
+
DimensionMismatch(
79
+
"""Decompression target must $(allow_superset ?"contain the nonzeros of the sparsity pattern":"be equal to the sparsity pattern") used for coloring""",
0 commit comments