{"action":"created","comment":{"url":"https://api.github.com/repos/baidu/Paddle/pulls/comments/85682347","pull_request_review_id":6383695,"id":85682347,"diff_hunk":"@@ -162,6 +169,65 @@ void hl_matrix_transpose(real *A_d, real *C_d, int dimM, int dimN) {\n   hl_matrix_transpose(A_d, C_d, dimM, dimN, dimN, dimM);\n }\n \n+void hl_matrix_inverse(real *A_d, real *C_d, int dimN, int lda, int ldc) {\n+  /* Solve Ax = I */\n+  CHECK_NOTNULL(A_d);\n+  CHECK_NOTNULL(C_d);\n+\n+  /* Step 1: Compute the LU decomposition of matrix A */\n+  const unsigned int nMatrices = 1;\n+\n+  real **inout_h = (real **)hl_malloc_host(nMatrices*sizeof(real *));","path":"paddle/cuda/src/hl_cuda_cublas.cc","position":null,"original_position":44,"commit_id":"440a28670e3ec580e356b205442dd0f5d49fbf33","original_commit_id":"c561626e2c7344e7847ca569b491728f1916ed5c","user":{"login":"hedaoyuan","id":21339431,"avatar_url":"https://avatars.githubusercontent.com/u/21339431?v=3","gravatar_id":"","url":"https://api.github.com/users/hedaoyuan","html_url":"https://github.com/hedaoyuan","followers_url":"https://api.github.com/users/hedaoyuan/followers","following_url":"https://api.github.com/users/hedaoyuan/following{/other_user}","gists_url":"https://api.github.com/users/hedaoyuan/gists{/gist_id}","starred_url":"https://api.github.com/users/hedaoyuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hedaoyuan/subscriptions","organizations_url":"https://api.github.com/users/hedaoyuan/orgs","repos_url":"https://api.github.com/users/hedaoyuan/repos","events_url":"https://api.github.com/users/hedaoyuan/events{/privacy}","received_events_url":"https://api.github.com/users/hedaoyuan/received_events","type":"User","site_admin":false},"body":"`hl_vector_sum` is an example.","created_at":"2016-10-31T03:42:30Z","updated_at":"2016-10-31T03:42:30Z","html_url":"https://github.com/baidu/Paddle/pull/240#discussion_r85682347","pull_request_url":"https://api.github.com/repos/baidu/Paddle/pulls/240","_links":{"self":{"href":"https://api.github.com/repos/baidu/Paddle/pulls/comments/85682347"},"html":{"href":"https://github.com/baidu/Paddle/pull/240#discussion_r85682347"},"pull_request":{"href":"https://api.github.com/repos/baidu/Paddle/pulls/240"}}},"pull_request":{"url":"https://api.github.com/repos/baidu/Paddle/pulls/240","id":90711626,"html_url":"https://github.com/baidu/Paddle/pull/240","diff_url":"https://github.com/baidu/Paddle/pull/240.diff","patch_url":"https://github.com/baidu/Paddle/pull/240.patch","issue_url":"https://api.github.com/repos/baidu/Paddle/issues/240","number":240,"state":"open","locked":false,"title":"Add matrix inverse","user":{"login":"lzhao4ever","id":3246048,"avatar_url":"https://avatars.githubusercontent.com/u/3246048?v=3","gravatar_id":"","url":"https://api.github.com/users/lzhao4ever","html_url":"https://github.com/lzhao4ever","followers_url":"https://api.github.com/users/lzhao4ever/followers","following_url":"https://api.github.com/users/lzhao4ever/following{/other_user}","gists_url":"https://api.github.com/users/lzhao4ever/gists{/gist_id}","starred_url":"https://api.github.com/users/lzhao4ever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzhao4ever/subscriptions","organizations_url":"https://api.github.com/users/lzhao4ever/orgs","repos_url":"https://api.github.com/users/lzhao4ever/repos","events_url":"https://api.github.com/users/lzhao4ever/events{/privacy}","received_events_url":"https://api.github.com/users/lzhao4ever/received_events","type":"User","site_admin":false},"body":"for CpuMatrix using clapack\nand GpuMatrix using culapack.\n","created_at":"2016-10-24T23:20:44Z","updated_at":"2016-10-31T03:42:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc6368c1c0b13cb90025fa434af21b2b8a5046b0","assignee":{"login":"hedaoyuan","id":21339431,"avatar_url":"https://avatars.githubusercontent.com/u/21339431?v=3","gravatar_id":"","url":"https://api.github.com/users/hedaoyuan","html_url":"https://github.com/hedaoyuan","followers_url":"https://api.github.com/users/hedaoyuan/followers","following_url":"https://api.github.com/users/hedaoyuan/following{/other_user}","gists_url":"https://api.github.com/users/hedaoyuan/gists{/gist_id}","starred_url":"https://api.github.com/users/hedaoyuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hedaoyuan/subscriptions","organizations_url":"https://api.github.com/users/hedaoyuan/orgs","repos_url":"https://api.github.com/users/hedaoyuan/repos","events_url":"https://api.github.com/users/hedaoyuan/events{/privacy}","received_events_url":"https://api.github.com/users/hedaoyuan/received_events","type":"User","site_admin":false},"assignees":[{"login":"hedaoyuan","id":21339431,"avatar_url":"https://avatars.githubusercontent.com/u/21339431?v=3","gravatar_id":"","url":"https://api.github.com/users/hedaoyuan","html_url":"https://github.com/hedaoyuan","followers_url":"https://api.github.com/users/hedaoyuan/followers","following_url":"https://api.github.com/users/hedaoyuan/following{/other_user}","gists_url":"https://api.github.com/users/hedaoyuan/gists{/gist_id}","starred_url":"https://api.github.com/users/hedaoyuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hedaoyuan/subscriptions","organizations_url":"https://api.github.com/users/hedaoyuan/orgs","repos_url":"https://api.github.com/users/hedaoyuan/repos","events_url":"https://api.github.com/users/hedaoyuan/events{/privacy}","received_events_url":"https://api.github.com/users/hedaoyuan/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/baidu/Paddle/pulls/240/commits","review_comments_url":"https://api.github.com/repos/baidu/Paddle/pulls/240/comments","review_comment_url":"https://api.github.com/repos/baidu/Paddle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/baidu/Paddle/issues/240/comments","statuses_url":"https://api.github.com/repos/baidu/Paddle/statuses/440a28670e3ec580e356b205442dd0f5d49fbf33","head":{"label":"lzhao4ever:matrix_inverse","ref":"matrix_inverse","sha":"440a28670e3ec580e356b205442dd0f5d49fbf33","user":{"login":"lzhao4ever","id":3246048,"avatar_url":"https://avatars.githubusercontent.com/u/3246048?v=3","gravatar_id":"","url":"https://api.github.com/users/lzhao4ever","html_url":"https://github.com/lzhao4ever","followers_url":"https://api.github.com/users/lzhao4ever/followers","following_url":"https://api.github.com/users/lzhao4ever/following{/other_user}","gists_url":"https://api.github.com/users/lzhao4ever/gists{/gist_id}","starred_url":"https://api.github.com/users/lzhao4ever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzhao4ever/subscriptions","organizations_url":"https://api.github.com/users/lzhao4ever/orgs","repos_url":"https://api.github.com/users/lzhao4ever/repos","events_url":"https://api.github.com/users/lzhao4ever/events{/privacy}","received_events_url":"https://api.github.com/users/lzhao4ever/received_events","type":"User","site_admin":false},"repo":{"id":71809782,"name":"Paddle","full_name":"lzhao4ever/Paddle","owner":{"login":"lzhao4ever","id":3246048,"avatar_url":"https://avatars.githubusercontent.com/u/3246048?v=3","gravatar_id":"","url":"https://api.github.com/users/lzhao4ever","html_url":"https://github.com/lzhao4ever","followers_url":"https://api.github.com/users/lzhao4ever/followers","following_url":"https://api.github.com/users/lzhao4ever/following{/other_user}","gists_url":"https://api.github.com/users/lzhao4ever/gists{/gist_id}","starred_url":"https://api.github.com/users/lzhao4ever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzhao4ever/subscriptions","organizations_url":"https://api.github.com/users/lzhao4ever/orgs","repos_url":"https://api.github.com/users/lzhao4ever/repos","events_url":"https://api.github.com/users/lzhao4ever/events{/privacy}","received_events_url":"https://api.github.com/users/lzhao4ever/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lzhao4ever/Paddle","description":"PArallel Distributed Deep LEarning","fork":true,"url":"https://api.github.com/repos/lzhao4ever/Paddle","forks_url":"https://api.github.com/repos/lzhao4ever/Paddle/forks","keys_url":"https://api.github.com/repos/lzhao4ever/Paddle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lzhao4ever/Paddle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lzhao4ever/Paddle/teams","hooks_url":"https://api.github.com/repos/lzhao4ever/Paddle/hooks","issue_events_url":"https://api.github.com/repos/lzhao4ever/Paddle/issues/events{/number}","events_url":"https://api.github.com/repos/lzhao4ever/Paddle/events","assignees_url":"https://api.github.com/repos/lzhao4ever/Paddle/assignees{/user}","branches_url":"https://api.github.com/repos/lzhao4ever/Paddle/branches{/branch}","tags_url":"https://api.github.com/repos/lzhao4ever/Paddle/tags","blobs_url":"https://api.github.com/repos/lzhao4ever/Paddle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lzhao4ever/Paddle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lzhao4ever/Paddle/git/refs{/sha}","trees_url":"https://api.github.com/repos/lzhao4ever/Paddle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lzhao4ever/Paddle/statuses/{sha}","languages_url":"https://api.github.com/repos/lzhao4ever/Paddle/languages","stargazers_url":"https://api.github.com/repos/lzhao4ever/Paddle/stargazers","contributors_url":"https://api.github.com/repos/lzhao4ever/Paddle/contributors","subscribers_url":"https://api.github.com/repos/lzhao4ever/Paddle/subscribers","subscription_url":"https://api.github.com/repos/lzhao4ever/Paddle/subscription","commits_url":"https://api.github.com/repos/lzhao4ever/Paddle/commits{/sha}","git_commits_url":"https://api.github.com/repos/lzhao4ever/Paddle/git/commits{/sha}","comments_url":"https://api.github.com/repos/lzhao4ever/Paddle/comments{/number}","issue_comment_url":"https://api.github.com/repos/lzhao4ever/Paddle/issues/comments{/number}","contents_url":"https://api.github.com/repos/lzhao4ever/Paddle/contents/{+path}","compare_url":"https://api.github.com/repos/lzhao4ever/Paddle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lzhao4ever/Paddle/merges","archive_url":"https://api.github.com/repos/lzhao4ever/Paddle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lzhao4ever/Paddle/downloads","issues_url":"https://api.github.com/repos/lzhao4ever/Paddle/issues{/number}","pulls_url":"https://api.github.com/repos/lzhao4ever/Paddle/pulls{/number}","milestones_url":"https://api.github.com/repos/lzhao4ever/Paddle/milestones{/number}","notifications_url":"https://api.github.com/repos/lzhao4ever/Paddle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lzhao4ever/Paddle/labels{/name}","releases_url":"https://api.github.com/repos/lzhao4ever/Paddle/releases{/id}","deployments_url":"https://api.github.com/repos/lzhao4ever/Paddle/deployments","created_at":"2016-10-24T16:40:50Z","updated_at":"2016-10-24T16:40:53Z","pushed_at":"2016-10-27T23:18:13Z","git_url":"git://github.com/lzhao4ever/Paddle.git","ssh_url":"git@github.com:lzhao4ever/Paddle.git","clone_url":"https://github.com/lzhao4ever/Paddle.git","svn_url":"https://github.com/lzhao4ever/Paddle","homepage":"http://www.paddlepaddle.org/","size":11692,"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":"master"}},"base":{"label":"baidu:develop","ref":"develop","sha":"cbe734b396a6f6844cafb94b0de8bd736360ef90","user":{"login":"baidu","id":13245940,"avatar_url":"https://avatars.githubusercontent.com/u/13245940?v=3","gravatar_id":"","url":"https://api.github.com/users/baidu","html_url":"https://github.com/baidu","followers_url":"https://api.github.com/users/baidu/followers","following_url":"https://api.github.com/users/baidu/following{/other_user}","gists_url":"https://api.github.com/users/baidu/gists{/gist_id}","starred_url":"https://api.github.com/users/baidu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baidu/subscriptions","organizations_url":"https://api.github.com/users/baidu/orgs","repos_url":"https://api.github.com/users/baidu/repos","events_url":"https://api.github.com/users/baidu/events{/privacy}","received_events_url":"https://api.github.com/users/baidu/received_events","type":"Organization","site_admin":false},"repo":{"id":65711522,"name":"Paddle","full_name":"baidu/Paddle","owner":{"login":"baidu","id":13245940,"avatar_url":"https://avatars.githubusercontent.com/u/13245940?v=3","gravatar_id":"","url":"https://api.github.com/users/baidu","html_url":"https://github.com/baidu","followers_url":"https://api.github.com/users/baidu/followers","following_url":"https://api.github.com/users/baidu/following{/other_user}","gists_url":"https://api.github.com/users/baidu/gists{/gist_id}","starred_url":"https://api.github.com/users/baidu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baidu/subscriptions","organizations_url":"https://api.github.com/users/baidu/orgs","repos_url":"https://api.github.com/users/baidu/repos","events_url":"https://api.github.com/users/baidu/events{/privacy}","received_events_url":"https://api.github.com/users/baidu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/baidu/Paddle","description":"PArallel Distributed Deep LEarning","fork":false,"url":"https://api.github.com/repos/baidu/Paddle","forks_url":"https://api.github.com/repos/baidu/Paddle/forks","keys_url":"https://api.github.com/repos/baidu/Paddle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/baidu/Paddle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/baidu/Paddle/teams","hooks_url":"https://api.github.com/repos/baidu/Paddle/hooks","issue_events_url":"https://api.github.com/repos/baidu/Paddle/issues/events{/number}","events_url":"https://api.github.com/repos/baidu/Paddle/events","assignees_url":"https://api.github.com/repos/baidu/Paddle/assignees{/user}","branches_url":"https://api.github.com/repos/baidu/Paddle/branches{/branch}","tags_url":"https://api.github.com/repos/baidu/Paddle/tags","blobs_url":"https://api.github.com/repos/baidu/Paddle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/baidu/Paddle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/baidu/Paddle/git/refs{/sha}","trees_url":"https://api.github.com/repos/baidu/Paddle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/baidu/Paddle/statuses/{sha}","languages_url":"https://api.github.com/repos/baidu/Paddle/languages","stargazers_url":"https://api.github.com/repos/baidu/Paddle/stargazers","contributors_url":"https://api.github.com/repos/baidu/Paddle/contributors","subscribers_url":"https://api.github.com/repos/baidu/Paddle/subscribers","subscription_url":"https://api.github.com/repos/baidu/Paddle/subscription","commits_url":"https://api.github.com/repos/baidu/Paddle/commits{/sha}","git_commits_url":"https://api.github.com/repos/baidu/Paddle/git/commits{/sha}","comments_url":"https://api.github.com/repos/baidu/Paddle/comments{/number}","issue_comment_url":"https://api.github.com/repos/baidu/Paddle/issues/comments{/number}","contents_url":"https://api.github.com/repos/baidu/Paddle/contents/{+path}","compare_url":"https://api.github.com/repos/baidu/Paddle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/baidu/Paddle/merges","archive_url":"https://api.github.com/repos/baidu/Paddle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/baidu/Paddle/downloads","issues_url":"https://api.github.com/repos/baidu/Paddle/issues{/number}","pulls_url":"https://api.github.com/repos/baidu/Paddle/pulls{/number}","milestones_url":"https://api.github.com/repos/baidu/Paddle/milestones{/number}","notifications_url":"https://api.github.com/repos/baidu/Paddle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/baidu/Paddle/labels{/name}","releases_url":"https://api.github.com/repos/baidu/Paddle/releases{/id}","deployments_url":"https://api.github.com/repos/baidu/Paddle/deployments","created_at":"2016-08-15T06:59:08Z","updated_at":"2016-10-31T03:39:02Z","pushed_at":"2016-10-30T02:13:17Z","git_url":"git://github.com/baidu/Paddle.git","ssh_url":"git@github.com:baidu/Paddle.git","clone_url":"https://github.com/baidu/Paddle.git","svn_url":"https://github.com/baidu/Paddle","homepage":"http://www.paddlepaddle.org/","size":17974,"stargazers_count":3670,"watchers_count":3670,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":829,"mirror_url":null,"open_issues_count":64,"forks":829,"open_issues":64,"watchers":3670,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/baidu/Paddle/pulls/240"},"html":{"href":"https://github.com/baidu/Paddle/pull/240"},"issue":{"href":"https://api.github.com/repos/baidu/Paddle/issues/240"},"comments":{"href":"https://api.github.com/repos/baidu/Paddle/issues/240/comments"},"review_comments":{"href":"https://api.github.com/repos/baidu/Paddle/pulls/240/comments"},"review_comment":{"href":"https://api.github.com/repos/baidu/Paddle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/baidu/Paddle/pulls/240/commits"},"statuses":{"href":"https://api.github.com/repos/baidu/Paddle/statuses/440a28670e3ec580e356b205442dd0f5d49fbf33"}}}}
{"actor":{"display_login":"hedaoyuan"}}