Skip to content

Commit d3942c0

Browse files
authored
Docstring fixed for register (#175)
1 parent 16a2443 commit d3942c0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/register.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,22 @@ Register a bivariate function `f` to `ExaModels`, so that it can be used within
5959
```jldoctest
6060
julia> using ExaModels
6161
62-
julia> relu23(x) = (x > 0 || y > 0) ? (x + y)^3 : zero(x)
62+
julia> relu23(x,y) = (x > 0 || y > 0) ? (x + y)^3 : zero(x)
6363
relu23 (generic function with 1 method)
6464
65-
julia> drelu231(x) = (x > 0 || y > 0) ? 3 * (x + y)^2 : zero(x)
65+
julia> drelu231(x,y) = (x > 0 || y > 0) ? 3 * (x + y)^2 : zero(x)
6666
drelu231 (generic function with 1 method)
6767
68-
julia> drelu232(x) = (x > 0 || y > 0) ? 3 * (x + y)^2 : zero(x)
68+
julia> drelu232(x,y) = (x > 0 || y > 0) ? 3 * (x + y)^2 : zero(x)
6969
drelu232 (generic function with 1 method)
7070
71-
julia> ddrelu2311(x) = (x > 0 || y > 0) ? 6 * (x + y) : zero(x)
71+
julia> ddrelu2311(x,y) = (x > 0 || y > 0) ? 6 * (x + y) : zero(x)
7272
ddrelu2311 (generic function with 1 method)
7373
74-
julia> ddrelu2312(x) = (x > 0 || y > 0) ? 6 * (x + y) : zero(x)
74+
julia> ddrelu2312(x,y) = (x > 0 || y > 0) ? 6 * (x + y) : zero(x)
7575
ddrelu2312 (generic function with 1 method)
7676
77-
julia> ddrelu2322(x) = (x > 0 || y > 0) ? 6 * (x + y) : zero(x)
77+
julia> ddrelu2322(x,y) = (x > 0 || y > 0) ? 6 * (x + y) : zero(x)
7878
ddrelu2322 (generic function with 1 method)
7979
8080
julia> @register_bivariate(relu23, drelu231, drelu232, ddrelu2311, ddrelu2312, ddrelu2322)

0 commit comments

Comments
 (0)