Skip to content

Commit 5008832

Browse files
authored
Export decompress and split API docs (#56)
* Export decompress and split API docs * Remove `using SMC: decompress`
1 parent 727c2c1 commit 5008832

6 files changed

Lines changed: 76 additions & 76 deletions

File tree

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ makedocs(;
1111
authors="Guillaume Dalle",
1212
sitename="SparseMatrixColorings.jl",
1313
format=Documenter.HTML(),
14-
pages=["Home" => "index.md", "API reference" => "api.md"],
14+
pages=["Home" => "index.md", "api.md", "dev.md"],
1515
plugins=[links],
1616
)
1717

docs/src/api.md

Lines changed: 8 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ CollapsedDocStrings = true
55
CurrentModule = SparseMatrixColorings
66
```
77

8-
## Public, exported
9-
108
```@docs
119
SparseMatrixColorings
1210
```
1311

14-
### Main function
12+
The docstrings on this page define the public API of the package.
13+
14+
## Main function
1515

1616
```@docs
1717
coloring
1818
ColoringProblem
1919
GreedyColoringAlgorithm
2020
```
2121

22-
### Result analysis
22+
## Result analysis
2323

2424
```@docs
2525
AbstractColoringResult
@@ -29,79 +29,20 @@ column_groups
2929
row_groups
3030
```
3131

32-
## Public, not exported
33-
34-
### Decompression
32+
## Decompression
3533

3634
```@docs
3735
decompress
3836
decompress!
3937
```
4038

41-
### Orders
39+
## Orders
40+
41+
These symbols are not exported but they are still part of the public API.
4242

4343
```@docs
4444
AbstractOrder
4545
NaturalOrder
4646
RandomOrder
4747
LargestFirst
4848
```
49-
50-
## Private
51-
52-
### Graph storage
53-
54-
```@docs
55-
SparseMatrixColorings.Graph
56-
SparseMatrixColorings.BipartiteGraph
57-
SparseMatrixColorings.vertices
58-
SparseMatrixColorings.neighbors
59-
SparseMatrixColorings.adjacency_graph
60-
SparseMatrixColorings.bipartite_graph
61-
```
62-
63-
### Low-level coloring
64-
65-
```@docs
66-
SparseMatrixColorings.partial_distance2_coloring
67-
SparseMatrixColorings.symmetric_coefficient
68-
SparseMatrixColorings.star_coloring
69-
SparseMatrixColorings.acyclic_coloring
70-
SparseMatrixColorings.group_by_color
71-
SparseMatrixColorings.get_matrix
72-
SparseMatrixColorings.StarSet
73-
SparseMatrixColorings.TreeSet
74-
```
75-
76-
### Concrete coloring results
77-
78-
```@docs
79-
SparseMatrixColorings.DefaultColoringResult
80-
SparseMatrixColorings.DirectSparseColoringResult
81-
```
82-
83-
### Testing
84-
85-
```@docs
86-
SparseMatrixColorings.same_sparsity_pattern
87-
SparseMatrixColorings.directly_recoverable_columns
88-
SparseMatrixColorings.symmetrically_orthogonal_columns
89-
SparseMatrixColorings.structurally_orthogonal_columns
90-
```
91-
92-
### Matrix handling
93-
94-
```@docs
95-
SparseMatrixColorings.respectful_similar
96-
SparseMatrixColorings.matrix_versions
97-
```
98-
99-
### Examples
100-
101-
```@docs
102-
SparseMatrixColorings.Example
103-
SparseMatrixColorings.what_fig_41
104-
SparseMatrixColorings.what_fig_61
105-
SparseMatrixColorings.efficient_fig_1
106-
SparseMatrixColorings.efficient_fig_4
107-
```

docs/src/dev.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Dev docs
2+
3+
```@meta
4+
CollapsedDocStrings = true
5+
CurrentModule = SparseMatrixColorings
6+
```
7+
8+
The docstrings on this page describe internals, they are not part of the public API.
9+
10+
## Graph storage
11+
12+
```@docs
13+
SparseMatrixColorings.Graph
14+
SparseMatrixColorings.BipartiteGraph
15+
SparseMatrixColorings.vertices
16+
SparseMatrixColorings.neighbors
17+
SparseMatrixColorings.adjacency_graph
18+
SparseMatrixColorings.bipartite_graph
19+
```
20+
21+
## Low-level coloring
22+
23+
```@docs
24+
SparseMatrixColorings.partial_distance2_coloring
25+
SparseMatrixColorings.symmetric_coefficient
26+
SparseMatrixColorings.star_coloring
27+
SparseMatrixColorings.acyclic_coloring
28+
SparseMatrixColorings.group_by_color
29+
SparseMatrixColorings.get_matrix
30+
SparseMatrixColorings.StarSet
31+
SparseMatrixColorings.TreeSet
32+
```
33+
34+
## Concrete coloring results
35+
36+
```@docs
37+
SparseMatrixColorings.DefaultColoringResult
38+
SparseMatrixColorings.DirectSparseColoringResult
39+
```
40+
41+
## Testing
42+
43+
```@docs
44+
SparseMatrixColorings.same_sparsity_pattern
45+
SparseMatrixColorings.directly_recoverable_columns
46+
SparseMatrixColorings.symmetrically_orthogonal_columns
47+
SparseMatrixColorings.structurally_orthogonal_columns
48+
```
49+
50+
## Matrix handling
51+
52+
```@docs
53+
SparseMatrixColorings.respectful_similar
54+
SparseMatrixColorings.matrix_versions
55+
```
56+
57+
## Examples
58+
59+
```@docs
60+
SparseMatrixColorings.Example
61+
SparseMatrixColorings.what_fig_41
62+
SparseMatrixColorings.what_fig_61
63+
SparseMatrixColorings.efficient_fig_1
64+
SparseMatrixColorings.efficient_fig_4
65+
```

src/SparseMatrixColorings.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ include("sparsematrixcsc.jl")
4949
include("examples.jl")
5050

5151
@compat public NaturalOrder, RandomOrder, LargestFirst
52-
@compat public decompress, decompress!
5352

5453
export ColoringProblem, GreedyColoringAlgorithm, AbstractColoringResult
5554
export coloring
5655
export column_colors, row_colors
5756
export column_groups, row_groups
57+
export decompress, decompress!
5858

5959
end

test/performance.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ using LinearAlgebra
55
using SparseArrays
66
using SparseMatrixColorings
77
using SparseMatrixColorings:
8-
adjacency_graph,
9-
bipartite_graph,
10-
decompress!,
11-
partial_distance2_coloring!,
12-
respectful_similar
8+
adjacency_graph, bipartite_graph, partial_distance2_coloring!, respectful_similar
139
using StableRNGs
1410
using Test
1511

test/small.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ using SparseArrays
66
using SparseMatrixColorings
77
using SparseMatrixColorings:
88
DefaultColoringResult,
9-
decompress,
10-
decompress!,
119
group_by_color,
1210
structurally_orthogonal_columns,
1311
symmetrically_orthogonal_columns,

0 commit comments

Comments
 (0)