@@ -59,22 +59,22 @@ Register a bivariate function `f` to `ExaModels`, so that it can be used within
59
59
```jldoctest
60
60
julia> using ExaModels
61
61
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)
63
63
relu23 (generic function with 1 method)
64
64
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)
66
66
drelu231 (generic function with 1 method)
67
67
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)
69
69
drelu232 (generic function with 1 method)
70
70
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)
72
72
ddrelu2311 (generic function with 1 method)
73
73
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)
75
75
ddrelu2312 (generic function with 1 method)
76
76
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)
78
78
ddrelu2322 (generic function with 1 method)
79
79
80
80
julia> @register_bivariate(relu23, drelu231, drelu232, ddrelu2311, ddrelu2312, ddrelu2322)
0 commit comments