{"action":"opened","number":84,"pull_request":{"url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/pulls/84","id":54312761,"html_url":"https://github.com/JuliaDiff/ForwardDiff.jl/pull/84","diff_url":"https://github.com/JuliaDiff/ForwardDiff.jl/pull/84.diff","patch_url":"https://github.com/JuliaDiff/ForwardDiff.jl/pull/84.patch","issue_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/issues/84","number":84,"state":"open","locked":false,"title":"Support <=, floor, and ceil","user":{"login":"timholy","id":1525481,"avatar_url":"https://avatars.githubusercontent.com/u/1525481?v=3","gravatar_id":"","url":"https://api.github.com/users/timholy","html_url":"https://github.com/timholy","followers_url":"https://api.github.com/users/timholy/followers","following_url":"https://api.github.com/users/timholy/following{/other_user}","gists_url":"https://api.github.com/users/timholy/gists{/gist_id}","starred_url":"https://api.github.com/users/timholy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timholy/subscriptions","organizations_url":"https://api.github.com/users/timholy/orgs","repos_url":"https://api.github.com/users/timholy/repos","events_url":"https://api.github.com/users/timholy/events{/privacy}","received_events_url":"https://api.github.com/users/timholy/received_events","type":"User","site_admin":false},"body":"This supports operations used in various packages I use. I'm submitting it for consideration, but I'd suggest these definitions are worth contemplating a bit before you decide to merge this. From a mathematical perspective, since you can think of a GradientNumber similarly to `r+ϵ`, then you'd expect `r+ϵ < r2` if `r < r2`, but it's not obvious that one would want `r+ϵ <= r`. On the other hand, from the standpoint of, e..g., bounds-checking with a GradientNumber (e.g., in Interpolations), it seems that you probably want `<=` defined. `floor` and `ceil` are a bit similar.","created_at":"2015-12-21T22:50:28Z","updated_at":"2015-12-21T22:50:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/pulls/84/commits","review_comments_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/pulls/84/comments","review_comment_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/issues/84/comments","statuses_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/statuses/6998ca827cdff54ced0e91da21acc1baf0e6078e","head":{"label":"timholy:pull-request/6998ca82","ref":"pull-request/6998ca82","sha":"6998ca827cdff54ced0e91da21acc1baf0e6078e","user":{"login":"timholy","id":1525481,"avatar_url":"https://avatars.githubusercontent.com/u/1525481?v=3","gravatar_id":"","url":"https://api.github.com/users/timholy","html_url":"https://github.com/timholy","followers_url":"https://api.github.com/users/timholy/followers","following_url":"https://api.github.com/users/timholy/following{/other_user}","gists_url":"https://api.github.com/users/timholy/gists{/gist_id}","starred_url":"https://api.github.com/users/timholy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timholy/subscriptions","organizations_url":"https://api.github.com/users/timholy/orgs","repos_url":"https://api.github.com/users/timholy/repos","events_url":"https://api.github.com/users/timholy/events{/privacy}","received_events_url":"https://api.github.com/users/timholy/received_events","type":"User","site_admin":false},"repo":{"id":43207133,"name":"ForwardDiff.jl","full_name":"timholy/ForwardDiff.jl","owner":{"login":"timholy","id":1525481,"avatar_url":"https://avatars.githubusercontent.com/u/1525481?v=3","gravatar_id":"","url":"https://api.github.com/users/timholy","html_url":"https://github.com/timholy","followers_url":"https://api.github.com/users/timholy/followers","following_url":"https://api.github.com/users/timholy/following{/other_user}","gists_url":"https://api.github.com/users/timholy/gists{/gist_id}","starred_url":"https://api.github.com/users/timholy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timholy/subscriptions","organizations_url":"https://api.github.com/users/timholy/orgs","repos_url":"https://api.github.com/users/timholy/repos","events_url":"https://api.github.com/users/timholy/events{/privacy}","received_events_url":"https://api.github.com/users/timholy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/timholy/ForwardDiff.jl","description":"Julia package for performing forward mode automatic differentiation","fork":true,"url":"https://api.github.com/repos/timholy/ForwardDiff.jl","forks_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/forks","keys_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/teams","hooks_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/hooks","issue_events_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/issues/events{/number}","events_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/events","assignees_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/assignees{/user}","branches_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/branches{/branch}","tags_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/tags","blobs_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/languages","stargazers_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/stargazers","contributors_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/contributors","subscribers_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/subscribers","subscription_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/subscription","commits_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/contents/{+path}","compare_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/merges","archive_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/downloads","issues_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/issues{/number}","pulls_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/labels{/name}","releases_url":"https://api.github.com/repos/timholy/ForwardDiff.jl/releases{/id}","created_at":"2015-09-26T13:51:50Z","updated_at":"2015-09-26T13:51:51Z","pushed_at":"2015-12-21T22:43:40Z","git_url":"git://github.com/timholy/ForwardDiff.jl.git","ssh_url":"git@github.com:timholy/ForwardDiff.jl.git","clone_url":"https://github.com/timholy/ForwardDiff.jl.git","svn_url":"https://github.com/timholy/ForwardDiff.jl","homepage":"","size":1140,"stargazers_count":0,"watchers_count":0,"language":"Julia","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"JuliaDiff:master","ref":"master","sha":"179f34612ee14fa0a994a1f0240d0f8df2eb291b","user":{"login":"JuliaDiff","id":7750915,"avatar_url":"https://avatars.githubusercontent.com/u/7750915?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaDiff","html_url":"https://github.com/JuliaDiff","followers_url":"https://api.github.com/users/JuliaDiff/followers","following_url":"https://api.github.com/users/JuliaDiff/following{/other_user}","gists_url":"https://api.github.com/users/JuliaDiff/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaDiff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaDiff/subscriptions","organizations_url":"https://api.github.com/users/JuliaDiff/orgs","repos_url":"https://api.github.com/users/JuliaDiff/repos","events_url":"https://api.github.com/users/JuliaDiff/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaDiff/received_events","type":"Organization","site_admin":false},"repo":{"id":9411959,"name":"ForwardDiff.jl","full_name":"JuliaDiff/ForwardDiff.jl","owner":{"login":"JuliaDiff","id":7750915,"avatar_url":"https://avatars.githubusercontent.com/u/7750915?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaDiff","html_url":"https://github.com/JuliaDiff","followers_url":"https://api.github.com/users/JuliaDiff/followers","following_url":"https://api.github.com/users/JuliaDiff/following{/other_user}","gists_url":"https://api.github.com/users/JuliaDiff/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaDiff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaDiff/subscriptions","organizations_url":"https://api.github.com/users/JuliaDiff/orgs","repos_url":"https://api.github.com/users/JuliaDiff/repos","events_url":"https://api.github.com/users/JuliaDiff/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaDiff/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JuliaDiff/ForwardDiff.jl","description":"Julia package for performing forward mode automatic differentiation","fork":false,"url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl","forks_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/forks","keys_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/teams","hooks_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/hooks","issue_events_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/issues/events{/number}","events_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/events","assignees_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/assignees{/user}","branches_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/branches{/branch}","tags_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/tags","blobs_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/languages","stargazers_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/stargazers","contributors_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/contributors","subscribers_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/subscribers","subscription_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/subscription","commits_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/contents/{+path}","compare_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/merges","archive_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/downloads","issues_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/issues{/number}","pulls_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/labels{/name}","releases_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/releases{/id}","created_at":"2013-04-13T10:19:04Z","updated_at":"2015-11-27T16:22:25Z","pushed_at":"2015-12-18T17:55:54Z","git_url":"git://github.com/JuliaDiff/ForwardDiff.jl.git","ssh_url":"git@github.com:JuliaDiff/ForwardDiff.jl.git","clone_url":"https://github.com/JuliaDiff/ForwardDiff.jl.git","svn_url":"https://github.com/JuliaDiff/ForwardDiff.jl","homepage":"","size":1162,"stargazers_count":40,"watchers_count":40,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":10,"mirror_url":null,"open_issues_count":11,"forks":10,"open_issues":11,"watchers":40,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/pulls/84"},"html":{"href":"https://github.com/JuliaDiff/ForwardDiff.jl/pull/84"},"issue":{"href":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/issues/84"},"comments":{"href":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/issues/84/comments"},"review_comments":{"href":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/pulls/84/comments"},"review_comment":{"href":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/pulls/84/commits"},"statuses":{"href":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/statuses/6998ca827cdff54ced0e91da21acc1baf0e6078e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":33,"deletions":2,"changed_files":5}}