{"action":"created","issue":{"url":"https://api.github.com/repos/stan-dev/math/issues/687","repository_url":"https://api.github.com/repos/stan-dev/math","labels_url":"https://api.github.com/repos/stan-dev/math/issues/687/labels{/name}","comments_url":"https://api.github.com/repos/stan-dev/math/issues/687/comments","events_url":"https://api.github.com/repos/stan-dev/math/issues/687/events","html_url":"https://github.com/stan-dev/math/pull/687","id":279048826,"node_id":"MDExOlB1bGxSZXF1ZXN0MTU2MjM1OTI1","number":687,"title":"Feature/GLMs Accept Scalars ","user":{"login":"VMatthijs","id":13718675,"node_id":"MDQ6VXNlcjEzNzE4Njc1","avatar_url":"https://avatars3.githubusercontent.com/u/13718675?v=4","gravatar_id":"","url":"https://api.github.com/users/VMatthijs","html_url":"https://github.com/VMatthijs","followers_url":"https://api.github.com/users/VMatthijs/followers","following_url":"https://api.github.com/users/VMatthijs/following{/other_user}","gists_url":"https://api.github.com/users/VMatthijs/gists{/gist_id}","starred_url":"https://api.github.com/users/VMatthijs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VMatthijs/subscriptions","organizations_url":"https://api.github.com/users/VMatthijs/orgs","repos_url":"https://api.github.com/users/VMatthijs/repos","events_url":"https://api.github.com/users/VMatthijs/events{/privacy}","received_events_url":"https://api.github.com/users/VMatthijs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"VMatthijs","id":13718675,"node_id":"MDQ6VXNlcjEzNzE4Njc1","avatar_url":"https://avatars3.githubusercontent.com/u/13718675?v=4","gravatar_id":"","url":"https://api.github.com/users/VMatthijs","html_url":"https://github.com/VMatthijs","followers_url":"https://api.github.com/users/VMatthijs/followers","following_url":"https://api.github.com/users/VMatthijs/following{/other_user}","gists_url":"https://api.github.com/users/VMatthijs/gists{/gist_id}","starred_url":"https://api.github.com/users/VMatthijs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VMatthijs/subscriptions","organizations_url":"https://api.github.com/users/VMatthijs/orgs","repos_url":"https://api.github.com/users/VMatthijs/repos","events_url":"https://api.github.com/users/VMatthijs/events{/privacy}","received_events_url":"https://api.github.com/users/VMatthijs/received_events","type":"User","site_admin":false},"assignees":[{"login":"VMatthijs","id":13718675,"node_id":"MDQ6VXNlcjEzNzE4Njc1","avatar_url":"https://avatars3.githubusercontent.com/u/13718675?v=4","gravatar_id":"","url":"https://api.github.com/users/VMatthijs","html_url":"https://github.com/VMatthijs","followers_url":"https://api.github.com/users/VMatthijs/followers","following_url":"https://api.github.com/users/VMatthijs/following{/other_user}","gists_url":"https://api.github.com/users/VMatthijs/gists{/gist_id}","starred_url":"https://api.github.com/users/VMatthijs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VMatthijs/subscriptions","organizations_url":"https://api.github.com/users/VMatthijs/orgs","repos_url":"https://api.github.com/users/VMatthijs/repos","events_url":"https://api.github.com/users/VMatthijs/events{/privacy}","received_events_url":"https://api.github.com/users/VMatthijs/received_events","type":"User","site_admin":false}],"milestone":null,"comments":56,"created_at":"2017-12-04T16:01:55Z","updated_at":"2018-08-11T10:04:41Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/stan-dev/math/pulls/687","html_url":"https://github.com/stan-dev/math/pull/687","diff_url":"https://github.com/stan-dev/math/pull/687.diff","patch_url":"https://github.com/stan-dev/math/pull/687.patch"},"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 makes the GLM functions accept scalars for its parameters (in addition to vectors).\r\n#### Intended Effect:\r\nMake it easier to use GLMs.\r\n#### How to Verify:\r\nRun included tests.\r\n#### Side Effects:\r\nWrote function for assigning a matrix to either a broadcast array or a matrix, in order to make it easier to\r\ndefine derivatives w.r.t. arguments that can either be scalar or vector.\r\nFixed tests for GLMs.\r\nFound and fixed bug in scale parameter gradient of normal_id_glm.\r\n\r\n#### Documentation:\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):\r\nMatthijs Vákár\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"},"comment":{"url":"https://api.github.com/repos/stan-dev/math/issues/comments/412265194","html_url":"https://github.com/stan-dev/math/pull/687#issuecomment-412265194","issue_url":"https://api.github.com/repos/stan-dev/math/issues/687","id":412265194,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjI2NTE5NA==","user":{"login":"bob-carpenter","id":3383807,"node_id":"MDQ6VXNlcjMzODM4MDc=","avatar_url":"https://avatars1.githubusercontent.com/u/3383807?v=4","gravatar_id":"","url":"https://api.github.com/users/bob-carpenter","html_url":"https://github.com/bob-carpenter","followers_url":"https://api.github.com/users/bob-carpenter/followers","following_url":"https://api.github.com/users/bob-carpenter/following{/other_user}","gists_url":"https://api.github.com/users/bob-carpenter/gists{/gist_id}","starred_url":"https://api.github.com/users/bob-carpenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bob-carpenter/subscriptions","organizations_url":"https://api.github.com/users/bob-carpenter/orgs","repos_url":"https://api.github.com/users/bob-carpenter/repos","events_url":"https://api.github.com/users/bob-carpenter/events{/privacy}","received_events_url":"https://api.github.com/users/bob-carpenter/received_events","type":"User","site_admin":false},"created_at":"2018-08-11T10:04:41Z","updated_at":"2018-08-11T10:04:41Z","author_association":"CONTRIBUTOR","body":"Also, just as a matter of style, { 1, 2 } works just fine---you don't need all those .0 qualifications---the compiler sorts it out.\n\n"}}
{"actor":{"display_login":"bob-carpenter"}}