Skip to content

Commit 2090e0e

Browse files
committed
Fix warning
1 parent db33ba7 commit 2090e0e

File tree

5 files changed

+18
-2
lines changed

5 files changed

+18
-2
lines changed

docs/make.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ makedocs(
55
sitename = "GeometricFlux",
66
format = Documenter.HTML(),
77
modules = [GeometricFlux],
8-
analytics = "",
98
pages = ["Home" => "index.md",
109
"Manual" =>
1110
["Convolutional Layers" => "manual/conv.md",
1211
"Pooling Layers" => "manual/pool.md",
13-
"Models" => "manual/models.md"]
12+
"Models" => "manual/models.md",
13+
"Linear Algebra" => "manual/linalg.md",
14+
"Utilities" => "manual/utils.md"]
1415
]
1516
)
1617

docs/src/manual/linalg.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Linear Algebra
2+
3+
4+
```@docs
5+
GeometricFlux.degrees
6+
```

docs/src/manual/utils.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Utilities
2+
3+
```@docs
4+
GeometricFlux.save_div
5+
```

src/linalg.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Degree of each vertex. Return a vector which contains the degree of each vertex
1212
1313
# Examples
1414
```jldoctest
15+
julia> using GeometricFlux
16+
1517
julia> m = [0 1 1; 1 0 0; 1 0 0];
1618
1719
julia> GeometricFlux.degrees(m)

src/utils.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ end
4949
identity(; kwargs...) = kwargs.data
5050

5151
"""
52+
save_div(x, y)
53+
5254
Savely divde `x` by `y`. If `y` is zero, return `x` directly.
5355
"""
5456
save_div(x, y) = ifelse(iszero(y), x, x/y)

0 commit comments

Comments
 (0)