{"action":"opened","number":751,"pull_request":{"url":"https://api.github.com/repos/stan-dev/math/pulls/751","id":167511231,"html_url":"https://github.com/stan-dev/math/pull/751","diff_url":"https://github.com/stan-dev/math/pull/751.diff","patch_url":"https://github.com/stan-dev/math/pull/751.patch","issue_url":"https://api.github.com/repos/stan-dev/math/issues/751","number":751,"state":"open","locked":false,"title":"log_mix - Multivariate Containers","user":{"login":"andrjohns","id":27717896,"avatar_url":"https://avatars0.githubusercontent.com/u/27717896?v=4","gravatar_id":"","url":"https://api.github.com/users/andrjohns","html_url":"https://github.com/andrjohns","followers_url":"https://api.github.com/users/andrjohns/followers","following_url":"https://api.github.com/users/andrjohns/following{/other_user}","gists_url":"https://api.github.com/users/andrjohns/gists{/gist_id}","starred_url":"https://api.github.com/users/andrjohns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrjohns/subscriptions","organizations_url":"https://api.github.com/users/andrjohns/orgs","repos_url":"https://api.github.com/users/andrjohns/repos","events_url":"https://api.github.com/users/andrjohns/events{/privacy}","received_events_url":"https://api.github.com/users/andrjohns/received_events","type":"User","site_admin":false},"body":"#### Submission Checklist\r\n\r\n- [x] Run unit tests: `./runTests.py test/unit`\r\n- [x] Run cpplint: `make cpplint`\r\n- [x] Declare copyright holder and open-source license: see below\r\n\r\n#### Summary:\r\nThis pull extends log_mix to take a vector of mixing proportions and an array of density vectors (i.e. ```log_mix(vector, vectors[])``` with analytic gradients. Any combination of vector/row_vector/std::vector is valid.\r\n\r\nThis required extending operands_and_partials to work with the ```std::vector<std::vector<T>>``` signature, let me know if that would be better introduced in a separate pull.\r\n\r\nThe tests should be fairly thorough and cover every possible combination of inputs, but let me know if I've missed anything.\r\n\r\n#### Intended Effect:\r\nImprove the speed and efficiency of mixture modelling\r\n\r\n#### How to Verify:\r\nTests for ```prim/fwd/rev/mix``` are included\r\n\r\n#### Side Effects:\r\nN/A\r\n\r\n#### Documentation:\r\nAs doxygen\r\n\r\n#### Copyright and Licensing\r\n\r\nPlease list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Andrew Johnson\r\n\r\nBy submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:\r\n- Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)\r\n- Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)\r\n","created_at":"2018-02-06T19:43:55Z","updated_at":"2018-02-06T19:43:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/stan-dev/math/pulls/751/commits","review_comments_url":"https://api.github.com/repos/stan-dev/math/pulls/751/comments","review_comment_url":"https://api.github.com/repos/stan-dev/math/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stan-dev/math/issues/751/comments","statuses_url":"https://api.github.com/repos/stan-dev/math/statuses/9eddc463cc3c155556ec10fa83cb482e225b7c21","head":{"label":"andrjohns:feature/log_mix_arr","ref":"feature/log_mix_arr","sha":"9eddc463cc3c155556ec10fa83cb482e225b7c21","user":{"login":"andrjohns","id":27717896,"avatar_url":"https://avatars0.githubusercontent.com/u/27717896?v=4","gravatar_id":"","url":"https://api.github.com/users/andrjohns","html_url":"https://github.com/andrjohns","followers_url":"https://api.github.com/users/andrjohns/followers","following_url":"https://api.github.com/users/andrjohns/following{/other_user}","gists_url":"https://api.github.com/users/andrjohns/gists{/gist_id}","starred_url":"https://api.github.com/users/andrjohns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrjohns/subscriptions","organizations_url":"https://api.github.com/users/andrjohns/orgs","repos_url":"https://api.github.com/users/andrjohns/repos","events_url":"https://api.github.com/users/andrjohns/events{/privacy}","received_events_url":"https://api.github.com/users/andrjohns/received_events","type":"User","site_admin":false},"repo":{"id":104632257,"name":"math","full_name":"andrjohns/math","owner":{"login":"andrjohns","id":27717896,"avatar_url":"https://avatars0.githubusercontent.com/u/27717896?v=4","gravatar_id":"","url":"https://api.github.com/users/andrjohns","html_url":"https://github.com/andrjohns","followers_url":"https://api.github.com/users/andrjohns/followers","following_url":"https://api.github.com/users/andrjohns/following{/other_user}","gists_url":"https://api.github.com/users/andrjohns/gists{/gist_id}","starred_url":"https://api.github.com/users/andrjohns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrjohns/subscriptions","organizations_url":"https://api.github.com/users/andrjohns/orgs","repos_url":"https://api.github.com/users/andrjohns/repos","events_url":"https://api.github.com/users/andrjohns/events{/privacy}","received_events_url":"https://api.github.com/users/andrjohns/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andrjohns/math","description":"Stan Math Library","fork":true,"url":"https://api.github.com/repos/andrjohns/math","forks_url":"https://api.github.com/repos/andrjohns/math/forks","keys_url":"https://api.github.com/repos/andrjohns/math/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andrjohns/math/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andrjohns/math/teams","hooks_url":"https://api.github.com/repos/andrjohns/math/hooks","issue_events_url":"https://api.github.com/repos/andrjohns/math/issues/events{/number}","events_url":"https://api.github.com/repos/andrjohns/math/events","assignees_url":"https://api.github.com/repos/andrjohns/math/assignees{/user}","branches_url":"https://api.github.com/repos/andrjohns/math/branches{/branch}","tags_url":"https://api.github.com/repos/andrjohns/math/tags","blobs_url":"https://api.github.com/repos/andrjohns/math/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andrjohns/math/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andrjohns/math/git/refs{/sha}","trees_url":"https://api.github.com/repos/andrjohns/math/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andrjohns/math/statuses/{sha}","languages_url":"https://api.github.com/repos/andrjohns/math/languages","stargazers_url":"https://api.github.com/repos/andrjohns/math/stargazers","contributors_url":"https://api.github.com/repos/andrjohns/math/contributors","subscribers_url":"https://api.github.com/repos/andrjohns/math/subscribers","subscription_url":"https://api.github.com/repos/andrjohns/math/subscription","commits_url":"https://api.github.com/repos/andrjohns/math/commits{/sha}","git_commits_url":"https://api.github.com/repos/andrjohns/math/git/commits{/sha}","comments_url":"https://api.github.com/repos/andrjohns/math/comments{/number}","issue_comment_url":"https://api.github.com/repos/andrjohns/math/issues/comments{/number}","contents_url":"https://api.github.com/repos/andrjohns/math/contents/{+path}","compare_url":"https://api.github.com/repos/andrjohns/math/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andrjohns/math/merges","archive_url":"https://api.github.com/repos/andrjohns/math/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andrjohns/math/downloads","issues_url":"https://api.github.com/repos/andrjohns/math/issues{/number}","pulls_url":"https://api.github.com/repos/andrjohns/math/pulls{/number}","milestones_url":"https://api.github.com/repos/andrjohns/math/milestones{/number}","notifications_url":"https://api.github.com/repos/andrjohns/math/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andrjohns/math/labels{/name}","releases_url":"https://api.github.com/repos/andrjohns/math/releases{/id}","deployments_url":"https://api.github.com/repos/andrjohns/math/deployments","created_at":"2017-09-24T09:17:05Z","updated_at":"2017-10-02T01:04:35Z","pushed_at":"2018-02-06T19:30:38Z","git_url":"git://github.com/andrjohns/math.git","ssh_url":"git@github.com:andrjohns/math.git","clone_url":"https://github.com/andrjohns/math.git","svn_url":"https://github.com/andrjohns/math","homepage":null,"size":241564,"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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"stan-dev:develop","ref":"develop","sha":"8e4eb3bd3b16b9aaaa9866d46aebbdf0a2c77e99","user":{"login":"stan-dev","id":3374820,"avatar_url":"https://avatars2.githubusercontent.com/u/3374820?v=4","gravatar_id":"","url":"https://api.github.com/users/stan-dev","html_url":"https://github.com/stan-dev","followers_url":"https://api.github.com/users/stan-dev/followers","following_url":"https://api.github.com/users/stan-dev/following{/other_user}","gists_url":"https://api.github.com/users/stan-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/stan-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stan-dev/subscriptions","organizations_url":"https://api.github.com/users/stan-dev/orgs","repos_url":"https://api.github.com/users/stan-dev/repos","events_url":"https://api.github.com/users/stan-dev/events{/privacy}","received_events_url":"https://api.github.com/users/stan-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":38388440,"name":"math","full_name":"stan-dev/math","owner":{"login":"stan-dev","id":3374820,"avatar_url":"https://avatars2.githubusercontent.com/u/3374820?v=4","gravatar_id":"","url":"https://api.github.com/users/stan-dev","html_url":"https://github.com/stan-dev","followers_url":"https://api.github.com/users/stan-dev/followers","following_url":"https://api.github.com/users/stan-dev/following{/other_user}","gists_url":"https://api.github.com/users/stan-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/stan-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stan-dev/subscriptions","organizations_url":"https://api.github.com/users/stan-dev/orgs","repos_url":"https://api.github.com/users/stan-dev/repos","events_url":"https://api.github.com/users/stan-dev/events{/privacy}","received_events_url":"https://api.github.com/users/stan-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stan-dev/math","description":"Stan Math Library","fork":false,"url":"https://api.github.com/repos/stan-dev/math","forks_url":"https://api.github.com/repos/stan-dev/math/forks","keys_url":"https://api.github.com/repos/stan-dev/math/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stan-dev/math/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stan-dev/math/teams","hooks_url":"https://api.github.com/repos/stan-dev/math/hooks","issue_events_url":"https://api.github.com/repos/stan-dev/math/issues/events{/number}","events_url":"https://api.github.com/repos/stan-dev/math/events","assignees_url":"https://api.github.com/repos/stan-dev/math/assignees{/user}","branches_url":"https://api.github.com/repos/stan-dev/math/branches{/branch}","tags_url":"https://api.github.com/repos/stan-dev/math/tags","blobs_url":"https://api.github.com/repos/stan-dev/math/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stan-dev/math/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stan-dev/math/git/refs{/sha}","trees_url":"https://api.github.com/repos/stan-dev/math/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stan-dev/math/statuses/{sha}","languages_url":"https://api.github.com/repos/stan-dev/math/languages","stargazers_url":"https://api.github.com/repos/stan-dev/math/stargazers","contributors_url":"https://api.github.com/repos/stan-dev/math/contributors","subscribers_url":"https://api.github.com/repos/stan-dev/math/subscribers","subscription_url":"https://api.github.com/repos/stan-dev/math/subscription","commits_url":"https://api.github.com/repos/stan-dev/math/commits{/sha}","git_commits_url":"https://api.github.com/repos/stan-dev/math/git/commits{/sha}","comments_url":"https://api.github.com/repos/stan-dev/math/comments{/number}","issue_comment_url":"https://api.github.com/repos/stan-dev/math/issues/comments{/number}","contents_url":"https://api.github.com/repos/stan-dev/math/contents/{+path}","compare_url":"https://api.github.com/repos/stan-dev/math/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stan-dev/math/merges","archive_url":"https://api.github.com/repos/stan-dev/math/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stan-dev/math/downloads","issues_url":"https://api.github.com/repos/stan-dev/math/issues{/number}","pulls_url":"https://api.github.com/repos/stan-dev/math/pulls{/number}","milestones_url":"https://api.github.com/repos/stan-dev/math/milestones{/number}","notifications_url":"https://api.github.com/repos/stan-dev/math/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stan-dev/math/labels{/name}","releases_url":"https://api.github.com/repos/stan-dev/math/releases{/id}","deployments_url":"https://api.github.com/repos/stan-dev/math/deployments","created_at":"2015-07-01T18:40:54Z","updated_at":"2018-02-06T01:49:01Z","pushed_at":"2018-02-06T02:51:19Z","git_url":"git://github.com/stan-dev/math.git","ssh_url":"git@github.com:stan-dev/math.git","clone_url":"https://github.com/stan-dev/math.git","svn_url":"https://github.com/stan-dev/math","homepage":null,"size":248487,"stargazers_count":161,"watchers_count":161,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":65,"mirror_url":null,"archived":false,"open_issues_count":152,"license":null,"forks":65,"open_issues":152,"watchers":161,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/stan-dev/math/pulls/751"},"html":{"href":"https://github.com/stan-dev/math/pull/751"},"issue":{"href":"https://api.github.com/repos/stan-dev/math/issues/751"},"comments":{"href":"https://api.github.com/repos/stan-dev/math/issues/751/comments"},"review_comments":{"href":"https://api.github.com/repos/stan-dev/math/pulls/751/comments"},"review_comment":{"href":"https://api.github.com/repos/stan-dev/math/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stan-dev/math/pulls/751/commits"},"statuses":{"href":"https://api.github.com/repos/stan-dev/math/statuses/9eddc463cc3c155556ec10fa83cb482e225b7c21"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":19,"additions":1451,"deletions":528,"changed_files":8}}
{"actor":{"display_login":"andrjohns"}}