payload: {"action":"created","comment":{"url":"https://api.github.com/repos/helmholtz-analytics/heat/pulls/comments/327634146","pull_request_review_id":292445608,"id":327634146,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMyNzYzNDE0Ng==","diff_hunk":"@@ -63,6 +65,78 @@ def add(t1, t2):\n     return operations.__binary_op(torch.add, t1, t2)\n \n \n+def diff(a, n=1, axis=-1):\n+    \"\"\"\n+    Calculate the n-th discrete difference along the given axis.\n+    The first difference is given by out[i] = a[i+1] - a[i] along the given axis, higher differences are calculated by using diff recursively.\n+    a : DNDarray\n+        Input array\n+    n : int, optional\n+        The number of times values are differenced. If zero, the input is returned as-is.\n+        n=2 is equivalent to ht.diff(ht.diff(a))","path":"heat/core/arithmetics.py","position":28,"original_position":28,"commit_id":"e6bd75d357b3834c53989e3b34a4e8c465284777","original_commit_id":"e6bd75d357b3834c53989e3b34a4e8c465284777","user":{"login":"Markus-Goetz","id":1091971,"node_id":"MDQ6VXNlcjEwOTE5NzE=","avatar_url":"https://avatars1.githubusercontent.com/u/1091971?v=4","gravatar_id":"","url":"https://api.github.com/users/Markus-Goetz","html_url":"https://github.com/Markus-Goetz","followers_url":"https://api.github.com/users/Markus-Goetz/followers","following_url":"https://api.github.com/users/Markus-Goetz/following{/other_user}","gists_url":"https://api.github.com/users/Markus-Goetz/gists{/gist_id}","starred_url":"https://api.github.com/users/Markus-Goetz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Markus-Goetz/subscriptions","organizations_url":"https://api.github.com/users/Markus-Goetz/orgs","repos_url":"https://api.github.com/users/Markus-Goetz/repos","events_url":"https://api.github.com/users/Markus-Goetz/events{/privacy}","received_events_url":"https://api.github.com/users/Markus-Goetz/received_events","type":"User","site_admin":false},"body":"Default value is missing in description","created_at":"2019-09-24T14:04:23Z","updated_at":"2019-09-24T14:09:16Z","html_url":"https://github.com/helmholtz-analytics/heat/pull/388#discussion_r327634146","pull_request_url":"https://api.github.com/repos/helmholtz-analytics/heat/pulls/388","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/helmholtz-analytics/heat/pulls/comments/327634146"},"html":{"href":"https://github.com/helmholtz-analytics/heat/pull/388#discussion_r327634146"},"pull_request":{"href":"https://api.github.com/repos/helmholtz-analytics/heat/pulls/388"}}},"pull_request":{"url":"https://api.github.com/repos/helmholtz-analytics/heat/pulls/388","id":319169814,"node_id":"MDExOlB1bGxSZXF1ZXN0MzE5MTY5ODE0","html_url":"https://github.com/helmholtz-analytics/heat/pull/388","diff_url":"https://github.com/helmholtz-analytics/heat/pull/388.diff","patch_url":"https://github.com/helmholtz-analytics/heat/pull/388.patch","issue_url":"https://api.github.com/repos/helmholtz-analytics/heat/issues/388","number":388,"state":"open","locked":false,"title":"Features/32 diff","user":{"login":"coquelin77","id":32705225,"node_id":"MDQ6VXNlcjMyNzA1MjI1","avatar_url":"https://avatars2.githubusercontent.com/u/32705225?v=4","gravatar_id":"","url":"https://api.github.com/users/coquelin77","html_url":"https://github.com/coquelin77","followers_url":"https://api.github.com/users/coquelin77/followers","following_url":"https://api.github.com/users/coquelin77/following{/other_user}","gists_url":"https://api.github.com/users/coquelin77/gists{/gist_id}","starred_url":"https://api.github.com/users/coquelin77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coquelin77/subscriptions","organizations_url":"https://api.github.com/users/coquelin77/orgs","repos_url":"https://api.github.com/users/coquelin77/repos","events_url":"https://api.github.com/users/coquelin77/events{/privacy}","received_events_url":"https://api.github.com/users/coquelin77/received_events","type":"User","site_admin":false},"body":"## Description\r\n\r\nPlease include a summary of the change and which issue/s is/are fixed. \r\nPlease also include relevant motivation and context. List any dependencies that are required for this change.\r\n\r\nFixes: #32 \r\n\r\nChanges proposed:\r\n- added diff function\r\n\r\n## Type of change\r\n\r\nPlease delete options that are not relevant.\r\n\r\n- [X] New feature (non-breaking change which adds functionality)\r\n\r\nHave you handled and tested all split configurations?\r\nyes","created_at":"2019-09-19T09:03:58Z","updated_at":"2019-09-24T14:09:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3197de4b66832f27f1b55cf646fd3c6565a0f036","assignee":null,"assignees":[],"requested_reviewers":[{"login":"Cdebus","id":6782601,"node_id":"MDQ6VXNlcjY3ODI2MDE=","avatar_url":"https://avatars2.githubusercontent.com/u/6782601?v=4","gravatar_id":"","url":"https://api.github.com/users/Cdebus","html_url":"https://github.com/Cdebus","followers_url":"https://api.github.com/users/Cdebus/followers","following_url":"https://api.github.com/users/Cdebus/following{/other_user}","gists_url":"https://api.github.com/users/Cdebus/gists{/gist_id}","starred_url":"https://api.github.com/users/Cdebus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cdebus/subscriptions","organizations_url":"https://api.github.com/users/Cdebus/orgs","repos_url":"https://api.github.com/users/Cdebus/repos","events_url":"https://api.github.com/users/Cdebus/events{/privacy}","received_events_url":"https://api.github.com/users/Cdebus/received_events","type":"User","site_admin":false},{"login":"ClaudiaComito","id":39374113,"node_id":"MDQ6VXNlcjM5Mzc0MTEz","avatar_url":"https://avatars0.githubusercontent.com/u/39374113?v=4","gravatar_id":"","url":"https://api.github.com/users/ClaudiaComito","html_url":"https://github.com/ClaudiaComito","followers_url":"https://api.github.com/users/ClaudiaComito/followers","following_url":"https://api.github.com/users/ClaudiaComito/following{/other_user}","gists_url":"https://api.github.com/users/ClaudiaComito/gists{/gist_id}","starred_url":"https://api.github.com/users/ClaudiaComito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClaudiaComito/subscriptions","organizations_url":"https://api.github.com/users/ClaudiaComito/orgs","repos_url":"https://api.github.com/users/ClaudiaComito/repos","events_url":"https://api.github.com/users/ClaudiaComito/events{/privacy}","received_events_url":"https://api.github.com/users/ClaudiaComito/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/helmholtz-analytics/heat/pulls/388/commits","review_comments_url":"https://api.github.com/repos/helmholtz-analytics/heat/pulls/388/comments","review_comment_url":"https://api.github.com/repos/helmholtz-analytics/heat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/helmholtz-analytics/heat/issues/388/comments","statuses_url":"https://api.github.com/repos/helmholtz-analytics/heat/statuses/e6bd75d357b3834c53989e3b34a4e8c465284777","head":{"label":"helmholtz-analytics:features/32-diff","ref":"features/32-diff","sha":"e6bd75d357b3834c53989e3b34a4e8c465284777","user":{"login":"helmholtz-analytics","id":39373915,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MzczOTE1","avatar_url":"https://avatars2.githubusercontent.com/u/39373915?v=4","gravatar_id":"","url":"https://api.github.com/users/helmholtz-analytics","html_url":"https://github.com/helmholtz-analytics","followers_url":"https://api.github.com/users/helmholtz-analytics/followers","following_url":"https://api.github.com/users/helmholtz-analytics/following{/other_user}","gists_url":"https://api.github.com/users/helmholtz-analytics/gists{/gist_id}","starred_url":"https://api.github.com/users/helmholtz-analytics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helmholtz-analytics/subscriptions","organizations_url":"https://api.github.com/users/helmholtz-analytics/orgs","repos_url":"https://api.github.com/users/helmholtz-analytics/repos","events_url":"https://api.github.com/users/helmholtz-analytics/events{/privacy}","received_events_url":"https://api.github.com/users/helmholtz-analytics/received_events","type":"Organization","site_admin":false},"repo":{"id":133808899,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM4MDg4OTk=","name":"heat","full_name":"helmholtz-analytics/heat","private":false,"owner":{"login":"helmholtz-analytics","id":39373915,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MzczOTE1","avatar_url":"https://avatars2.githubusercontent.com/u/39373915?v=4","gravatar_id":"","url":"https://api.github.com/users/helmholtz-analytics","html_url":"https://github.com/helmholtz-analytics","followers_url":"https://api.github.com/users/helmholtz-analytics/followers","following_url":"https://api.github.com/users/helmholtz-analytics/following{/other_user}","gists_url":"https://api.github.com/users/helmholtz-analytics/gists{/gist_id}","starred_url":"https://api.github.com/users/helmholtz-analytics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helmholtz-analytics/subscriptions","organizations_url":"https://api.github.com/users/helmholtz-analytics/orgs","repos_url":"https://api.github.com/users/helmholtz-analytics/repos","events_url":"https://api.github.com/users/helmholtz-analytics/events{/privacy}","received_events_url":"https://api.github.com/users/helmholtz-analytics/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/helmholtz-analytics/heat","description":"Distributed tensors and Machine Learning framework with GPU and MPI acceleration in Python","fork":false,"url":"https://api.github.com/repos/helmholtz-analytics/heat","forks_url":"https://api.github.com/repos/helmholtz-analytics/heat/forks","keys_url":"https://api.github.com/repos/helmholtz-analytics/heat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/helmholtz-analytics/heat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/helmholtz-analytics/heat/teams","hooks_url":"https://api.github.com/repos/helmholtz-analytics/heat/hooks","issue_events_url":"https://api.github.com/repos/helmholtz-analytics/heat/issues/events{/number}","events_url":"https://api.github.com/repos/helmholtz-analytics/heat/events","assignees_url":"https://api.github.com/repos/helmholtz-analytics/heat/assignees{/user}","branches_url":"https://api.github.com/repos/helmholtz-analytics/heat/branches{/branch}","tags_url":"https://api.github.com/repos/helmholtz-analytics/heat/tags","blobs_url":"https://api.github.com/repos/helmholtz-analytics/heat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/helmholtz-analytics/heat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/helmholtz-analytics/heat/git/refs{/sha}","trees_url":"https://api.github.com/repos/helmholtz-analytics/heat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/helmholtz-analytics/heat/statuses/{sha}","languages_url":"https://api.github.com/repos/helmholtz-analytics/heat/languages","stargazers_url":"https://api.github.com/repos/helmholtz-analytics/heat/stargazers","contributors_url":"https://api.github.com/repos/helmholtz-analytics/heat/contributors","subscribers_url":"https://api.github.com/repos/helmholtz-analytics/heat/subscribers","subscription_url":"https://api.github.com/repos/helmholtz-analytics/heat/subscription","commits_url":"https://api.github.com/repos/helmholtz-analytics/heat/commits{/sha}","git_commits_url":"https://api.github.com/repos/helmholtz-analytics/heat/git/commits{/sha}","comments_url":"https://api.github.com/repos/helmholtz-analytics/heat/comments{/number}","issue_comment_url":"https://api.github.com/repos/helmholtz-analytics/heat/issues/comments{/number}","contents_url":"https://api.github.com/repos/helmholtz-analytics/heat/contents/{+path}","compare_url":"https://api.github.com/repos/helmholtz-analytics/heat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/helmholtz-analytics/heat/merges","archive_url":"https://api.github.com/repos/helmholtz-analytics/heat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/helmholtz-analytics/heat/downloads","issues_url":"https://api.github.com/repos/helmholtz-analytics/heat/issues{/number}","pulls_url":"https://api.github.com/repos/helmholtz-analytics/heat/pulls{/number}","milestones_url":"https://api.github.com/repos/helmholtz-analytics/heat/milestones{/number}","notifications_url":"https://api.github.com/repos/helmholtz-analytics/heat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/helmholtz-analytics/heat/labels{/name}","releases_url":"https://api.github.com/repos/helmholtz-analytics/heat/releases{/id}","deployments_url":"https://api.github.com/repos/helmholtz-analytics/heat/deployments","created_at":"2018-05-17T12:16:27Z","updated_at":"2019-09-24T13:59:19Z","pushed_at":"2019-09-24T14:02:21Z","git_url":"git://github.com/helmholtz-analytics/heat.git","ssh_url":"git@github.com:helmholtz-analytics/heat.git","clone_url":"https://github.com/helmholtz-analytics/heat.git","svn_url":"https://github.com/helmholtz-analytics/heat","homepage":"https://heat.readthedocs.io/","size":2093,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":83,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":5,"open_issues":83,"watchers":10,"default_branch":"master"}},"base":{"label":"helmholtz-analytics:master","ref":"master","sha":"91c95f898cc9a68fd130f207fbf47682fd243223","user":{"login":"helmholtz-analytics","id":39373915,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MzczOTE1","avatar_url":"https://avatars2.githubusercontent.com/u/39373915?v=4","gravatar_id":"","url":"https://api.github.com/users/helmholtz-analytics","html_url":"https://github.com/helmholtz-analytics","followers_url":"https://api.github.com/users/helmholtz-analytics/followers","following_url":"https://api.github.com/users/helmholtz-analytics/following{/other_user}","gists_url":"https://api.github.com/users/helmholtz-analytics/gists{/gist_id}","starred_url":"https://api.github.com/users/helmholtz-analytics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helmholtz-analytics/subscriptions","organizations_url":"https://api.github.com/users/helmholtz-analytics/orgs","repos_url":"https://api.github.com/users/helmholtz-analytics/repos","events_url":"https://api.github.com/users/helmholtz-analytics/events{/privacy}","received_events_url":"https://api.github.com/users/helmholtz-analytics/received_events","type":"Organization","site_admin":false},"repo":{"id":133808899,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM4MDg4OTk=","name":"heat","full_name":"helmholtz-analytics/heat","private":false,"owner":{"login":"helmholtz-analytics","id":39373915,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MzczOTE1","avatar_url":"https://avatars2.githubusercontent.com/u/39373915?v=4","gravatar_id":"","url":"https://api.github.com/users/helmholtz-analytics","html_url":"https://github.com/helmholtz-analytics","followers_url":"https://api.github.com/users/helmholtz-analytics/followers","following_url":"https://api.github.com/users/helmholtz-analytics/following{/other_user}","gists_url":"https://api.github.com/users/helmholtz-analytics/gists{/gist_id}","starred_url":"https://api.github.com/users/helmholtz-analytics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helmholtz-analytics/subscriptions","organizations_url":"https://api.github.com/users/helmholtz-analytics/orgs","repos_url":"https://api.github.com/users/helmholtz-analytics/repos","events_url":"https://api.github.com/users/helmholtz-analytics/events{/privacy}","received_events_url":"https://api.github.com/users/helmholtz-analytics/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/helmholtz-analytics/heat","description":"Distributed tensors and Machine Learning framework with GPU and MPI acceleration in Python","fork":false,"url":"https://api.github.com/repos/helmholtz-analytics/heat","forks_url":"https://api.github.com/repos/helmholtz-analytics/heat/forks","keys_url":"https://api.github.com/repos/helmholtz-analytics/heat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/helmholtz-analytics/heat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/helmholtz-analytics/heat/teams","hooks_url":"https://api.github.com/repos/helmholtz-analytics/heat/hooks","issue_events_url":"https://api.github.com/repos/helmholtz-analytics/heat/issues/events{/number}","events_url":"https://api.github.com/repos/helmholtz-analytics/heat/events","assignees_url":"https://api.github.com/repos/helmholtz-analytics/heat/assignees{/user}","branches_url":"https://api.github.com/repos/helmholtz-analytics/heat/branches{/branch}","tags_url":"https://api.github.com/repos/helmholtz-analytics/heat/tags","blobs_url":"https://api.github.com/repos/helmholtz-analytics/heat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/helmholtz-analytics/heat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/helmholtz-analytics/heat/git/refs{/sha}","trees_url":"https://api.github.com/repos/helmholtz-analytics/heat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/helmholtz-analytics/heat/statuses/{sha}","languages_url":"https://api.github.com/repos/helmholtz-analytics/heat/languages","stargazers_url":"https://api.github.com/repos/helmholtz-analytics/heat/stargazers","contributors_url":"https://api.github.com/repos/helmholtz-analytics/heat/contributors","subscribers_url":"https://api.github.com/repos/helmholtz-analytics/heat/subscribers","subscription_url":"https://api.github.com/repos/helmholtz-analytics/heat/subscription","commits_url":"https://api.github.com/repos/helmholtz-analytics/heat/commits{/sha}","git_commits_url":"https://api.github.com/repos/helmholtz-analytics/heat/git/commits{/sha}","comments_url":"https://api.github.com/repos/helmholtz-analytics/heat/comments{/number}","issue_comment_url":"https://api.github.com/repos/helmholtz-analytics/heat/issues/comments{/number}","contents_url":"https://api.github.com/repos/helmholtz-analytics/heat/contents/{+path}","compare_url":"https://api.github.com/repos/helmholtz-analytics/heat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/helmholtz-analytics/heat/merges","archive_url":"https://api.github.com/repos/helmholtz-analytics/heat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/helmholtz-analytics/heat/downloads","issues_url":"https://api.github.com/repos/helmholtz-analytics/heat/issues{/number}","pulls_url":"https://api.github.com/repos/helmholtz-analytics/heat/pulls{/number}","milestones_url":"https://api.github.com/repos/helmholtz-analytics/heat/milestones{/number}","notifications_url":"https://api.github.com/repos/helmholtz-analytics/heat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/helmholtz-analytics/heat/labels{/name}","releases_url":"https://api.github.com/repos/helmholtz-analytics/heat/releases{/id}","deployments_url":"https://api.github.com/repos/helmholtz-analytics/heat/deployments","created_at":"2018-05-17T12:16:27Z","updated_at":"2019-09-24T13:59:19Z","pushed_at":"2019-09-24T14:02:21Z","git_url":"git://github.com/helmholtz-analytics/heat.git","ssh_url":"git@github.com:helmholtz-analytics/heat.git","clone_url":"https://github.com/helmholtz-analytics/heat.git","svn_url":"https://github.com/helmholtz-analytics/heat","homepage":"https://heat.readthedocs.io/","size":2093,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":83,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":5,"open_issues":83,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/helmholtz-analytics/heat/pulls/388"},"html":{"href":"https://github.com/helmholtz-analytics/heat/pull/388"},"issue":{"href":"https://api.github.com/repos/helmholtz-analytics/heat/issues/388"},"comments":{"href":"https://api.github.com/repos/helmholtz-analytics/heat/issues/388/comments"},"review_comments":{"href":"https://api.github.com/repos/helmholtz-analytics/heat/pulls/388/comments"},"review_comment":{"href":"https://api.github.com/repos/helmholtz-analytics/heat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/helmholtz-analytics/heat/pulls/388/commits"},"statuses":{"href":"https://api.github.com/repos/helmholtz-analytics/heat/statuses/e6bd75d357b3834c53989e3b34a4e8c465284777"}},"author_association":"MEMBER"}}
other: {"actor":{"display_login":"Markus-Goetz"}}