{"action":"created","comment":{"url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/comments/28311186","id":28311186,"diff_hunk":"@@ -51,6 +51,30 @@ SGMatrix<T>::SGMatrix(index_t nrows, index_t ncols, bool ref_counting)\n }\n \n template <class T>\n+SGMatrix<T>::SGMatrix(SGVector<T> vec) : SGReferencedData(vec)","path":"src/shogun/lib/SGMatrix.cpp","position":4,"original_position":4,"commit_id":"ba0cbf235efc3ef0bd1d4dc5ef579cda6e370094","original_commit_id":"ba0cbf235efc3ef0bd1d4dc5ef579cda6e370094","user":{"login":"karlnapf","id":699071,"avatar_url":"https://avatars.githubusercontent.com/u/699071?v=3","gravatar_id":"","url":"https://api.github.com/users/karlnapf","html_url":"https://github.com/karlnapf","followers_url":"https://api.github.com/users/karlnapf/followers","following_url":"https://api.github.com/users/karlnapf/following{/other_user}","gists_url":"https://api.github.com/users/karlnapf/gists{/gist_id}","starred_url":"https://api.github.com/users/karlnapf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlnapf/subscriptions","organizations_url":"https://api.github.com/users/karlnapf/orgs","repos_url":"https://api.github.com/users/karlnapf/repos","events_url":"https://api.github.com/users/karlnapf/events{/privacy}","received_events_url":"https://api.github.com/users/karlnapf/received_events","type":"User","site_admin":false},"body":"+1","created_at":"2015-04-14T09:11:13Z","updated_at":"2015-04-14T09:11:13Z","html_url":"https://github.com/shogun-toolbox/shogun/pull/2814#discussion_r28311186","pull_request_url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/2814","_links":{"self":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/comments/28311186"},"html":{"href":"https://github.com/shogun-toolbox/shogun/pull/2814#discussion_r28311186"},"pull_request":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/2814"}}},"pull_request":{"url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/2814","id":33018083,"html_url":"https://github.com/shogun-toolbox/shogun/pull/2814","diff_url":"https://github.com/shogun-toolbox/shogun/pull/2814.diff","patch_url":"https://github.com/shogun-toolbox/shogun/pull/2814.patch","issue_url":"https://api.github.com/repos/shogun-toolbox/shogun/issues/2814","number":2814,"state":"closed","locked":false,"title":"Added two constructors in SGMatrix with SGVectors","user":{"login":"lambday","id":3088401,"avatar_url":"https://avatars.githubusercontent.com/u/3088401?v=3","gravatar_id":"","url":"https://api.github.com/users/lambday","html_url":"https://github.com/lambday","followers_url":"https://api.github.com/users/lambday/followers","following_url":"https://api.github.com/users/lambday/following{/other_user}","gists_url":"https://api.github.com/users/lambday/gists{/gist_id}","starred_url":"https://api.github.com/users/lambday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lambday/subscriptions","organizations_url":"https://api.github.com/users/lambday/orgs","repos_url":"https://api.github.com/users/lambday/repos","events_url":"https://api.github.com/users/lambday/events{/privacy}","received_events_url":"https://api.github.com/users/lambday/received_events","type":"User","site_admin":false},"body":"- Both copy the refcount of the SGVector to make sure that memory\r\n  is not accidentally deleted. Therefore we don't have to turn off\r\n  refcount for the SGMatrix as well","created_at":"2015-04-10T04:50:46Z","updated_at":"2015-04-14T09:11:13Z","closed_at":"2015-04-14T08:55:34Z","merged_at":"2015-04-14T08:55:34Z","merge_commit_sha":"7314eb98523a8e2fdca1fe0afba478bc444af565","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/2814/commits","review_comments_url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/2814/comments","review_comment_url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shogun-toolbox/shogun/issues/2814/comments","statuses_url":"https://api.github.com/repos/shogun-toolbox/shogun/statuses/ba0cbf235efc3ef0bd1d4dc5ef579cda6e370094","head":{"label":"lambday:develop","ref":"develop","sha":"ba0cbf235efc3ef0bd1d4dc5ef579cda6e370094","user":{"login":"lambday","id":3088401,"avatar_url":"https://avatars.githubusercontent.com/u/3088401?v=3","gravatar_id":"","url":"https://api.github.com/users/lambday","html_url":"https://github.com/lambday","followers_url":"https://api.github.com/users/lambday/followers","following_url":"https://api.github.com/users/lambday/following{/other_user}","gists_url":"https://api.github.com/users/lambday/gists{/gist_id}","starred_url":"https://api.github.com/users/lambday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lambday/subscriptions","organizations_url":"https://api.github.com/users/lambday/orgs","repos_url":"https://api.github.com/users/lambday/repos","events_url":"https://api.github.com/users/lambday/events{/privacy}","received_events_url":"https://api.github.com/users/lambday/received_events","type":"User","site_admin":false},"repo":{"id":8764626,"name":"shogun","full_name":"lambday/shogun","owner":{"login":"lambday","id":3088401,"avatar_url":"https://avatars.githubusercontent.com/u/3088401?v=3","gravatar_id":"","url":"https://api.github.com/users/lambday","html_url":"https://github.com/lambday","followers_url":"https://api.github.com/users/lambday/followers","following_url":"https://api.github.com/users/lambday/following{/other_user}","gists_url":"https://api.github.com/users/lambday/gists{/gist_id}","starred_url":"https://api.github.com/users/lambday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lambday/subscriptions","organizations_url":"https://api.github.com/users/lambday/orgs","repos_url":"https://api.github.com/users/lambday/repos","events_url":"https://api.github.com/users/lambday/events{/privacy}","received_events_url":"https://api.github.com/users/lambday/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lambday/shogun","description":"The Shogun Machine Learning Toolbox (Source Code)","fork":true,"url":"https://api.github.com/repos/lambday/shogun","forks_url":"https://api.github.com/repos/lambday/shogun/forks","keys_url":"https://api.github.com/repos/lambday/shogun/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lambday/shogun/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lambday/shogun/teams","hooks_url":"https://api.github.com/repos/lambday/shogun/hooks","issue_events_url":"https://api.github.com/repos/lambday/shogun/issues/events{/number}","events_url":"https://api.github.com/repos/lambday/shogun/events","assignees_url":"https://api.github.com/repos/lambday/shogun/assignees{/user}","branches_url":"https://api.github.com/repos/lambday/shogun/branches{/branch}","tags_url":"https://api.github.com/repos/lambday/shogun/tags","blobs_url":"https://api.github.com/repos/lambday/shogun/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lambday/shogun/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lambday/shogun/git/refs{/sha}","trees_url":"https://api.github.com/repos/lambday/shogun/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lambday/shogun/statuses/{sha}","languages_url":"https://api.github.com/repos/lambday/shogun/languages","stargazers_url":"https://api.github.com/repos/lambday/shogun/stargazers","contributors_url":"https://api.github.com/repos/lambday/shogun/contributors","subscribers_url":"https://api.github.com/repos/lambday/shogun/subscribers","subscription_url":"https://api.github.com/repos/lambday/shogun/subscription","commits_url":"https://api.github.com/repos/lambday/shogun/commits{/sha}","git_commits_url":"https://api.github.com/repos/lambday/shogun/git/commits{/sha}","comments_url":"https://api.github.com/repos/lambday/shogun/comments{/number}","issue_comment_url":"https://api.github.com/repos/lambday/shogun/issues/comments{/number}","contents_url":"https://api.github.com/repos/lambday/shogun/contents/{+path}","compare_url":"https://api.github.com/repos/lambday/shogun/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lambday/shogun/merges","archive_url":"https://api.github.com/repos/lambday/shogun/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lambday/shogun/downloads","issues_url":"https://api.github.com/repos/lambday/shogun/issues{/number}","pulls_url":"https://api.github.com/repos/lambday/shogun/pulls{/number}","milestones_url":"https://api.github.com/repos/lambday/shogun/milestones{/number}","notifications_url":"https://api.github.com/repos/lambday/shogun/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lambday/shogun/labels{/name}","releases_url":"https://api.github.com/repos/lambday/shogun/releases{/id}","created_at":"2013-03-14T00:22:35Z","updated_at":"2015-04-14T03:00:06Z","pushed_at":"2015-04-14T03:38:13Z","git_url":"git://github.com/lambday/shogun.git","ssh_url":"git@github.com:lambday/shogun.git","clone_url":"https://github.com/lambday/shogun.git","svn_url":"https://github.com/lambday/shogun","homepage":"http://www.shogun-toolbox.org","size":52065,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"develop"}},"base":{"label":"shogun-toolbox:develop","ref":"develop","sha":"d880fe67ca37c685591ce0b77e5e55bec74cb1cc","user":{"login":"shogun-toolbox","id":690673,"avatar_url":"https://avatars.githubusercontent.com/u/690673?v=3","gravatar_id":"","url":"https://api.github.com/users/shogun-toolbox","html_url":"https://github.com/shogun-toolbox","followers_url":"https://api.github.com/users/shogun-toolbox/followers","following_url":"https://api.github.com/users/shogun-toolbox/following{/other_user}","gists_url":"https://api.github.com/users/shogun-toolbox/gists{/gist_id}","starred_url":"https://api.github.com/users/shogun-toolbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shogun-toolbox/subscriptions","organizations_url":"https://api.github.com/users/shogun-toolbox/orgs","repos_url":"https://api.github.com/users/shogun-toolbox/repos","events_url":"https://api.github.com/users/shogun-toolbox/events{/privacy}","received_events_url":"https://api.github.com/users/shogun-toolbox/received_events","type":"Organization","site_admin":false},"repo":{"id":1555094,"name":"shogun","full_name":"shogun-toolbox/shogun","owner":{"login":"shogun-toolbox","id":690673,"avatar_url":"https://avatars.githubusercontent.com/u/690673?v=3","gravatar_id":"","url":"https://api.github.com/users/shogun-toolbox","html_url":"https://github.com/shogun-toolbox","followers_url":"https://api.github.com/users/shogun-toolbox/followers","following_url":"https://api.github.com/users/shogun-toolbox/following{/other_user}","gists_url":"https://api.github.com/users/shogun-toolbox/gists{/gist_id}","starred_url":"https://api.github.com/users/shogun-toolbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shogun-toolbox/subscriptions","organizations_url":"https://api.github.com/users/shogun-toolbox/orgs","repos_url":"https://api.github.com/users/shogun-toolbox/repos","events_url":"https://api.github.com/users/shogun-toolbox/events{/privacy}","received_events_url":"https://api.github.com/users/shogun-toolbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shogun-toolbox/shogun","description":"The Shogun Machine Learning Toolbox (Source Code)","fork":false,"url":"https://api.github.com/repos/shogun-toolbox/shogun","forks_url":"https://api.github.com/repos/shogun-toolbox/shogun/forks","keys_url":"https://api.github.com/repos/shogun-toolbox/shogun/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shogun-toolbox/shogun/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shogun-toolbox/shogun/teams","hooks_url":"https://api.github.com/repos/shogun-toolbox/shogun/hooks","issue_events_url":"https://api.github.com/repos/shogun-toolbox/shogun/issues/events{/number}","events_url":"https://api.github.com/repos/shogun-toolbox/shogun/events","assignees_url":"https://api.github.com/repos/shogun-toolbox/shogun/assignees{/user}","branches_url":"https://api.github.com/repos/shogun-toolbox/shogun/branches{/branch}","tags_url":"https://api.github.com/repos/shogun-toolbox/shogun/tags","blobs_url":"https://api.github.com/repos/shogun-toolbox/shogun/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shogun-toolbox/shogun/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shogun-toolbox/shogun/git/refs{/sha}","trees_url":"https://api.github.com/repos/shogun-toolbox/shogun/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shogun-toolbox/shogun/statuses/{sha}","languages_url":"https://api.github.com/repos/shogun-toolbox/shogun/languages","stargazers_url":"https://api.github.com/repos/shogun-toolbox/shogun/stargazers","contributors_url":"https://api.github.com/repos/shogun-toolbox/shogun/contributors","subscribers_url":"https://api.github.com/repos/shogun-toolbox/shogun/subscribers","subscription_url":"https://api.github.com/repos/shogun-toolbox/shogun/subscription","commits_url":"https://api.github.com/repos/shogun-toolbox/shogun/commits{/sha}","git_commits_url":"https://api.github.com/repos/shogun-toolbox/shogun/git/commits{/sha}","comments_url":"https://api.github.com/repos/shogun-toolbox/shogun/comments{/number}","issue_comment_url":"https://api.github.com/repos/shogun-toolbox/shogun/issues/comments{/number}","contents_url":"https://api.github.com/repos/shogun-toolbox/shogun/contents/{+path}","compare_url":"https://api.github.com/repos/shogun-toolbox/shogun/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shogun-toolbox/shogun/merges","archive_url":"https://api.github.com/repos/shogun-toolbox/shogun/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shogun-toolbox/shogun/downloads","issues_url":"https://api.github.com/repos/shogun-toolbox/shogun/issues{/number}","pulls_url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls{/number}","milestones_url":"https://api.github.com/repos/shogun-toolbox/shogun/milestones{/number}","notifications_url":"https://api.github.com/repos/shogun-toolbox/shogun/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shogun-toolbox/shogun/labels{/name}","releases_url":"https://api.github.com/repos/shogun-toolbox/shogun/releases{/id}","created_at":"2011-04-01T10:44:32Z","updated_at":"2015-04-14T08:55:35Z","pushed_at":"2015-04-14T08:55:35Z","git_url":"git://github.com/shogun-toolbox/shogun.git","ssh_url":"git@github.com:shogun-toolbox/shogun.git","clone_url":"https://github.com/shogun-toolbox/shogun.git","svn_url":"https://github.com/shogun-toolbox/shogun","homepage":"http://www.shogun-toolbox.org","size":192874,"stargazers_count":749,"watchers_count":749,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":442,"mirror_url":null,"open_issues_count":360,"forks":442,"open_issues":360,"watchers":749,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/2814"},"html":{"href":"https://github.com/shogun-toolbox/shogun/pull/2814"},"issue":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/issues/2814"},"comments":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/issues/2814/comments"},"review_comments":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/2814/comments"},"review_comment":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/2814/commits"},"statuses":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/statuses/ba0cbf235efc3ef0bd1d4dc5ef579cda6e370094"}}}}