Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add monotonic check in FunctionFactory #2343

Closed
zhyass opened this issue Oct 20, 2021 · 1 comment · Fixed by #2743
Closed

Add monotonic check in FunctionFactory #2343

zhyass opened this issue Oct 20, 2021 · 1 comment · Fixed by #2743
Assignees
Labels
C-improvement Category: improvement community-take

Comments

@zhyass
Copy link
Member

zhyass commented Oct 20, 2021

Summary

/// The property of monotonicity for a certain range.
struct Monotonic {
    // Is the function monotonous (nondecreasing or nonincreasing).
    is_monotonic: bool, 
    // true if the function is nondecreasing, false, if notincreasing. If is_monotonic = false, then it does not matter.
    is_positive: bool, 
    // Is true if function is monotonic on the whole input range
    is_always_monotonic: bool, 
}
@junli1026
Copy link
Contributor

/assignme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-improvement Category: improvement community-take
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants