{"action":"created","comment":{"url":"https://api.github.com/repos/vincentlab/PyFR/pulls/comments/42377512","id":42377512,"diff_hunk":"@@ -167,6 +252,41 @@ def ortho_basis_at_mp(self, p, q, r):\n \n         return [pij*pk for pij in pab for pk in pc]\n \n+    def jac_ortho_basis_at_mp(self, p, q, r):\n+        a = 2*(1 + p)/(1 - q) - 1 if q != 1 else -1\n+        b = q\n+        c = r\n+\n+        f = lambda x: jacobi(self.order - 1, 0, 0, x)\n+\n+        pab = []\n+        for i, (fi, dfi) in enumerate(zip(f(a), derivative(f, a))):\n+            g = lambda x: jacobi(self.order - i - 1, 2*i + 1, 0, x)","path":"pyfr/polys.py","position":144,"original_position":144,"commit_id":"bbf42f3873762b8df6272fa5d98671610a9bc975","original_commit_id":"bbf42f3873762b8df6272fa5d98671610a9bc975","user":{"login":"FreddieWitherden","id":528611,"avatar_url":"https://avatars.githubusercontent.com/u/528611?v=3","gravatar_id":"","url":"https://api.github.com/users/FreddieWitherden","html_url":"https://github.com/FreddieWitherden","followers_url":"https://api.github.com/users/FreddieWitherden/followers","following_url":"https://api.github.com/users/FreddieWitherden/following{/other_user}","gists_url":"https://api.github.com/users/FreddieWitherden/gists{/gist_id}","starred_url":"https://api.github.com/users/FreddieWitherden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FreddieWitherden/subscriptions","organizations_url":"https://api.github.com/users/FreddieWitherden/orgs","repos_url":"https://api.github.com/users/FreddieWitherden/repos","events_url":"https://api.github.com/users/FreddieWitherden/events{/privacy}","received_events_url":"https://api.github.com/users/FreddieWitherden/received_events","type":"User","site_admin":false},"body":"Variables are resolved at call time.\r\n\r\n```\r\nIn [2]: f = lambda x: x + i\r\n\r\nIn [3]: i = 1\r\n\r\nIn [4]: f(1)\r\nOut[4]: 2\r\n\r\nIn [5]: i = 3\r\n\r\nIn [6]: f(2)\r\nOut[6]: 5\r\n```","created_at":"2015-10-19T14:29:48Z","updated_at":"2015-10-19T14:29:48Z","html_url":"https://github.com/vincentlab/PyFR/pull/77#discussion_r42377512","pull_request_url":"https://api.github.com/repos/vincentlab/PyFR/pulls/77","_links":{"self":{"href":"https://api.github.com/repos/vincentlab/PyFR/pulls/comments/42377512"},"html":{"href":"https://github.com/vincentlab/PyFR/pull/77#discussion_r42377512"},"pull_request":{"href":"https://api.github.com/repos/vincentlab/PyFR/pulls/77"}}},"pull_request":{"url":"https://api.github.com/repos/vincentlab/PyFR/pulls/77","id":48063074,"html_url":"https://github.com/vincentlab/PyFR/pull/77","diff_url":"https://github.com/vincentlab/PyFR/pull/77.diff","patch_url":"https://github.com/vincentlab/PyFR/pull/77.patch","issue_url":"https://api.github.com/repos/vincentlab/PyFR/issues/77","number":77,"state":"open","locked":false,"title":"Compute derivative of basis function via chain rule.","user":{"login":"Aerojspark","id":8792917,"avatar_url":"https://avatars.githubusercontent.com/u/8792917?v=3","gravatar_id":"","url":"https://api.github.com/users/Aerojspark","html_url":"https://github.com/Aerojspark","followers_url":"https://api.github.com/users/Aerojspark/followers","following_url":"https://api.github.com/users/Aerojspark/following{/other_user}","gists_url":"https://api.github.com/users/Aerojspark/gists{/gist_id}","starred_url":"https://api.github.com/users/Aerojspark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aerojspark/subscriptions","organizations_url":"https://api.github.com/users/Aerojspark/orgs","repos_url":"https://api.github.com/users/Aerojspark/repos","events_url":"https://api.github.com/users/Aerojspark/events{/privacy}","received_events_url":"https://api.github.com/users/Aerojspark/received_events","type":"User","site_admin":false},"body":"This commit modifies the way to compute the derivative of basis function via chain rule.","created_at":"2015-10-19T12:10:30Z","updated_at":"2015-10-19T14:29:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0a7b70cfa0c659d718940b30d87813bc7afa4597","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vincentlab/PyFR/pulls/77/commits","review_comments_url":"https://api.github.com/repos/vincentlab/PyFR/pulls/77/comments","review_comment_url":"https://api.github.com/repos/vincentlab/PyFR/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vincentlab/PyFR/issues/77/comments","statuses_url":"https://api.github.com/repos/vincentlab/PyFR/statuses/bbf42f3873762b8df6272fa5d98671610a9bc975","head":{"label":"Aerojspark:develop","ref":"develop","sha":"bbf42f3873762b8df6272fa5d98671610a9bc975","user":{"login":"Aerojspark","id":8792917,"avatar_url":"https://avatars.githubusercontent.com/u/8792917?v=3","gravatar_id":"","url":"https://api.github.com/users/Aerojspark","html_url":"https://github.com/Aerojspark","followers_url":"https://api.github.com/users/Aerojspark/followers","following_url":"https://api.github.com/users/Aerojspark/following{/other_user}","gists_url":"https://api.github.com/users/Aerojspark/gists{/gist_id}","starred_url":"https://api.github.com/users/Aerojspark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aerojspark/subscriptions","organizations_url":"https://api.github.com/users/Aerojspark/orgs","repos_url":"https://api.github.com/users/Aerojspark/repos","events_url":"https://api.github.com/users/Aerojspark/events{/privacy}","received_events_url":"https://api.github.com/users/Aerojspark/received_events","type":"User","site_admin":false},"repo":{"id":24884060,"name":"PyFR","full_name":"Aerojspark/PyFR","owner":{"login":"Aerojspark","id":8792917,"avatar_url":"https://avatars.githubusercontent.com/u/8792917?v=3","gravatar_id":"","url":"https://api.github.com/users/Aerojspark","html_url":"https://github.com/Aerojspark","followers_url":"https://api.github.com/users/Aerojspark/followers","following_url":"https://api.github.com/users/Aerojspark/following{/other_user}","gists_url":"https://api.github.com/users/Aerojspark/gists{/gist_id}","starred_url":"https://api.github.com/users/Aerojspark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aerojspark/subscriptions","organizations_url":"https://api.github.com/users/Aerojspark/orgs","repos_url":"https://api.github.com/users/Aerojspark/repos","events_url":"https://api.github.com/users/Aerojspark/events{/privacy}","received_events_url":"https://api.github.com/users/Aerojspark/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Aerojspark/PyFR","description":"PyFR","fork":true,"url":"https://api.github.com/repos/Aerojspark/PyFR","forks_url":"https://api.github.com/repos/Aerojspark/PyFR/forks","keys_url":"https://api.github.com/repos/Aerojspark/PyFR/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Aerojspark/PyFR/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Aerojspark/PyFR/teams","hooks_url":"https://api.github.com/repos/Aerojspark/PyFR/hooks","issue_events_url":"https://api.github.com/repos/Aerojspark/PyFR/issues/events{/number}","events_url":"https://api.github.com/repos/Aerojspark/PyFR/events","assignees_url":"https://api.github.com/repos/Aerojspark/PyFR/assignees{/user}","branches_url":"https://api.github.com/repos/Aerojspark/PyFR/branches{/branch}","tags_url":"https://api.github.com/repos/Aerojspark/PyFR/tags","blobs_url":"https://api.github.com/repos/Aerojspark/PyFR/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Aerojspark/PyFR/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Aerojspark/PyFR/git/refs{/sha}","trees_url":"https://api.github.com/repos/Aerojspark/PyFR/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Aerojspark/PyFR/statuses/{sha}","languages_url":"https://api.github.com/repos/Aerojspark/PyFR/languages","stargazers_url":"https://api.github.com/repos/Aerojspark/PyFR/stargazers","contributors_url":"https://api.github.com/repos/Aerojspark/PyFR/contributors","subscribers_url":"https://api.github.com/repos/Aerojspark/PyFR/subscribers","subscription_url":"https://api.github.com/repos/Aerojspark/PyFR/subscription","commits_url":"https://api.github.com/repos/Aerojspark/PyFR/commits{/sha}","git_commits_url":"https://api.github.com/repos/Aerojspark/PyFR/git/commits{/sha}","comments_url":"https://api.github.com/repos/Aerojspark/PyFR/comments{/number}","issue_comment_url":"https://api.github.com/repos/Aerojspark/PyFR/issues/comments{/number}","contents_url":"https://api.github.com/repos/Aerojspark/PyFR/contents/{+path}","compare_url":"https://api.github.com/repos/Aerojspark/PyFR/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Aerojspark/PyFR/merges","archive_url":"https://api.github.com/repos/Aerojspark/PyFR/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Aerojspark/PyFR/downloads","issues_url":"https://api.github.com/repos/Aerojspark/PyFR/issues{/number}","pulls_url":"https://api.github.com/repos/Aerojspark/PyFR/pulls{/number}","milestones_url":"https://api.github.com/repos/Aerojspark/PyFR/milestones{/number}","notifications_url":"https://api.github.com/repos/Aerojspark/PyFR/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Aerojspark/PyFR/labels{/name}","releases_url":"https://api.github.com/repos/Aerojspark/PyFR/releases{/id}","created_at":"2014-10-07T09:22:28Z","updated_at":"2015-05-05T19:47:39Z","pushed_at":"2015-10-19T12:05:30Z","git_url":"git://github.com/Aerojspark/PyFR.git","ssh_url":"git@github.com:Aerojspark/PyFR.git","clone_url":"https://github.com/Aerojspark/PyFR.git","svn_url":"https://github.com/Aerojspark/PyFR","homepage":"","size":1995,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"vincentlab:develop","ref":"develop","sha":"b15f03cfa2dd0d836fc71e65a24f290b1a0b5001","user":{"login":"vincentlab","id":3252468,"avatar_url":"https://avatars.githubusercontent.com/u/3252468?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentlab","html_url":"https://github.com/vincentlab","followers_url":"https://api.github.com/users/vincentlab/followers","following_url":"https://api.github.com/users/vincentlab/following{/other_user}","gists_url":"https://api.github.com/users/vincentlab/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentlab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentlab/subscriptions","organizations_url":"https://api.github.com/users/vincentlab/orgs","repos_url":"https://api.github.com/users/vincentlab/repos","events_url":"https://api.github.com/users/vincentlab/events{/privacy}","received_events_url":"https://api.github.com/users/vincentlab/received_events","type":"Organization","site_admin":false},"repo":{"id":7652671,"name":"PyFR","full_name":"vincentlab/PyFR","owner":{"login":"vincentlab","id":3252468,"avatar_url":"https://avatars.githubusercontent.com/u/3252468?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentlab","html_url":"https://github.com/vincentlab","followers_url":"https://api.github.com/users/vincentlab/followers","following_url":"https://api.github.com/users/vincentlab/following{/other_user}","gists_url":"https://api.github.com/users/vincentlab/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentlab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentlab/subscriptions","organizations_url":"https://api.github.com/users/vincentlab/orgs","repos_url":"https://api.github.com/users/vincentlab/repos","events_url":"https://api.github.com/users/vincentlab/events{/privacy}","received_events_url":"https://api.github.com/users/vincentlab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vincentlab/PyFR","description":"PyFR","fork":false,"url":"https://api.github.com/repos/vincentlab/PyFR","forks_url":"https://api.github.com/repos/vincentlab/PyFR/forks","keys_url":"https://api.github.com/repos/vincentlab/PyFR/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vincentlab/PyFR/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vincentlab/PyFR/teams","hooks_url":"https://api.github.com/repos/vincentlab/PyFR/hooks","issue_events_url":"https://api.github.com/repos/vincentlab/PyFR/issues/events{/number}","events_url":"https://api.github.com/repos/vincentlab/PyFR/events","assignees_url":"https://api.github.com/repos/vincentlab/PyFR/assignees{/user}","branches_url":"https://api.github.com/repos/vincentlab/PyFR/branches{/branch}","tags_url":"https://api.github.com/repos/vincentlab/PyFR/tags","blobs_url":"https://api.github.com/repos/vincentlab/PyFR/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vincentlab/PyFR/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vincentlab/PyFR/git/refs{/sha}","trees_url":"https://api.github.com/repos/vincentlab/PyFR/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vincentlab/PyFR/statuses/{sha}","languages_url":"https://api.github.com/repos/vincentlab/PyFR/languages","stargazers_url":"https://api.github.com/repos/vincentlab/PyFR/stargazers","contributors_url":"https://api.github.com/repos/vincentlab/PyFR/contributors","subscribers_url":"https://api.github.com/repos/vincentlab/PyFR/subscribers","subscription_url":"https://api.github.com/repos/vincentlab/PyFR/subscription","commits_url":"https://api.github.com/repos/vincentlab/PyFR/commits{/sha}","git_commits_url":"https://api.github.com/repos/vincentlab/PyFR/git/commits{/sha}","comments_url":"https://api.github.com/repos/vincentlab/PyFR/comments{/number}","issue_comment_url":"https://api.github.com/repos/vincentlab/PyFR/issues/comments{/number}","contents_url":"https://api.github.com/repos/vincentlab/PyFR/contents/{+path}","compare_url":"https://api.github.com/repos/vincentlab/PyFR/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vincentlab/PyFR/merges","archive_url":"https://api.github.com/repos/vincentlab/PyFR/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vincentlab/PyFR/downloads","issues_url":"https://api.github.com/repos/vincentlab/PyFR/issues{/number}","pulls_url":"https://api.github.com/repos/vincentlab/PyFR/pulls{/number}","milestones_url":"https://api.github.com/repos/vincentlab/PyFR/milestones{/number}","notifications_url":"https://api.github.com/repos/vincentlab/PyFR/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vincentlab/PyFR/labels{/name}","releases_url":"https://api.github.com/repos/vincentlab/PyFR/releases{/id}","created_at":"2013-01-16T19:53:24Z","updated_at":"2015-10-10T14:33:45Z","pushed_at":"2015-10-19T12:10:31Z","git_url":"git://github.com/vincentlab/PyFR.git","ssh_url":"git@github.com:vincentlab/PyFR.git","clone_url":"https://github.com/vincentlab/PyFR.git","svn_url":"https://github.com/vincentlab/PyFR","homepage":"","size":3815,"stargazers_count":35,"watchers_count":35,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":6,"forks":29,"open_issues":6,"watchers":35,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/vincentlab/PyFR/pulls/77"},"html":{"href":"https://github.com/vincentlab/PyFR/pull/77"},"issue":{"href":"https://api.github.com/repos/vincentlab/PyFR/issues/77"},"comments":{"href":"https://api.github.com/repos/vincentlab/PyFR/issues/77/comments"},"review_comments":{"href":"https://api.github.com/repos/vincentlab/PyFR/pulls/77/comments"},"review_comment":{"href":"https://api.github.com/repos/vincentlab/PyFR/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vincentlab/PyFR/pulls/77/commits"},"statuses":{"href":"https://api.github.com/repos/vincentlab/PyFR/statuses/bbf42f3873762b8df6272fa5d98671610a9bc975"}}}}