{"action":"opened","number":191,"pull_request":{"url":"https://api.github.com/repos/albertoruiz/hmatrix/pulls/191","id":71427786,"html_url":"https://github.com/albertoruiz/hmatrix/pull/191","diff_url":"https://github.com/albertoruiz/hmatrix/pull/191.diff","patch_url":"https://github.com/albertoruiz/hmatrix/pull/191.patch","issue_url":"https://api.github.com/repos/albertoruiz/hmatrix/issues/191","number":191,"state":"open","locked":false,"title":"[In Progress] Ongoing porting of functionality to Static module","user":{"login":"mstksg","id":187815,"avatar_url":"https://avatars.githubusercontent.com/u/187815?v=3","gravatar_id":"","url":"https://api.github.com/users/mstksg","html_url":"https://github.com/mstksg","followers_url":"https://api.github.com/users/mstksg/followers","following_url":"https://api.github.com/users/mstksg/following{/other_user}","gists_url":"https://api.github.com/users/mstksg/gists{/gist_id}","starred_url":"https://api.github.com/users/mstksg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstksg/subscriptions","organizations_url":"https://api.github.com/users/mstksg/orgs","repos_url":"https://api.github.com/users/mstksg/repos","events_url":"https://api.github.com/users/mstksg/events{/privacy}","received_events_url":"https://api.github.com/users/mstksg/received_events","type":"User","site_admin":false},"body":"Just continuing on #163, #167, #168, #172 and assorted PR's to add more functionality to the Static module, if you wanted it.  I'm putting this here as a PR so you can let me know if there's functionality or additions that you disagree with, so I can get rid of/modify them immediately!\r\n\r\nThe main guiding principle behind these additions is https://github.com/albertoruiz/hmatrix/pull/163#issuecomment-168936110 , which sets out the following criteria:\r\n\r\n* If the the relationship between the function's input size and output size is important and can be taken advantage of by the type system (ie, `zipWithVec`, `cvmap`, `tr`) -- the *return type* is important\r\n* If the untyped function is *partial*, but adding static type parameters makes it total (ie, `expm`, `eigenvalues`, `det`) -- the *input type* is important\r\n\r\nThis excludes functions where knowing the output or input dimensions yields nothing of significance, like `sumElements`.\r\n\r\n## Notes\r\n\r\nA lot of functionality is being thrown into the `Domain` typeclass, but only because it allows us to export both `R`/`C` and `L`/`M` varieties.  This creates a bloated typeclass, which is not very ideal.\r\n\r\nThis can be fixed if `R`/`C` and `L`/`M` are merged to be *parameterized* type constructors, and things like `expm`, `det`, etc. can simply be defined for `Field t => ...`, like they are in the normal, untyped libraries.  This simplifies the interface by lightening the typeclass...and I actually don't think it would be a breaking change for the API (as long as `R`, `C`, `L`, `M` are turned to appropriate type synonyms).\r\n\r\nIt'll also let us generalize functions right now that are unnecessarily specialized, like `withMatrix`, `withVector`, `withRows`, etc.  There'd also be some larger returns down the line, too, if we decide to add the numerous factorization schemes.","created_at":"2016-05-25T17:02:54Z","updated_at":"2016-05-25T17:02:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/albertoruiz/hmatrix/pulls/191/commits","review_comments_url":"https://api.github.com/repos/albertoruiz/hmatrix/pulls/191/comments","review_comment_url":"https://api.github.com/repos/albertoruiz/hmatrix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/albertoruiz/hmatrix/issues/191/comments","statuses_url":"https://api.github.com/repos/albertoruiz/hmatrix/statuses/cd6caa8f08e686fd4a90dae5f3414264aa2700a0","head":{"label":"mstksg:static","ref":"static","sha":"cd6caa8f08e686fd4a90dae5f3414264aa2700a0","user":{"login":"mstksg","id":187815,"avatar_url":"https://avatars.githubusercontent.com/u/187815?v=3","gravatar_id":"","url":"https://api.github.com/users/mstksg","html_url":"https://github.com/mstksg","followers_url":"https://api.github.com/users/mstksg/followers","following_url":"https://api.github.com/users/mstksg/following{/other_user}","gists_url":"https://api.github.com/users/mstksg/gists{/gist_id}","starred_url":"https://api.github.com/users/mstksg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstksg/subscriptions","organizations_url":"https://api.github.com/users/mstksg/orgs","repos_url":"https://api.github.com/users/mstksg/repos","events_url":"https://api.github.com/users/mstksg/events{/privacy}","received_events_url":"https://api.github.com/users/mstksg/received_events","type":"User","site_admin":false},"repo":{"id":48278329,"name":"hmatrix","full_name":"mstksg/hmatrix","owner":{"login":"mstksg","id":187815,"avatar_url":"https://avatars.githubusercontent.com/u/187815?v=3","gravatar_id":"","url":"https://api.github.com/users/mstksg","html_url":"https://github.com/mstksg","followers_url":"https://api.github.com/users/mstksg/followers","following_url":"https://api.github.com/users/mstksg/following{/other_user}","gists_url":"https://api.github.com/users/mstksg/gists{/gist_id}","starred_url":"https://api.github.com/users/mstksg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstksg/subscriptions","organizations_url":"https://api.github.com/users/mstksg/orgs","repos_url":"https://api.github.com/users/mstksg/repos","events_url":"https://api.github.com/users/mstksg/events{/privacy}","received_events_url":"https://api.github.com/users/mstksg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mstksg/hmatrix","description":"Linear algebra and numerical computation","fork":true,"url":"https://api.github.com/repos/mstksg/hmatrix","forks_url":"https://api.github.com/repos/mstksg/hmatrix/forks","keys_url":"https://api.github.com/repos/mstksg/hmatrix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mstksg/hmatrix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mstksg/hmatrix/teams","hooks_url":"https://api.github.com/repos/mstksg/hmatrix/hooks","issue_events_url":"https://api.github.com/repos/mstksg/hmatrix/issues/events{/number}","events_url":"https://api.github.com/repos/mstksg/hmatrix/events","assignees_url":"https://api.github.com/repos/mstksg/hmatrix/assignees{/user}","branches_url":"https://api.github.com/repos/mstksg/hmatrix/branches{/branch}","tags_url":"https://api.github.com/repos/mstksg/hmatrix/tags","blobs_url":"https://api.github.com/repos/mstksg/hmatrix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mstksg/hmatrix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mstksg/hmatrix/git/refs{/sha}","trees_url":"https://api.github.com/repos/mstksg/hmatrix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mstksg/hmatrix/statuses/{sha}","languages_url":"https://api.github.com/repos/mstksg/hmatrix/languages","stargazers_url":"https://api.github.com/repos/mstksg/hmatrix/stargazers","contributors_url":"https://api.github.com/repos/mstksg/hmatrix/contributors","subscribers_url":"https://api.github.com/repos/mstksg/hmatrix/subscribers","subscription_url":"https://api.github.com/repos/mstksg/hmatrix/subscription","commits_url":"https://api.github.com/repos/mstksg/hmatrix/commits{/sha}","git_commits_url":"https://api.github.com/repos/mstksg/hmatrix/git/commits{/sha}","comments_url":"https://api.github.com/repos/mstksg/hmatrix/comments{/number}","issue_comment_url":"https://api.github.com/repos/mstksg/hmatrix/issues/comments{/number}","contents_url":"https://api.github.com/repos/mstksg/hmatrix/contents/{+path}","compare_url":"https://api.github.com/repos/mstksg/hmatrix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mstksg/hmatrix/merges","archive_url":"https://api.github.com/repos/mstksg/hmatrix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mstksg/hmatrix/downloads","issues_url":"https://api.github.com/repos/mstksg/hmatrix/issues{/number}","pulls_url":"https://api.github.com/repos/mstksg/hmatrix/pulls{/number}","milestones_url":"https://api.github.com/repos/mstksg/hmatrix/milestones{/number}","notifications_url":"https://api.github.com/repos/mstksg/hmatrix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mstksg/hmatrix/labels{/name}","releases_url":"https://api.github.com/repos/mstksg/hmatrix/releases{/id}","deployments_url":"https://api.github.com/repos/mstksg/hmatrix/deployments","created_at":"2015-12-19T10:53:18Z","updated_at":"2016-01-11T12:34:27Z","pushed_at":"2016-05-25T16:43:25Z","git_url":"git://github.com/mstksg/hmatrix.git","ssh_url":"git@github.com:mstksg/hmatrix.git","clone_url":"https://github.com/mstksg/hmatrix.git","svn_url":"https://github.com/mstksg/hmatrix","homepage":"","size":3830,"stargazers_count":0,"watchers_count":0,"language":"Haskell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"albertoruiz:master","ref":"master","sha":"42a88fbcb6bd1d2c4dc18fae5e962bd34fb316a1","user":{"login":"albertoruiz","id":739735,"avatar_url":"https://avatars.githubusercontent.com/u/739735?v=3","gravatar_id":"","url":"https://api.github.com/users/albertoruiz","html_url":"https://github.com/albertoruiz","followers_url":"https://api.github.com/users/albertoruiz/followers","following_url":"https://api.github.com/users/albertoruiz/following{/other_user}","gists_url":"https://api.github.com/users/albertoruiz/gists{/gist_id}","starred_url":"https://api.github.com/users/albertoruiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertoruiz/subscriptions","organizations_url":"https://api.github.com/users/albertoruiz/orgs","repos_url":"https://api.github.com/users/albertoruiz/repos","events_url":"https://api.github.com/users/albertoruiz/events{/privacy}","received_events_url":"https://api.github.com/users/albertoruiz/received_events","type":"User","site_admin":false},"repo":{"id":2935325,"name":"hmatrix","full_name":"albertoruiz/hmatrix","owner":{"login":"albertoruiz","id":739735,"avatar_url":"https://avatars.githubusercontent.com/u/739735?v=3","gravatar_id":"","url":"https://api.github.com/users/albertoruiz","html_url":"https://github.com/albertoruiz","followers_url":"https://api.github.com/users/albertoruiz/followers","following_url":"https://api.github.com/users/albertoruiz/following{/other_user}","gists_url":"https://api.github.com/users/albertoruiz/gists{/gist_id}","starred_url":"https://api.github.com/users/albertoruiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertoruiz/subscriptions","organizations_url":"https://api.github.com/users/albertoruiz/orgs","repos_url":"https://api.github.com/users/albertoruiz/repos","events_url":"https://api.github.com/users/albertoruiz/events{/privacy}","received_events_url":"https://api.github.com/users/albertoruiz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/albertoruiz/hmatrix","description":"Linear algebra and numerical computation","fork":false,"url":"https://api.github.com/repos/albertoruiz/hmatrix","forks_url":"https://api.github.com/repos/albertoruiz/hmatrix/forks","keys_url":"https://api.github.com/repos/albertoruiz/hmatrix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/albertoruiz/hmatrix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/albertoruiz/hmatrix/teams","hooks_url":"https://api.github.com/repos/albertoruiz/hmatrix/hooks","issue_events_url":"https://api.github.com/repos/albertoruiz/hmatrix/issues/events{/number}","events_url":"https://api.github.com/repos/albertoruiz/hmatrix/events","assignees_url":"https://api.github.com/repos/albertoruiz/hmatrix/assignees{/user}","branches_url":"https://api.github.com/repos/albertoruiz/hmatrix/branches{/branch}","tags_url":"https://api.github.com/repos/albertoruiz/hmatrix/tags","blobs_url":"https://api.github.com/repos/albertoruiz/hmatrix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/albertoruiz/hmatrix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/albertoruiz/hmatrix/git/refs{/sha}","trees_url":"https://api.github.com/repos/albertoruiz/hmatrix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/albertoruiz/hmatrix/statuses/{sha}","languages_url":"https://api.github.com/repos/albertoruiz/hmatrix/languages","stargazers_url":"https://api.github.com/repos/albertoruiz/hmatrix/stargazers","contributors_url":"https://api.github.com/repos/albertoruiz/hmatrix/contributors","subscribers_url":"https://api.github.com/repos/albertoruiz/hmatrix/subscribers","subscription_url":"https://api.github.com/repos/albertoruiz/hmatrix/subscription","commits_url":"https://api.github.com/repos/albertoruiz/hmatrix/commits{/sha}","git_commits_url":"https://api.github.com/repos/albertoruiz/hmatrix/git/commits{/sha}","comments_url":"https://api.github.com/repos/albertoruiz/hmatrix/comments{/number}","issue_comment_url":"https://api.github.com/repos/albertoruiz/hmatrix/issues/comments{/number}","contents_url":"https://api.github.com/repos/albertoruiz/hmatrix/contents/{+path}","compare_url":"https://api.github.com/repos/albertoruiz/hmatrix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/albertoruiz/hmatrix/merges","archive_url":"https://api.github.com/repos/albertoruiz/hmatrix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/albertoruiz/hmatrix/downloads","issues_url":"https://api.github.com/repos/albertoruiz/hmatrix/issues{/number}","pulls_url":"https://api.github.com/repos/albertoruiz/hmatrix/pulls{/number}","milestones_url":"https://api.github.com/repos/albertoruiz/hmatrix/milestones{/number}","notifications_url":"https://api.github.com/repos/albertoruiz/hmatrix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/albertoruiz/hmatrix/labels{/name}","releases_url":"https://api.github.com/repos/albertoruiz/hmatrix/releases{/id}","deployments_url":"https://api.github.com/repos/albertoruiz/hmatrix/deployments","created_at":"2011-12-07T20:11:51Z","updated_at":"2016-05-15T11:10:33Z","pushed_at":"2016-05-02T18:10:02Z","git_url":"git://github.com/albertoruiz/hmatrix.git","ssh_url":"git@github.com:albertoruiz/hmatrix.git","clone_url":"https://github.com/albertoruiz/hmatrix.git","svn_url":"https://github.com/albertoruiz/hmatrix","homepage":"","size":3295,"stargazers_count":198,"watchers_count":198,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":61,"mirror_url":null,"open_issues_count":25,"forks":61,"open_issues":25,"watchers":198,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/albertoruiz/hmatrix/pulls/191"},"html":{"href":"https://github.com/albertoruiz/hmatrix/pull/191"},"issue":{"href":"https://api.github.com/repos/albertoruiz/hmatrix/issues/191"},"comments":{"href":"https://api.github.com/repos/albertoruiz/hmatrix/issues/191/comments"},"review_comments":{"href":"https://api.github.com/repos/albertoruiz/hmatrix/pulls/191/comments"},"review_comment":{"href":"https://api.github.com/repos/albertoruiz/hmatrix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/albertoruiz/hmatrix/pulls/191/commits"},"statuses":{"href":"https://api.github.com/repos/albertoruiz/hmatrix/statuses/cd6caa8f08e686fd4a90dae5f3414264aa2700a0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":7,"additions":81,"deletions":14,"changed_files":2}}
{"actor":{"display_login":"mstksg"}}