Skip to content

Commit 5fb33ad

Browse files
committed
šŸ“ polish documentation, and add makefile for automatic formatting, tests, docs checking etc.
1 parent b984738 commit 5fb33ad

File tree

92 files changed

+13384
-5731
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+13384
-5731
lines changed

ā€ŽMakefileā€Ž

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
JULIA:=julia
2+
3+
default: help
4+
5+
setup:
6+
${JULIA} -e 'import Pkg; Pkg.add(["JuliaFormatter"])'
7+
8+
format:
9+
${JULIA} -e 'using JuliaFormatter; format(".")'
10+
11+
test:
12+
${JULIA} --project -e 'using Pkg; Pkg.resolve(); Pkg.test()'
13+
14+
docs:
15+
${JULIA} --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
16+
${JULIA} --project=docs docs/make.jl
17+
18+
all: setup format test docs
19+
20+
help:
21+
@echo "The following make commands are available:"
22+
@echo " - make setup: install the dependencies for make command"
23+
@echo " - make format: format codes with JuliaFormatter"
24+
@echo " - make test: run the tests"
25+
@echo " - make docs: instantiate and build the documentation"
26+
@echo " - make all: run every commands in the above order"
27+
28+
.PHONY: default setup format test doc all help

ā€Žbenchmarks/iterators_bench.jlā€Ž

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ using LinearAlgebra
44
using BenchmarkTools
55

66
function visit_all_subsets(mutate, g_len, v_weight, subset)
7-
if subset
8-
gi=CodingTheory.SubsetGrayCode(g_len, v_weight)
9-
else
10-
gi=CodingTheory.GrayCode(g_len, v_weight; mutate = mutate)
11-
end
12-
for subset in gi
13-
# BenchmarkTools can elide simple computations so we need to do some nontrivial calculation here.
14-
# In any realistic situation we need to look at least look at all entries of the vector.
15-
# Ill model the task of looking at the entries using the 'all' function
16-
Base.all(i->(i==0), subset)
17-
end
18-
return
7+
if subset
8+
gi=CodingTheory.SubsetGrayCode(g_len, v_weight)
9+
else
10+
gi=CodingTheory.GrayCode(g_len, v_weight; mutate = mutate)
11+
end
12+
for subset in gi
13+
# BenchmarkTools can elide simple computations so we need to do some nontrivial calculation here.
14+
# In any realistic situation we need to look at least look at all entries of the vector.
15+
# Ill model the task of looking at the entries using the 'all' function
16+
Base.all(i->(i==0), subset)
17+
end
18+
return
1919
end
2020

2121
#=
@@ -47,4 +47,4 @@ BenchmarkTools.Trial: 65 samples with 1 evaluation.
4747
51.2 ms Histogram: frequency by time 89.3 ms <
4848
4949
Memory estimate: 238.05 MiB, allocs estimate: 5200308.
50-
=#
50+
=#

ā€Žbenchmarks/weight_dist_bench.jlā€Ž

Lines changed: 55 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -9,55 +9,70 @@ CodingTheory.Random.seed!(0)
99

1010
function white_n70_k35(use_new, terse_description)
1111
F = Oscar.Nemo.Native.GF(2)
12-
mat = matrix(F, [1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 1 1 0 1 1 1 0 1 0 1 1 1 1 0 1 1 0 1 1 0 0 1 0 0 1 1 0 1;
13-
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 1 1 1 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 1 1 0 1 1 1 0 0 0 1 0;
14-
0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 1 0 0 1 1 0 0 0 0 0 1 0 0 1 1 1 0 1 1 0 1 0 0 1 1 1 1 0 0;
15-
0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0 1 0 0 0 0 0 0 1 0 1 1 1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 0 1 1 1 0 0 0 1 0 0 0 0 0 0 0 0 1 0 1 0 1 1 1 1 0 0;
48+
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 1 1 1 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 1 1 0 1 1 1 0 0 0 1 0 0 1 1;
49+
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1 0 1 1 0 0 0 1 0 0 1 1 0 1 1 0 1 1 0 1 0 0 0 0 1 1 1
50+
],
51+
)
4752

4853
num_thrds = Threads.nthreads()
4954
println("Benchmarking with $num_thrds threads.")
5055
if use_new
5156
function_description = "_minimum_distance_BZ(codeN70K35,:Brouwer;false)"
52-
terse_description ? println(function_description) : println(benchmark_description(function_description))
53-
return @benchmark CodingTheory._minimum_distance_BZ(codeN70K35, info_set_alg = :Brouwer; verbose = false) setup = (codeN70K35=LinearCode($mat, false, false))
57+
terse_description ? println(function_description) :
58+
println(benchmark_description(function_description))
59+
return @benchmark CodingTheory._minimum_distance_BZ(
60+
codeN70K35,
61+
info_set_alg = :Brouwer;
62+
verbose = false,
63+
) setup = (codeN70K35=LinearCode($mat, false, false))
5464
else
5565
function_description = "_minimum_distance_enumeration_with_matrix_multiply(codeN70K35,:Brouwer;false)"
56-
terse_description ? println(function_description) : println(benchmark_description(function_description))
57-
return @benchmark CodingTheory._minimum_distance_enumeration_with_matrix_multiply(codeN70K35, info_set_alg = :Brouwer; verbose = false) setup = (codeN70K35=LinearCode($mat, false, false))
66+
terse_description ? println(function_description) :
67+
println(benchmark_description(function_description))
68+
return @benchmark CodingTheory._minimum_distance_enumeration_with_matrix_multiply(
69+
codeN70K35,
70+
info_set_alg = :Brouwer;
71+
verbose = false,
72+
) setup = (codeN70K35=LinearCode($mat, false, false))
5873
end
5974
end
6075

