{"action":"created","comment":{"url":"https://api.github.com/repos/cmssnu/dolphin/pulls/comments/50348929","id":50348929,"diff_hunk":"@@ -123,28 +123,29 @@ public static Matrix readNumpy(final MatrixFactory matrixFactory,\n   }\n \n   /**\n-   * Creates a row vector in which only element at the specified position is {@code 1} and other elements are {@code 0}.\n+   * Creates a column vector in which only element at the specified position is {@code 1}","path":"dolphin-dnn/src/main/java/edu/snu/dolphin/dnn/blas/MatrixUtils.java","position":36,"original_position":36,"commit_id":"e6de46a323e1b017f566f8e5fb1b551c63da23d0","original_commit_id":"e6de46a323e1b017f566f8e5fb1b551c63da23d0","user":{"login":"jsjason","id":5705789,"avatar_url":"https://avatars.githubusercontent.com/u/5705789?v=3","gravatar_id":"","url":"https://api.github.com/users/jsjason","html_url":"https://github.com/jsjason","followers_url":"https://api.github.com/users/jsjason/followers","following_url":"https://api.github.com/users/jsjason/following{/other_user}","gists_url":"https://api.github.com/users/jsjason/gists{/gist_id}","starred_url":"https://api.github.com/users/jsjason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsjason/subscriptions","organizations_url":"https://api.github.com/users/jsjason/orgs","repos_url":"https://api.github.com/users/jsjason/repos","events_url":"https://api.github.com/users/jsjason/events{/privacy}","received_events_url":"https://api.github.com/users/jsjason/received_events","type":"User","site_admin":false},"body":"\"only **the** element at\"","created_at":"2016-01-21T01:28:06Z","updated_at":"2016-01-21T01:28:06Z","html_url":"https://github.com/cmssnu/dolphin/pull/163#discussion_r50348929","pull_request_url":"https://api.github.com/repos/cmssnu/dolphin/pulls/163","_links":{"self":{"href":"https://api.github.com/repos/cmssnu/dolphin/pulls/comments/50348929"},"html":{"href":"https://github.com/cmssnu/dolphin/pull/163#discussion_r50348929"},"pull_request":{"href":"https://api.github.com/repos/cmssnu/dolphin/pulls/163"}}},"pull_request":{"url":"https://api.github.com/repos/cmssnu/dolphin/pulls/163","id":56329940,"html_url":"https://github.com/cmssnu/dolphin/pull/163","diff_url":"https://github.com/cmssnu/dolphin/pull/163.diff","patch_url":"https://github.com/cmssnu/dolphin/pull/163.patch","issue_url":"https://api.github.com/repos/cmssnu/dolphin/issues/163","number":163,"state":"open","locked":false,"title":"Use batch matrices in which each column represents an input instance.","user":{"login":"beomyeol","id":7035999,"avatar_url":"https://avatars.githubusercontent.com/u/7035999?v=3","gravatar_id":"","url":"https://api.github.com/users/beomyeol","html_url":"https://github.com/beomyeol","followers_url":"https://api.github.com/users/beomyeol/followers","following_url":"https://api.github.com/users/beomyeol/following{/other_user}","gists_url":"https://api.github.com/users/beomyeol/gists{/gist_id}","starred_url":"https://api.github.com/users/beomyeol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beomyeol/subscriptions","organizations_url":"https://api.github.com/users/beomyeol/orgs","repos_url":"https://api.github.com/users/beomyeol/repos","events_url":"https://api.github.com/users/beomyeol/events{/privacy}","received_events_url":"https://api.github.com/users/beomyeol/received_events","type":"User","site_admin":false},"body":"For batch processing, `dolphin-dnn` handles matrices in which each **row** represents an input instance. However, many linear algebra libraries such as [netlib-java](https://github.com/fommil/netlib-java), [jblas](http://jblas.org), and [cuBLAS](https://developer.nvidia.com/cublas) use column-major storage for the compatibility with Fortran environment.\r\nIn this circumstance, retrieving each input instance from batch matrices requires the access of not contiguous memory (sequential access), which is inefficient.\r\nThis pull request changes the batch matrix format that each **column** represents an input instance, not each **row**. This PR also include the change that `MatrixFactory` creates column vectors when it generates vectors.\r\n\r\nThis closes #155 ","created_at":"2016-01-18T11:18:33Z","updated_at":"2016-01-21T01:28:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eb10dfab513cda23193f0d6514ff9e3a2ee15b05","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cmssnu/dolphin/pulls/163/commits","review_comments_url":"https://api.github.com/repos/cmssnu/dolphin/pulls/163/comments","review_comment_url":"https://api.github.com/repos/cmssnu/dolphin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cmssnu/dolphin/issues/163/comments","statuses_url":"https://api.github.com/repos/cmssnu/dolphin/statuses/e6de46a323e1b017f566f8e5fb1b551c63da23d0","head":{"label":"cmssnu:issue-155-column_major_batch","ref":"issue-155-column_major_batch","sha":"e6de46a323e1b017f566f8e5fb1b551c63da23d0","user":{"login":"cmssnu","id":6446990,"avatar_url":"https://avatars.githubusercontent.com/u/6446990?v=3","gravatar_id":"","url":"https://api.github.com/users/cmssnu","html_url":"https://github.com/cmssnu","followers_url":"https://api.github.com/users/cmssnu/followers","following_url":"https://api.github.com/users/cmssnu/following{/other_user}","gists_url":"https://api.github.com/users/cmssnu/gists{/gist_id}","starred_url":"https://api.github.com/users/cmssnu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmssnu/subscriptions","organizations_url":"https://api.github.com/users/cmssnu/orgs","repos_url":"https://api.github.com/users/cmssnu/repos","events_url":"https://api.github.com/users/cmssnu/events{/privacy}","received_events_url":"https://api.github.com/users/cmssnu/received_events","type":"Organization","site_admin":false},"repo":{"id":24580061,"name":"dolphin","full_name":"cmssnu/dolphin","owner":{"login":"cmssnu","id":6446990,"avatar_url":"https://avatars.githubusercontent.com/u/6446990?v=3","gravatar_id":"","url":"https://api.github.com/users/cmssnu","html_url":"https://github.com/cmssnu","followers_url":"https://api.github.com/users/cmssnu/followers","following_url":"https://api.github.com/users/cmssnu/following{/other_user}","gists_url":"https://api.github.com/users/cmssnu/gists{/gist_id}","starred_url":"https://api.github.com/users/cmssnu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmssnu/subscriptions","organizations_url":"https://api.github.com/users/cmssnu/orgs","repos_url":"https://api.github.com/users/cmssnu/repos","events_url":"https://api.github.com/users/cmssnu/events{/privacy}","received_events_url":"https://api.github.com/users/cmssnu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cmssnu/dolphin","description":"","fork":false,"url":"https://api.github.com/repos/cmssnu/dolphin","forks_url":"https://api.github.com/repos/cmssnu/dolphin/forks","keys_url":"https://api.github.com/repos/cmssnu/dolphin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cmssnu/dolphin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cmssnu/dolphin/teams","hooks_url":"https://api.github.com/repos/cmssnu/dolphin/hooks","issue_events_url":"https://api.github.com/repos/cmssnu/dolphin/issues/events{/number}","events_url":"https://api.github.com/repos/cmssnu/dolphin/events","assignees_url":"https://api.github.com/repos/cmssnu/dolphin/assignees{/user}","branches_url":"https://api.github.com/repos/cmssnu/dolphin/branches{/branch}","tags_url":"https://api.github.com/repos/cmssnu/dolphin/tags","blobs_url":"https://api.github.com/repos/cmssnu/dolphin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cmssnu/dolphin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cmssnu/dolphin/git/refs{/sha}","trees_url":"https://api.github.com/repos/cmssnu/dolphin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cmssnu/dolphin/statuses/{sha}","languages_url":"https://api.github.com/repos/cmssnu/dolphin/languages","stargazers_url":"https://api.github.com/repos/cmssnu/dolphin/stargazers","contributors_url":"https://api.github.com/repos/cmssnu/dolphin/contributors","subscribers_url":"https://api.github.com/repos/cmssnu/dolphin/subscribers","subscription_url":"https://api.github.com/repos/cmssnu/dolphin/subscription","commits_url":"https://api.github.com/repos/cmssnu/dolphin/commits{/sha}","git_commits_url":"https://api.github.com/repos/cmssnu/dolphin/git/commits{/sha}","comments_url":"https://api.github.com/repos/cmssnu/dolphin/comments{/number}","issue_comment_url":"https://api.github.com/repos/cmssnu/dolphin/issues/comments{/number}","contents_url":"https://api.github.com/repos/cmssnu/dolphin/contents/{+path}","compare_url":"https://api.github.com/repos/cmssnu/dolphin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cmssnu/dolphin/merges","archive_url":"https://api.github.com/repos/cmssnu/dolphin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cmssnu/dolphin/downloads","issues_url":"https://api.github.com/repos/cmssnu/dolphin/issues{/number}","pulls_url":"https://api.github.com/repos/cmssnu/dolphin/pulls{/number}","milestones_url":"https://api.github.com/repos/cmssnu/dolphin/milestones{/number}","notifications_url":"https://api.github.com/repos/cmssnu/dolphin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cmssnu/dolphin/labels{/name}","releases_url":"https://api.github.com/repos/cmssnu/dolphin/releases{/id}","created_at":"2014-09-29T04:33:24Z","updated_at":"2016-01-15T09:32:13Z","pushed_at":"2016-01-20T06:01:51Z","git_url":"git://github.com/cmssnu/dolphin.git","ssh_url":"git@github.com:cmssnu/dolphin.git","clone_url":"https://github.com/cmssnu/dolphin.git","svn_url":"https://github.com/cmssnu/dolphin","homepage":null,"size":2609,"stargazers_count":10,"watchers_count":10,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":50,"forks":2,"open_issues":50,"watchers":10,"default_branch":"master"}},"base":{"label":"cmssnu:master","ref":"master","sha":"36652fad2befd7f87a0f085c9236e897c5ebe714","user":{"login":"cmssnu","id":6446990,"avatar_url":"https://avatars.githubusercontent.com/u/6446990?v=3","gravatar_id":"","url":"https://api.github.com/users/cmssnu","html_url":"https://github.com/cmssnu","followers_url":"https://api.github.com/users/cmssnu/followers","following_url":"https://api.github.com/users/cmssnu/following{/other_user}","gists_url":"https://api.github.com/users/cmssnu/gists{/gist_id}","starred_url":"https://api.github.com/users/cmssnu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmssnu/subscriptions","organizations_url":"https://api.github.com/users/cmssnu/orgs","repos_url":"https://api.github.com/users/cmssnu/repos","events_url":"https://api.github.com/users/cmssnu/events{/privacy}","received_events_url":"https://api.github.com/users/cmssnu/received_events","type":"Organization","site_admin":false},"repo":{"id":24580061,"name":"dolphin","full_name":"cmssnu/dolphin","owner":{"login":"cmssnu","id":6446990,"avatar_url":"https://avatars.githubusercontent.com/u/6446990?v=3","gravatar_id":"","url":"https://api.github.com/users/cmssnu","html_url":"https://github.com/cmssnu","followers_url":"https://api.github.com/users/cmssnu/followers","following_url":"https://api.github.com/users/cmssnu/following{/other_user}","gists_url":"https://api.github.com/users/cmssnu/gists{/gist_id}","starred_url":"https://api.github.com/users/cmssnu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmssnu/subscriptions","organizations_url":"https://api.github.com/users/cmssnu/orgs","repos_url":"https://api.github.com/users/cmssnu/repos","events_url":"https://api.github.com/users/cmssnu/events{/privacy}","received_events_url":"https://api.github.com/users/cmssnu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cmssnu/dolphin","description":"","fork":false,"url":"https://api.github.com/repos/cmssnu/dolphin","forks_url":"https://api.github.com/repos/cmssnu/dolphin/forks","keys_url":"https://api.github.com/repos/cmssnu/dolphin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cmssnu/dolphin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cmssnu/dolphin/teams","hooks_url":"https://api.github.com/repos/cmssnu/dolphin/hooks","issue_events_url":"https://api.github.com/repos/cmssnu/dolphin/issues/events{/number}","events_url":"https://api.github.com/repos/cmssnu/dolphin/events","assignees_url":"https://api.github.com/repos/cmssnu/dolphin/assignees{/user}","branches_url":"https://api.github.com/repos/cmssnu/dolphin/branches{/branch}","tags_url":"https://api.github.com/repos/cmssnu/dolphin/tags","blobs_url":"https://api.github.com/repos/cmssnu/dolphin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cmssnu/dolphin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cmssnu/dolphin/git/refs{/sha}","trees_url":"https://api.github.com/repos/cmssnu/dolphin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cmssnu/dolphin/statuses/{sha}","languages_url":"https://api.github.com/repos/cmssnu/dolphin/languages","stargazers_url":"https://api.github.com/repos/cmssnu/dolphin/stargazers","contributors_url":"https://api.github.com/repos/cmssnu/dolphin/contributors","subscribers_url":"https://api.github.com/repos/cmssnu/dolphin/subscribers","subscription_url":"https://api.github.com/repos/cmssnu/dolphin/subscription","commits_url":"https://api.github.com/repos/cmssnu/dolphin/commits{/sha}","git_commits_url":"https://api.github.com/repos/cmssnu/dolphin/git/commits{/sha}","comments_url":"https://api.github.com/repos/cmssnu/dolphin/comments{/number}","issue_comment_url":"https://api.github.com/repos/cmssnu/dolphin/issues/comments{/number}","contents_url":"https://api.github.com/repos/cmssnu/dolphin/contents/{+path}","compare_url":"https://api.github.com/repos/cmssnu/dolphin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cmssnu/dolphin/merges","archive_url":"https://api.github.com/repos/cmssnu/dolphin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cmssnu/dolphin/downloads","issues_url":"https://api.github.com/repos/cmssnu/dolphin/issues{/number}","pulls_url":"https://api.github.com/repos/cmssnu/dolphin/pulls{/number}","milestones_url":"https://api.github.com/repos/cmssnu/dolphin/milestones{/number}","notifications_url":"https://api.github.com/repos/cmssnu/dolphin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cmssnu/dolphin/labels{/name}","releases_url":"https://api.github.com/repos/cmssnu/dolphin/releases{/id}","created_at":"2014-09-29T04:33:24Z","updated_at":"2016-01-15T09:32:13Z","pushed_at":"2016-01-20T06:01:51Z","git_url":"git://github.com/cmssnu/dolphin.git","ssh_url":"git@github.com:cmssnu/dolphin.git","clone_url":"https://github.com/cmssnu/dolphin.git","svn_url":"https://github.com/cmssnu/dolphin","homepage":null,"size":2609,"stargazers_count":10,"watchers_count":10,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":50,"forks":2,"open_issues":50,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cmssnu/dolphin/pulls/163"},"html":{"href":"https://github.com/cmssnu/dolphin/pull/163"},"issue":{"href":"https://api.github.com/repos/cmssnu/dolphin/issues/163"},"comments":{"href":"https://api.github.com/repos/cmssnu/dolphin/issues/163/comments"},"review_comments":{"href":"https://api.github.com/repos/cmssnu/dolphin/pulls/163/comments"},"review_comment":{"href":"https://api.github.com/repos/cmssnu/dolphin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cmssnu/dolphin/pulls/163/commits"},"statuses":{"href":"https://api.github.com/repos/cmssnu/dolphin/statuses/e6de46a323e1b017f566f8e5fb1b551c63da23d0"}}}}