{"action":"created","comment":{"url":"https://api.github.com/repos/AtheMathmo/rulinalg/pulls/comments/80803907","pull_request_review_id":1833432,"id":80803907,"diff_hunk":"@@ -0,0 +1,53 @@\n+use libnum::{One, Zero};\n+\n+use sparse_matrix::compressed_matrix::CompressedMatrix;\n+\n+fn expand_ptrs_indices_values<C>(ptrs: &[usize], mut closure: C)\n+    where C: FnMut(usize, usize)\n+{\n+    for idx in (0..(ptrs.len() - 1)).rev() {\n+        let greater_ptr = ptrs[idx + 1];\n+        let lesser_ptr = ptrs[idx];\n+        for value in (lesser_ptr..greater_ptr).rev() {\n+            closure(idx, value)\n+        }\n+    }\n+}\n+\n+pub fn transpose<M, T>(compressed_matrix: &M, ptrs_size: usize) -> (Vec<usize>, Vec<usize>, Vec<T>)","path":"src/sparse_matrix/compressed_matrix/compressed_matrix_utils.rs","position":15,"original_position":17,"commit_id":"cfb7abbba187c0c35ab2c3df0b4fd725a64c5709","original_commit_id":"0e32cd8f25dae8917dd813a428e7356a292a704f","user":{"login":"AtheMathmo","id":10150986,"avatar_url":"https://avatars.githubusercontent.com/u/10150986?v=3","gravatar_id":"","url":"https://api.github.com/users/AtheMathmo","html_url":"https://github.com/AtheMathmo","followers_url":"https://api.github.com/users/AtheMathmo/followers","following_url":"https://api.github.com/users/AtheMathmo/following{/other_user}","gists_url":"https://api.github.com/users/AtheMathmo/gists{/gist_id}","starred_url":"https://api.github.com/users/AtheMathmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AtheMathmo/subscriptions","organizations_url":"https://api.github.com/users/AtheMathmo/orgs","repos_url":"https://api.github.com/users/AtheMathmo/repos","events_url":"https://api.github.com/users/AtheMathmo/events{/privacy}","received_events_url":"https://api.github.com/users/AtheMathmo/received_events","type":"User","site_admin":false},"body":"I'm not sure how either without something hacks like an associated type with a marker (I.e. csc has a csr associated type). Even that might not work.\r\n\r\nI'll see if I can figure something out tomorrow...","created_at":"2016-09-27T21:51:10Z","updated_at":"2016-09-27T21:51:10Z","html_url":"https://github.com/AtheMathmo/rulinalg/pull/51#discussion_r80803907","pull_request_url":"https://api.github.com/repos/AtheMathmo/rulinalg/pulls/51","_links":{"self":{"href":"https://api.github.com/repos/AtheMathmo/rulinalg/pulls/comments/80803907"},"html":{"href":"https://github.com/AtheMathmo/rulinalg/pull/51#discussion_r80803907"},"pull_request":{"href":"https://api.github.com/repos/AtheMathmo/rulinalg/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/AtheMathmo/rulinalg/pulls/51","id":86651839,"html_url":"https://github.com/AtheMathmo/rulinalg/pull/51","diff_url":"https://github.com/AtheMathmo/rulinalg/pull/51.diff","patch_url":"https://github.com/AtheMathmo/rulinalg/pull/51.patch","issue_url":"https://api.github.com/repos/AtheMathmo/rulinalg/issues/51","number":51,"state":"open","locked":false,"title":"Sparse matrix (COO, CSC, CSR) implementations","user":{"login":"c410-f3r","id":17877264,"avatar_url":"https://avatars.githubusercontent.com/u/17877264?v=3","gravatar_id":"","url":"https://api.github.com/users/c410-f3r","html_url":"https://github.com/c410-f3r","followers_url":"https://api.github.com/users/c410-f3r/followers","following_url":"https://api.github.com/users/c410-f3r/following{/other_user}","gists_url":"https://api.github.com/users/c410-f3r/gists{/gist_id}","starred_url":"https://api.github.com/users/c410-f3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c410-f3r/subscriptions","organizations_url":"https://api.github.com/users/c410-f3r/orgs","repos_url":"https://api.github.com/users/c410-f3r/repos","events_url":"https://api.github.com/users/c410-f3r/events{/privacy}","received_events_url":"https://api.github.com/users/c410-f3r/received_events","type":"User","site_admin":false},"body":"This initial pull request is intended to discussion the viability of sparse matrix implementations and code review","created_at":"2016-09-25T14:41:32Z","updated_at":"2016-09-27T21:51:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fffcdf815f63ff57b20698e096f51ea82318a784","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/AtheMathmo/rulinalg/pulls/51/commits","review_comments_url":"https://api.github.com/repos/AtheMathmo/rulinalg/pulls/51/comments","review_comment_url":"https://api.github.com/repos/AtheMathmo/rulinalg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AtheMathmo/rulinalg/issues/51/comments","statuses_url":"https://api.github.com/repos/AtheMathmo/rulinalg/statuses/cfb7abbba187c0c35ab2c3df0b4fd725a64c5709","head":{"label":"c410-f3r:master","ref":"master","sha":"cfb7abbba187c0c35ab2c3df0b4fd725a64c5709","user":{"login":"c410-f3r","id":17877264,"avatar_url":"https://avatars.githubusercontent.com/u/17877264?v=3","gravatar_id":"","url":"https://api.github.com/users/c410-f3r","html_url":"https://github.com/c410-f3r","followers_url":"https://api.github.com/users/c410-f3r/followers","following_url":"https://api.github.com/users/c410-f3r/following{/other_user}","gists_url":"https://api.github.com/users/c410-f3r/gists{/gist_id}","starred_url":"https://api.github.com/users/c410-f3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c410-f3r/subscriptions","organizations_url":"https://api.github.com/users/c410-f3r/orgs","repos_url":"https://api.github.com/users/c410-f3r/repos","events_url":"https://api.github.com/users/c410-f3r/events{/privacy}","received_events_url":"https://api.github.com/users/c410-f3r/received_events","type":"User","site_admin":false},"repo":{"id":69169072,"name":"rulinalg","full_name":"c410-f3r/rulinalg","owner":{"login":"c410-f3r","id":17877264,"avatar_url":"https://avatars.githubusercontent.com/u/17877264?v=3","gravatar_id":"","url":"https://api.github.com/users/c410-f3r","html_url":"https://github.com/c410-f3r","followers_url":"https://api.github.com/users/c410-f3r/followers","following_url":"https://api.github.com/users/c410-f3r/following{/other_user}","gists_url":"https://api.github.com/users/c410-f3r/gists{/gist_id}","starred_url":"https://api.github.com/users/c410-f3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c410-f3r/subscriptions","organizations_url":"https://api.github.com/users/c410-f3r/orgs","repos_url":"https://api.github.com/users/c410-f3r/repos","events_url":"https://api.github.com/users/c410-f3r/events{/privacy}","received_events_url":"https://api.github.com/users/c410-f3r/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/c410-f3r/rulinalg","description":"A linear algebra library in Rust designed for machine learning","fork":true,"url":"https://api.github.com/repos/c410-f3r/rulinalg","forks_url":"https://api.github.com/repos/c410-f3r/rulinalg/forks","keys_url":"https://api.github.com/repos/c410-f3r/rulinalg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/c410-f3r/rulinalg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/c410-f3r/rulinalg/teams","hooks_url":"https://api.github.com/repos/c410-f3r/rulinalg/hooks","issue_events_url":"https://api.github.com/repos/c410-f3r/rulinalg/issues/events{/number}","events_url":"https://api.github.com/repos/c410-f3r/rulinalg/events","assignees_url":"https://api.github.com/repos/c410-f3r/rulinalg/assignees{/user}","branches_url":"https://api.github.com/repos/c410-f3r/rulinalg/branches{/branch}","tags_url":"https://api.github.com/repos/c410-f3r/rulinalg/tags","blobs_url":"https://api.github.com/repos/c410-f3r/rulinalg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/c410-f3r/rulinalg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/c410-f3r/rulinalg/git/refs{/sha}","trees_url":"https://api.github.com/repos/c410-f3r/rulinalg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/c410-f3r/rulinalg/statuses/{sha}","languages_url":"https://api.github.com/repos/c410-f3r/rulinalg/languages","stargazers_url":"https://api.github.com/repos/c410-f3r/rulinalg/stargazers","contributors_url":"https://api.github.com/repos/c410-f3r/rulinalg/contributors","subscribers_url":"https://api.github.com/repos/c410-f3r/rulinalg/subscribers","subscription_url":"https://api.github.com/repos/c410-f3r/rulinalg/subscription","commits_url":"https://api.github.com/repos/c410-f3r/rulinalg/commits{/sha}","git_commits_url":"https://api.github.com/repos/c410-f3r/rulinalg/git/commits{/sha}","comments_url":"https://api.github.com/repos/c410-f3r/rulinalg/comments{/number}","issue_comment_url":"https://api.github.com/repos/c410-f3r/rulinalg/issues/comments{/number}","contents_url":"https://api.github.com/repos/c410-f3r/rulinalg/contents/{+path}","compare_url":"https://api.github.com/repos/c410-f3r/rulinalg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/c410-f3r/rulinalg/merges","archive_url":"https://api.github.com/repos/c410-f3r/rulinalg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/c410-f3r/rulinalg/downloads","issues_url":"https://api.github.com/repos/c410-f3r/rulinalg/issues{/number}","pulls_url":"https://api.github.com/repos/c410-f3r/rulinalg/pulls{/number}","milestones_url":"https://api.github.com/repos/c410-f3r/rulinalg/milestones{/number}","notifications_url":"https://api.github.com/repos/c410-f3r/rulinalg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/c410-f3r/rulinalg/labels{/name}","releases_url":"https://api.github.com/repos/c410-f3r/rulinalg/releases{/id}","deployments_url":"https://api.github.com/repos/c410-f3r/rulinalg/deployments","created_at":"2016-09-25T14:25:24Z","updated_at":"2016-09-25T14:25:25Z","pushed_at":"2016-09-27T21:45:58Z","git_url":"git://github.com/c410-f3r/rulinalg.git","ssh_url":"git@github.com:c410-f3r/rulinalg.git","clone_url":"https://github.com/c410-f3r/rulinalg.git","svn_url":"https://github.com/c410-f3r/rulinalg","homepage":"https://crates.io/crates/rulinalg","size":1307,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"AtheMathmo:master","ref":"master","sha":"4ef46b64116b8c0c23046f25929019cb9c3a6a2f","user":{"login":"AtheMathmo","id":10150986,"avatar_url":"https://avatars.githubusercontent.com/u/10150986?v=3","gravatar_id":"","url":"https://api.github.com/users/AtheMathmo","html_url":"https://github.com/AtheMathmo","followers_url":"https://api.github.com/users/AtheMathmo/followers","following_url":"https://api.github.com/users/AtheMathmo/following{/other_user}","gists_url":"https://api.github.com/users/AtheMathmo/gists{/gist_id}","starred_url":"https://api.github.com/users/AtheMathmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AtheMathmo/subscriptions","organizations_url":"https://api.github.com/users/AtheMathmo/orgs","repos_url":"https://api.github.com/users/AtheMathmo/repos","events_url":"https://api.github.com/users/AtheMathmo/events{/privacy}","received_events_url":"https://api.github.com/users/AtheMathmo/received_events","type":"User","site_admin":false},"repo":{"id":62955795,"name":"rulinalg","full_name":"AtheMathmo/rulinalg","owner":{"login":"AtheMathmo","id":10150986,"avatar_url":"https://avatars.githubusercontent.com/u/10150986?v=3","gravatar_id":"","url":"https://api.github.com/users/AtheMathmo","html_url":"https://github.com/AtheMathmo","followers_url":"https://api.github.com/users/AtheMathmo/followers","following_url":"https://api.github.com/users/AtheMathmo/following{/other_user}","gists_url":"https://api.github.com/users/AtheMathmo/gists{/gist_id}","starred_url":"https://api.github.com/users/AtheMathmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AtheMathmo/subscriptions","organizations_url":"https://api.github.com/users/AtheMathmo/orgs","repos_url":"https://api.github.com/users/AtheMathmo/repos","events_url":"https://api.github.com/users/AtheMathmo/events{/privacy}","received_events_url":"https://api.github.com/users/AtheMathmo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AtheMathmo/rulinalg","description":"A linear algebra library in Rust designed for machine learning","fork":false,"url":"https://api.github.com/repos/AtheMathmo/rulinalg","forks_url":"https://api.github.com/repos/AtheMathmo/rulinalg/forks","keys_url":"https://api.github.com/repos/AtheMathmo/rulinalg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AtheMathmo/rulinalg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AtheMathmo/rulinalg/teams","hooks_url":"https://api.github.com/repos/AtheMathmo/rulinalg/hooks","issue_events_url":"https://api.github.com/repos/AtheMathmo/rulinalg/issues/events{/number}","events_url":"https://api.github.com/repos/AtheMathmo/rulinalg/events","assignees_url":"https://api.github.com/repos/AtheMathmo/rulinalg/assignees{/user}","branches_url":"https://api.github.com/repos/AtheMathmo/rulinalg/branches{/branch}","tags_url":"https://api.github.com/repos/AtheMathmo/rulinalg/tags","blobs_url":"https://api.github.com/repos/AtheMathmo/rulinalg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AtheMathmo/rulinalg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AtheMathmo/rulinalg/git/refs{/sha}","trees_url":"https://api.github.com/repos/AtheMathmo/rulinalg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AtheMathmo/rulinalg/statuses/{sha}","languages_url":"https://api.github.com/repos/AtheMathmo/rulinalg/languages","stargazers_url":"https://api.github.com/repos/AtheMathmo/rulinalg/stargazers","contributors_url":"https://api.github.com/repos/AtheMathmo/rulinalg/contributors","subscribers_url":"https://api.github.com/repos/AtheMathmo/rulinalg/subscribers","subscription_url":"https://api.github.com/repos/AtheMathmo/rulinalg/subscription","commits_url":"https://api.github.com/repos/AtheMathmo/rulinalg/commits{/sha}","git_commits_url":"https://api.github.com/repos/AtheMathmo/rulinalg/git/commits{/sha}","comments_url":"https://api.github.com/repos/AtheMathmo/rulinalg/comments{/number}","issue_comment_url":"https://api.github.com/repos/AtheMathmo/rulinalg/issues/comments{/number}","contents_url":"https://api.github.com/repos/AtheMathmo/rulinalg/contents/{+path}","compare_url":"https://api.github.com/repos/AtheMathmo/rulinalg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AtheMathmo/rulinalg/merges","archive_url":"https://api.github.com/repos/AtheMathmo/rulinalg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AtheMathmo/rulinalg/downloads","issues_url":"https://api.github.com/repos/AtheMathmo/rulinalg/issues{/number}","pulls_url":"https://api.github.com/repos/AtheMathmo/rulinalg/pulls{/number}","milestones_url":"https://api.github.com/repos/AtheMathmo/rulinalg/milestones{/number}","notifications_url":"https://api.github.com/repos/AtheMathmo/rulinalg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AtheMathmo/rulinalg/labels{/name}","releases_url":"https://api.github.com/repos/AtheMathmo/rulinalg/releases{/id}","deployments_url":"https://api.github.com/repos/AtheMathmo/rulinalg/deployments","created_at":"2016-07-09T15:27:53Z","updated_at":"2016-09-26T20:35:31Z","pushed_at":"2016-09-27T21:45:58Z","git_url":"git://github.com/AtheMathmo/rulinalg.git","ssh_url":"git@github.com:AtheMathmo/rulinalg.git","clone_url":"https://github.com/AtheMathmo/rulinalg.git","svn_url":"https://github.com/AtheMathmo/rulinalg","homepage":"https://crates.io/crates/rulinalg","size":1457,"stargazers_count":67,"watchers_count":67,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":14,"mirror_url":null,"open_issues_count":21,"forks":14,"open_issues":21,"watchers":67,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AtheMathmo/rulinalg/pulls/51"},"html":{"href":"https://github.com/AtheMathmo/rulinalg/pull/51"},"issue":{"href":"https://api.github.com/repos/AtheMathmo/rulinalg/issues/51"},"comments":{"href":"https://api.github.com/repos/AtheMathmo/rulinalg/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/AtheMathmo/rulinalg/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/AtheMathmo/rulinalg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AtheMathmo/rulinalg/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/AtheMathmo/rulinalg/statuses/cfb7abbba187c0c35ab2c3df0b4fd725a64c5709"}}}}
{"actor":{"display_login":"AtheMathmo"}}