{"action":"created","comment":{"url":"https://api.github.com/repos/vgvassilev/clad/pulls/comments/194340035","pull_request_review_id":127490496,"id":194340035,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDM0MDAzNQ==","diff_hunk":"@@ -51,8 +51,8 @@ int main () {\n   clad::differentiate(f_2, 2);\n \n   clad::differentiate(f_2, -1); // expected-error {{Invalid argument index -1 among 3 argument(s)}}\n-  // expected-note@clad/Differentiator/Differentiator.h:97 {{candidate function not viable: no known conversion from 'int (int, float, int)' to 'unsigned int' for 2nd argument}}\n-  // expected-note@clad/Differentiator/Differentiator.h:104 {{candidate template ignored: could not match 'R (C::*)(Args...)' against 'int (*)(int, float, int)'}}\n+  // expected-note@clad/Differentiator/Differentiator.h:91 {{candidate function not viable: no known conversion from 'int (int, float, int)' to 'unsigned int' for 2nd argument}}","path":"test/FirstDerivative/DiffInterface.C","position":6,"original_position":6,"commit_id":"0381418d038c6157f139632a3cd28147c5425e29","original_commit_id":"0381418d038c6157f139632a3cd28147c5425e29","user":{"login":"vgvassilev","id":6516307,"node_id":"MDQ6VXNlcjY1MTYzMDc=","avatar_url":"https://avatars1.githubusercontent.com/u/6516307?v=4","gravatar_id":"","url":"https://api.github.com/users/vgvassilev","html_url":"https://github.com/vgvassilev","followers_url":"https://api.github.com/users/vgvassilev/followers","following_url":"https://api.github.com/users/vgvassilev/following{/other_user}","gists_url":"https://api.github.com/users/vgvassilev/gists{/gist_id}","starred_url":"https://api.github.com/users/vgvassilev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vgvassilev/subscriptions","organizations_url":"https://api.github.com/users/vgvassilev/orgs","repos_url":"https://api.github.com/users/vgvassilev/repos","events_url":"https://api.github.com/users/vgvassilev/events{/privacy}","received_events_url":"https://api.github.com/users/vgvassilev/received_events","type":"User","site_admin":false},"body":"If you fix the header file comments you should not need to change this one.","created_at":"2018-06-11T09:21:37Z","updated_at":"2018-06-11T09:37:54Z","html_url":"https://github.com/vgvassilev/clad/pull/39#discussion_r194340035","pull_request_url":"https://api.github.com/repos/vgvassilev/clad/pulls/39","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/vgvassilev/clad/pulls/comments/194340035"},"html":{"href":"https://github.com/vgvassilev/clad/pull/39#discussion_r194340035"},"pull_request":{"href":"https://api.github.com/repos/vgvassilev/clad/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/vgvassilev/clad/pulls/39","id":192896712,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyODk2NzEy","html_url":"https://github.com/vgvassilev/clad/pull/39","diff_url":"https://github.com/vgvassilev/clad/pull/39.diff","patch_url":"https://github.com/vgvassilev/clad/pull/39.patch","issue_url":"https://api.github.com/repos/vgvassilev/clad/issues/39","number":39,"state":"open","locked":false,"title":"Add gradient computations in reverse mode","user":{"login":"efremale","id":29282858,"node_id":"MDQ6VXNlcjI5MjgyODU4","avatar_url":"https://avatars3.githubusercontent.com/u/29282858?v=4","gravatar_id":"","url":"https://api.github.com/users/efremale","html_url":"https://github.com/efremale","followers_url":"https://api.github.com/users/efremale/followers","following_url":"https://api.github.com/users/efremale/following{/other_user}","gists_url":"https://api.github.com/users/efremale/gists{/gist_id}","starred_url":"https://api.github.com/users/efremale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efremale/subscriptions","organizations_url":"https://api.github.com/users/efremale/orgs","repos_url":"https://api.github.com/users/efremale/repos","events_url":"https://api.github.com/users/efremale/events{/privacy}","received_events_url":"https://api.github.com/users/efremale/received_events","type":"User","site_admin":false},"body":"For a function ```f```, its gradient can be computed by calling ```clad::gradient(f)```.\r\n\r\nFor example, calling ```clad::gradient``` on\r\n```\r\ndouble rosenbrock_func(double x, double y) {\r\n  return (x - 1) * (x - 1) + 100 * (y - x * x) * (y - x * x);\r\n}\r\n```\r\nshould generate\r\n```\r\nvoid rosenbrock_func_grad(double x, double y, double *_result) {\r\n    _result[0UL] += 1. * (x - 1);\r\n    _result[0UL] += 1. * (x - 1);\r\n    _result[1UL] += 1. * (y - x * x) * 100;\r\n    _result[0UL] += -1. * (y - x * x) * 100 * x;\r\n    _result[0UL] += -1. * (y - x * x) * 100 * x;\r\n    _result[1UL] += 1. * 100 * (y - x * x);\r\n    _result[0UL] += -1. * 100 * (y - x * x) * x;\r\n    _result[0UL] += -1. * 100 * (y - x * x) * x;\r\n}\r\n```\r\n\r\nThe caller of the ```*_grad``` functions is responsible for allocating enough space for the ```_result``` array.\r\n","created_at":"2018-06-06T04:26:34Z","updated_at":"2018-06-11T09:37:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ce10ff2d550e40f44f7e8064b75a02d299050e4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/vgvassilev/clad/pulls/39/commits","review_comments_url":"https://api.github.com/repos/vgvassilev/clad/pulls/39/comments","review_comment_url":"https://api.github.com/repos/vgvassilev/clad/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vgvassilev/clad/issues/39/comments","statuses_url":"https://api.github.com/repos/vgvassilev/clad/statuses/0381418d038c6157f139632a3cd28147c5425e29","head":{"label":"efremale:add-reverse-mode","ref":"add-reverse-mode","sha":"0381418d038c6157f139632a3cd28147c5425e29","user":{"login":"efremale","id":29282858,"node_id":"MDQ6VXNlcjI5MjgyODU4","avatar_url":"https://avatars3.githubusercontent.com/u/29282858?v=4","gravatar_id":"","url":"https://api.github.com/users/efremale","html_url":"https://github.com/efremale","followers_url":"https://api.github.com/users/efremale/followers","following_url":"https://api.github.com/users/efremale/following{/other_user}","gists_url":"https://api.github.com/users/efremale/gists{/gist_id}","starred_url":"https://api.github.com/users/efremale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efremale/subscriptions","organizations_url":"https://api.github.com/users/efremale/orgs","repos_url":"https://api.github.com/users/efremale/repos","events_url":"https://api.github.com/users/efremale/events{/privacy}","received_events_url":"https://api.github.com/users/efremale/received_events","type":"User","site_admin":false},"repo":{"id":131965667,"node_id":"MDEwOlJlcG9zaXRvcnkxMzE5NjU2Njc=","name":"clad","full_name":"efremale/clad","owner":{"login":"efremale","id":29282858,"node_id":"MDQ6VXNlcjI5MjgyODU4","avatar_url":"https://avatars3.githubusercontent.com/u/29282858?v=4","gravatar_id":"","url":"https://api.github.com/users/efremale","html_url":"https://github.com/efremale","followers_url":"https://api.github.com/users/efremale/followers","following_url":"https://api.github.com/users/efremale/following{/other_user}","gists_url":"https://api.github.com/users/efremale/gists{/gist_id}","starred_url":"https://api.github.com/users/efremale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efremale/subscriptions","organizations_url":"https://api.github.com/users/efremale/orgs","repos_url":"https://api.github.com/users/efremale/repos","events_url":"https://api.github.com/users/efremale/events{/privacy}","received_events_url":"https://api.github.com/users/efremale/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/efremale/clad","description":"clad is a C++ plugin for clang that implements automatic differentiation of user-defined functions by employing the chain rule in forward mode, coupled with source code transformation and AST constant fold.","fork":true,"url":"https://api.github.com/repos/efremale/clad","forks_url":"https://api.github.com/repos/efremale/clad/forks","keys_url":"https://api.github.com/repos/efremale/clad/keys{/key_id}","collaborators_url":"https://api.github.com/repos/efremale/clad/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/efremale/clad/teams","hooks_url":"https://api.github.com/repos/efremale/clad/hooks","issue_events_url":"https://api.github.com/repos/efremale/clad/issues/events{/number}","events_url":"https://api.github.com/repos/efremale/clad/events","assignees_url":"https://api.github.com/repos/efremale/clad/assignees{/user}","branches_url":"https://api.github.com/repos/efremale/clad/branches{/branch}","tags_url":"https://api.github.com/repos/efremale/clad/tags","blobs_url":"https://api.github.com/repos/efremale/clad/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/efremale/clad/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/efremale/clad/git/refs{/sha}","trees_url":"https://api.github.com/repos/efremale/clad/git/trees{/sha}","statuses_url":"https://api.github.com/repos/efremale/clad/statuses/{sha}","languages_url":"https://api.github.com/repos/efremale/clad/languages","stargazers_url":"https://api.github.com/repos/efremale/clad/stargazers","contributors_url":"https://api.github.com/repos/efremale/clad/contributors","subscribers_url":"https://api.github.com/repos/efremale/clad/subscribers","subscription_url":"https://api.github.com/repos/efremale/clad/subscription","commits_url":"https://api.github.com/repos/efremale/clad/commits{/sha}","git_commits_url":"https://api.github.com/repos/efremale/clad/git/commits{/sha}","comments_url":"https://api.github.com/repos/efremale/clad/comments{/number}","issue_comment_url":"https://api.github.com/repos/efremale/clad/issues/comments{/number}","contents_url":"https://api.github.com/repos/efremale/clad/contents/{+path}","compare_url":"https://api.github.com/repos/efremale/clad/compare/{base}...{head}","merges_url":"https://api.github.com/repos/efremale/clad/merges","archive_url":"https://api.github.com/repos/efremale/clad/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/efremale/clad/downloads","issues_url":"https://api.github.com/repos/efremale/clad/issues{/number}","pulls_url":"https://api.github.com/repos/efremale/clad/pulls{/number}","milestones_url":"https://api.github.com/repos/efremale/clad/milestones{/number}","notifications_url":"https://api.github.com/repos/efremale/clad/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/efremale/clad/labels{/name}","releases_url":"https://api.github.com/repos/efremale/clad/releases{/id}","deployments_url":"https://api.github.com/repos/efremale/clad/deployments","created_at":"2018-05-03T08:34:20Z","updated_at":"2018-05-03T08:34:22Z","pushed_at":"2018-06-08T02:15:48Z","git_url":"git://github.com/efremale/clad.git","ssh_url":"git@github.com:efremale/clad.git","clone_url":"https://github.com/efremale/clad.git","svn_url":"https://github.com/efremale/clad","homepage":"","size":427,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"vgvassilev:master","ref":"master","sha":"01b45fc1097c5792e3a40190cb6ac6bf39a123b4","user":{"login":"vgvassilev","id":6516307,"node_id":"MDQ6VXNlcjY1MTYzMDc=","avatar_url":"https://avatars1.githubusercontent.com/u/6516307?v=4","gravatar_id":"","url":"https://api.github.com/users/vgvassilev","html_url":"https://github.com/vgvassilev","followers_url":"https://api.github.com/users/vgvassilev/followers","following_url":"https://api.github.com/users/vgvassilev/following{/other_user}","gists_url":"https://api.github.com/users/vgvassilev/gists{/gist_id}","starred_url":"https://api.github.com/users/vgvassilev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vgvassilev/subscriptions","organizations_url":"https://api.github.com/users/vgvassilev/orgs","repos_url":"https://api.github.com/users/vgvassilev/repos","events_url":"https://api.github.com/users/vgvassilev/events{/privacy}","received_events_url":"https://api.github.com/users/vgvassilev/received_events","type":"User","site_admin":false},"repo":{"id":17050358,"node_id":"MDEwOlJlcG9zaXRvcnkxNzA1MDM1OA==","name":"clad","full_name":"vgvassilev/clad","owner":{"login":"vgvassilev","id":6516307,"node_id":"MDQ6VXNlcjY1MTYzMDc=","avatar_url":"https://avatars1.githubusercontent.com/u/6516307?v=4","gravatar_id":"","url":"https://api.github.com/users/vgvassilev","html_url":"https://github.com/vgvassilev","followers_url":"https://api.github.com/users/vgvassilev/followers","following_url":"https://api.github.com/users/vgvassilev/following{/other_user}","gists_url":"https://api.github.com/users/vgvassilev/gists{/gist_id}","starred_url":"https://api.github.com/users/vgvassilev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vgvassilev/subscriptions","organizations_url":"https://api.github.com/users/vgvassilev/orgs","repos_url":"https://api.github.com/users/vgvassilev/repos","events_url":"https://api.github.com/users/vgvassilev/events{/privacy}","received_events_url":"https://api.github.com/users/vgvassilev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vgvassilev/clad","description":"clad is a C++ plugin for clang that implements automatic differentiation of user-defined functions by employing the chain rule in forward mode, coupled with source code transformation and AST constant fold.","fork":false,"url":"https://api.github.com/repos/vgvassilev/clad","forks_url":"https://api.github.com/repos/vgvassilev/clad/forks","keys_url":"https://api.github.com/repos/vgvassilev/clad/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vgvassilev/clad/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vgvassilev/clad/teams","hooks_url":"https://api.github.com/repos/vgvassilev/clad/hooks","issue_events_url":"https://api.github.com/repos/vgvassilev/clad/issues/events{/number}","events_url":"https://api.github.com/repos/vgvassilev/clad/events","assignees_url":"https://api.github.com/repos/vgvassilev/clad/assignees{/user}","branches_url":"https://api.github.com/repos/vgvassilev/clad/branches{/branch}","tags_url":"https://api.github.com/repos/vgvassilev/clad/tags","blobs_url":"https://api.github.com/repos/vgvassilev/clad/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vgvassilev/clad/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vgvassilev/clad/git/refs{/sha}","trees_url":"https://api.github.com/repos/vgvassilev/clad/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vgvassilev/clad/statuses/{sha}","languages_url":"https://api.github.com/repos/vgvassilev/clad/languages","stargazers_url":"https://api.github.com/repos/vgvassilev/clad/stargazers","contributors_url":"https://api.github.com/repos/vgvassilev/clad/contributors","subscribers_url":"https://api.github.com/repos/vgvassilev/clad/subscribers","subscription_url":"https://api.github.com/repos/vgvassilev/clad/subscription","commits_url":"https://api.github.com/repos/vgvassilev/clad/commits{/sha}","git_commits_url":"https://api.github.com/repos/vgvassilev/clad/git/commits{/sha}","comments_url":"https://api.github.com/repos/vgvassilev/clad/comments{/number}","issue_comment_url":"https://api.github.com/repos/vgvassilev/clad/issues/comments{/number}","contents_url":"https://api.github.com/repos/vgvassilev/clad/contents/{+path}","compare_url":"https://api.github.com/repos/vgvassilev/clad/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vgvassilev/clad/merges","archive_url":"https://api.github.com/repos/vgvassilev/clad/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vgvassilev/clad/downloads","issues_url":"https://api.github.com/repos/vgvassilev/clad/issues{/number}","pulls_url":"https://api.github.com/repos/vgvassilev/clad/pulls{/number}","milestones_url":"https://api.github.com/repos/vgvassilev/clad/milestones{/number}","notifications_url":"https://api.github.com/repos/vgvassilev/clad/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vgvassilev/clad/labels{/name}","releases_url":"https://api.github.com/repos/vgvassilev/clad/releases{/id}","deployments_url":"https://api.github.com/repos/vgvassilev/clad/deployments","created_at":"2014-02-21T08:45:02Z","updated_at":"2018-05-04T14:19:09Z","pushed_at":"2018-06-08T02:15:49Z","git_url":"git://github.com/vgvassilev/clad.git","ssh_url":"git@github.com:vgvassilev/clad.git","clone_url":"https://github.com/vgvassilev/clad.git","svn_url":"https://github.com/vgvassilev/clad","homepage":"","size":412,"stargazers_count":23,"watchers_count":23,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":8,"open_issues":11,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vgvassilev/clad/pulls/39"},"html":{"href":"https://github.com/vgvassilev/clad/pull/39"},"issue":{"href":"https://api.github.com/repos/vgvassilev/clad/issues/39"},"comments":{"href":"https://api.github.com/repos/vgvassilev/clad/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/vgvassilev/clad/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/vgvassilev/clad/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vgvassilev/clad/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/vgvassilev/clad/statuses/0381418d038c6157f139632a3cd28147c5425e29"}},"author_association":"NONE"}}
{"actor":{"display_login":"vgvassilev"}}