6176
use_new=false
6277
t = white_n70_k35(use_new, true)
63-
t
78+
t

ā€Ždocs/make.jlā€Ž

Lines changed: 51 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -3,62 +3,58 @@ using DocumenterCitations, Documenter, CodingTheory
33
bib = CitationBibliography(joinpath(@__DIR__, "src", "references.bib"); style = :numeric)
44

55
Documenter.makedocs(;
6-
plugins=[bib],
7-
clean = true,
8-
doctest = false,
9-
modules = Module[CodingTheory],
10-
repo = "",
11-
highlightsig = true,
12-
sitename = "CodingTheory.jl",
13-
expandfirst = [],
14-
warnonly = [:missing_docs],
15-
pages = ["Introduction" => "index.md",
16-
"Tutorials" => [
17-
"Tutorials/Linear Codes.md",
18-
"Tutorials/Cyclic Codes.md",
19-
"Tutorials/Quantum Codes.md",
20-
"Tutorials/Weight Reduction.md"
21-
],
22-
"Examples" => [
23-
"Examples/The Vardy-Be’ery Decomposition.md",
24-
"Examples/Quantum Reed-Muller Codes.md"
25-
],
26-
"Classical" => [
27-
"Classical/linear_code.md",
28-
"Classical/concatenation.md",
29-
"Classical/cyclic_code.md",
30-
"Classical/quasi-cyclic_code.md",
31-
"Classical/GeneralizedReedSolomon.md",
32-
"Classical/ReedMuller.md",
33-
"Classical/new_codes_from_old.md",
34-
"Classical/product_codes.md",
35-
"Classical/misc_known_codes.md"
36-
],
37-
"LDPC" => [
38-
"LDPC/codes.md",
39-
"LDPC/Tanner_codes.md",
40-
"LDPC/analysis.md",
41-
"LDPC/channels.md",
42-
"LDPC/decoders.md"
43-
],
44-
"Quantum" => [
45-
"Quantum/quantum_code.md",
46-
"Quantum/product_codes.md",
47-
"Quantum/misc_known_codes.md",
48-
"Quantum/weight_reduction.md"
49-
],
50-
"Misc" => [
51-
"tilings.md",
52-
"trellis.md",
53-
"utils.md",
54-
"weight_dist.md"
55-
],
56-
"References" => "references.md",
57-
"Index" => "theindex.md"
58-
# "Developer Documentation" => [
6+
plugins = [bib],
7+
clean = true,
8+
doctest = false,
9+
modules = Module[CodingTheory],
10+
repo = "",
11+
highlightsig = true,
12+
sitename = "CodingTheory.jl",
13+
expandfirst = [],
14+
warnonly = [:missing_docs],
15+
pages = [
16+
"Introduction" => "index.md",
17+
"Tutorials" => [
18+
"Tutorials/Linear Codes.md",
19+
"Tutorials/Cyclic Codes.md",
20+
"Tutorials/Quantum Codes.md",
21+
"Tutorials/Weight Reduction.md",
22+
],
23+
"Examples" => [
24+
"Examples/The Vardy-Be’ery Decomposition.md",
25+
"Examples/Quantum Reed-Muller Codes.md",
26+
],
27+
"Classical" => [
28+
"Classical/linear_code.md",
29+
"Classical/concatenation.md",
30+
"Classical/cyclic_code.md",
31+
"Classical/quasi-cyclic_code.md",
32+
"Classical/GeneralizedReedSolomon.md",
33+
"Classical/ReedMuller.md",
34+
"Classical/new_codes_from_old.md",
35+
"Classical/product_codes.md",
36+
"Classical/misc_known_codes.md",
37+
],
38+
"LDPC" => [
39+
"LDPC/codes.md",
40+
"LDPC/Tanner_codes.md",
41+
"LDPC/analysis.md",
42+
"LDPC/channels.md",
43+
"LDPC/decoders.md",
44+
],
45+
"Quantum" => [
46+
"Quantum/quantum_code.md",
47+
"Quantum/product_codes.md",
48+
"Quantum/misc_known_codes.md",
49+
"Quantum/weight_reduction.md",
50+
],
51+
"Misc" => ["tilings.md", "trellis.md", "utils.md", "weight_dist.md"],
52+
"References" => "references.md",
53+
"Index" => "theindex.md",
54+
# "Developer Documentation" => [
5955

60-
# ],
61-
]
56+
# ],
57+
],
6258
)
6359

6460
deploydocs(repo = "github.com/esabo/CodingTheory.git", devbranch = "dev")

0 commit comments

Comments
Ā (0)