Skip to content

Commit dadfc6d

Browse files
author
Will Kimmerer
committed
fix semiring list gen
1 parent 0ad35ca commit dadfc6d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[deps]
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33
Latexify = "23fbe1c1-3f47-55db-b15f-69d7ec21a316"
4-
SuiteSparseGraphBLAS = "c2e53296-7b14-11e9-1210-bddfa8111e1d"
4+
SuiteSparseGraphBLAS = "c2e53296-7b14-11e9-1210-bddfa8111e1d"

docs/src/semirings.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,24 @@ cd("..")
3030
using SuiteSparseGraphBLAS
3131
using Latexify
3232
head = ["Semiring", "⊕", "⊗", "Types"]
33-
v1 = filter((x) -> x != "Semirings", string.(names(Semirings)))
33+
v1 = filter((x) -> eval(Semirings, :(typeof($x) <: AbstractSemiring)), names(Semirings))
3434
v2 = []
3535
v3 = []
3636
for rig in v1
37+
rig = string(rig)
3738
rigsplit = split(rig, '_')
3839
monoidname = rigsplit[1] .* "_MONOID"
3940
push!(v2, "[" .* rigsplit[1] .* "_MONOID](https://juliasparse.github.io/SuiteSparseGraphBLAS.jl/dev/monoids/#SuiteSparseGraphBLAS.Monoids.$monoidname)")
4041
push!(v3, "[" .* rigsplit[2] .* "](https://juliasparse.github.io/SuiteSparseGraphBLAS.jl/dev/binaryops/#SuiteSparseGraphBLAS.BinaryOps.$(rigsplit[2]))")
4142
end
4243
4344
v4 = []
44-
v1 = "`" .* v1 .* "`"
45-
for op in names(Semirings)
45+
46+
for op in v1
4647
op == :Semirings && continue
4748
op = getproperty(Semirings, op)
4849
push!(v4, SuiteSparseGraphBLAS.tolist(SuiteSparseGraphBLAS.validtypes(op)))
4950
end
51+
v1 = "`" .* string.(v1) .* "`"
5052
Latexify.mdtable(hcat(v1,v2,v3,v4); head, latex=false)
5153
```

0 commit comments

Comments
 (0)