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
+75-33Lines changed: 75 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ end
86
86
87
87
Decompress the small matrix `B` into the tall matrix `A` which must have the same sparsity pattern as `S`.
88
88
89
-
Here, `color` is a row coloring of `S`, while `B` is a compressed representation of matrix `A` obtained by summing the columns that share the same color.
89
+
Here, `color` is a row coloring of `S`, while `B` is a compressed representation of matrix `A` obtained by summing the rows that share the same color.
90
90
"""
91
91
function decompress_rows! end
92
92
@@ -142,7 +142,7 @@ end
142
142
143
143
Decompress the small matrix `B` into a new tall matrix `A` with the same sparsity pattern as `S`.
144
144
145
-
Here, `color` is a row coloring of `S`, while `B` is a compressed representation of matrix `A` obtained by summing the columns that share the same color.
145
+
Here, `color` is a row coloring of `S`, while `B` is a compressed representation of matrix `A` obtained by summing the rows that share the same color.
Return the indices `(k, c)` such that `A[i, j] = B[k, c]`, where `A` is the uncompressed symmetric matrix and `B` is the column-compressed matrix.
171
+
172
+
The first version corresponds to algorithm `DirectRecover1` in the paper, the second to `DirectRecover2`.
173
+
174
+
# References
175
+
176
+
> [_Efficient Computation of Sparse Hessians Using Coloring and Automatic Differentiation_](https://pubsonline.informs.org/doi/abs/10.1287/ijoc.1080.0286), Gebremedhin et al. (2009), Figures 2 and 3
0 commit comments