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
Compressed representation `B` of a sparse matrix `A ∈ ℝ^{m×n}` obtained by summing some of its columns (if `dir == :col`) or rows (if `dir == :row`), grouped by color.
4
+
Compressed representation `B` of a `(m, n)` sparse matrix `A` obtained by summing some of its columns (if `dir == :col`) or rows (if `dir == :row`) if they have the same color.
5
5
6
6
# Fields
7
7
8
-
- `sparsity::AbstractMatrix{Bool}`: boolean sparsity pattern of the matrix `A`
9
-
- `colors::Vector{Int}`: vector such that
10
-
- if `dir == `:col`, then `colors[j] ∈ 1:c` is the color of column `j`
11
-
- if `dir == `:row`, then `colors[i] ∈ 1:c` is the color of row `i`
12
-
- `groups::Vector{Vector{Int}}`: vector of length `c` such that
13
-
- if `dir == :col`, then `groups[k]` is the vector of column indices assigned to the same color `k ∈ 1:c`
14
-
- if `dir == :row`, then `groups[k]` is the vector of row indices assigned to the same color `k ∈ 1:c`
15
-
- `aggregates::AbstractMatrix`: matrix `B` such that
16
-
- if `dir == :col`, then `size(B) = (m, c)` and `B[:, c] = sum(A[:, k] for k in groups[c])`
17
-
- if `dir == :row`, then `size(B) = (c, n)` and `B[c, :] = sum(A[k, :] for k in groups[c])`
8
+
| field | type | size | meaning | if `dir` is `:col` | if `dir` is `:row` |
0 commit comments