Skip to content

Commit

Permalink
Update src/interface.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Seth Axen <seth@sethaxen.com>
  • Loading branch information
torfjelde and sethaxen authored Dec 10, 2023
1 parent 5ffa2ea commit 03fc4b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ function is_monotonically_increasing(cf::ComposedFunction)
return is_monotonically_increasing(cf.inner) && is_monotonically_increasing(cf.outer)
end
is_monotonically_increasing(::typeof(exp)) = true
is_monotonically_increasing(::typeof(log)) = true
is_monotonically_increasing(binv::Inverse) = is_monotonically_increasing(inverse(b))
is_monotonically_increasing(ef::Elementwise) = is_monotonically_increasing(ef.x)

######################
Expand Down

0 comments on commit 03fc4b4

Please sign in to comment.