{"action":"created","comment":{"url":"https://api.github.com/repos/torch/torch7/pulls/comments/23313451","id":23313451,"diff_hunk":"@@ -805,6 +805,21 @@ If `mat1` is a `n x m` matrix, `mat2` a `m x p` matrix,\n Optional values `v1` and `v2` are scalars that multiply \n `M` and `mat1 * mat2` respectively.\n \n+<a name=\"torch.baddmm\"/>\n+### [res] torch.baddmm([res,] [v1,] M [v2,] mat1, mat2) ###\n+<a name=\"torch.baddmm\"/>\n+\n+Batch matrix matrix product of matrices stored in `batch1` and `batch2`.\n+`batch1` and `batch2` must be 3D tensors each containing the same number\n+of matrices. If `batch1` is a `b x n x m` tensor, `batch2` a `b x m x p`\n+tensor, res will be a `n x p` tensor.\n+\n+`torch.addbmm(M,x,y)` puts the result in a new tensor.","path":"doc/maths.md","position":13,"original_position":13,"commit_id":"b74f33f6b23a114f64681d0eae3beee68ed8c7d4","original_commit_id":"b74f33f6b23a114f64681d0eae3beee68ed8c7d4","user":{"login":"soumith","id":1310570,"avatar_url":"https://avatars.githubusercontent.com/u/1310570?v=3","gravatar_id":"","url":"https://api.github.com/users/soumith","html_url":"https://github.com/soumith","followers_url":"https://api.github.com/users/soumith/followers","following_url":"https://api.github.com/users/soumith/following{/other_user}","gists_url":"https://api.github.com/users/soumith/gists{/gist_id}","starred_url":"https://api.github.com/users/soumith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soumith/subscriptions","organizations_url":"https://api.github.com/users/soumith/orgs","repos_url":"https://api.github.com/users/soumith/repos","events_url":"https://api.github.com/users/soumith/events{/privacy}","received_events_url":"https://api.github.com/users/soumith/received_events","type":"User","site_admin":false},"body":"but here it says addbmm.....","created_at":"2015-01-21T16:45:45Z","updated_at":"2015-01-21T16:45:45Z","html_url":"https://github.com/torch/torch7/pull/124#discussion_r23313451","pull_request_url":"https://api.github.com/repos/torch/torch7/pulls/124","_links":{"self":{"href":"https://api.github.com/repos/torch/torch7/pulls/comments/23313451"},"html":{"href":"https://github.com/torch/torch7/pull/124#discussion_r23313451"},"pull_request":{"href":"https://api.github.com/repos/torch/torch7/pulls/124"}}},"pull_request":{"url":"https://api.github.com/repos/torch/torch7/pulls/124","id":27774451,"html_url":"https://github.com/torch/torch7/pull/124","diff_url":"https://github.com/torch/torch7/pull/124.diff","patch_url":"https://github.com/torch/torch7/pull/124.patch","issue_url":"https://api.github.com/repos/torch/torch7/issues/124","number":124,"state":"open","locked":false,"title":"Add batch matrix-matrix multiplication with accumulation.","user":{"login":"clementfarabet","id":188959,"avatar_url":"https://avatars.githubusercontent.com/u/188959?v=3","gravatar_id":"","url":"https://api.github.com/users/clementfarabet","html_url":"https://github.com/clementfarabet","followers_url":"https://api.github.com/users/clementfarabet/followers","following_url":"https://api.github.com/users/clementfarabet/following{/other_user}","gists_url":"https://api.github.com/users/clementfarabet/gists{/gist_id}","starred_url":"https://api.github.com/users/clementfarabet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clementfarabet/subscriptions","organizations_url":"https://api.github.com/users/clementfarabet/orgs","repos_url":"https://api.github.com/users/clementfarabet/repos","events_url":"https://api.github.com/users/clementfarabet/events{/privacy}","received_events_url":"https://api.github.com/users/clementfarabet/received_events","type":"User","site_admin":false},"body":"- behavior is similar to torch.addmm, except that both input\r\n  matrices have an additional dimension, as in torch.bmm\r\n- tests cover all use cases","created_at":"2015-01-21T16:43:20Z","updated_at":"2015-01-21T16:45:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5957946575acec82bc3b8b698833d283103553ca","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/torch/torch7/pulls/124/commits","review_comments_url":"https://api.github.com/repos/torch/torch7/pulls/124/comments","review_comment_url":"https://api.github.com/repos/torch/torch7/pulls/comments/{number}","comments_url":"https://api.github.com/repos/torch/torch7/issues/124/comments","statuses_url":"https://api.github.com/repos/torch/torch7/statuses/b74f33f6b23a114f64681d0eae3beee68ed8c7d4","head":{"label":"clementfarabet:master","ref":"master","sha":"b74f33f6b23a114f64681d0eae3beee68ed8c7d4","user":{"login":"clementfarabet","id":188959,"avatar_url":"https://avatars.githubusercontent.com/u/188959?v=3","gravatar_id":"","url":"https://api.github.com/users/clementfarabet","html_url":"https://github.com/clementfarabet","followers_url":"https://api.github.com/users/clementfarabet/followers","following_url":"https://api.github.com/users/clementfarabet/following{/other_user}","gists_url":"https://api.github.com/users/clementfarabet/gists{/gist_id}","starred_url":"https://api.github.com/users/clementfarabet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clementfarabet/subscriptions","organizations_url":"https://api.github.com/users/clementfarabet/orgs","repos_url":"https://api.github.com/users/clementfarabet/repos","events_url":"https://api.github.com/users/clementfarabet/events{/privacy}","received_events_url":"https://api.github.com/users/clementfarabet/received_events","type":"User","site_admin":false},"repo":{"id":29598873,"name":"torch7","full_name":"clementfarabet/torch7","owner":{"login":"clementfarabet","id":188959,"avatar_url":"https://avatars.githubusercontent.com/u/188959?v=3","gravatar_id":"","url":"https://api.github.com/users/clementfarabet","html_url":"https://github.com/clementfarabet","followers_url":"https://api.github.com/users/clementfarabet/followers","following_url":"https://api.github.com/users/clementfarabet/following{/other_user}","gists_url":"https://api.github.com/users/clementfarabet/gists{/gist_id}","starred_url":"https://api.github.com/users/clementfarabet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clementfarabet/subscriptions","organizations_url":"https://api.github.com/users/clementfarabet/orgs","repos_url":"https://api.github.com/users/clementfarabet/repos","events_url":"https://api.github.com/users/clementfarabet/events{/privacy}","received_events_url":"https://api.github.com/users/clementfarabet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/clementfarabet/torch7","description":"","fork":true,"url":"https://api.github.com/repos/clementfarabet/torch7","forks_url":"https://api.github.com/repos/clementfarabet/torch7/forks","keys_url":"https://api.github.com/repos/clementfarabet/torch7/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clementfarabet/torch7/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clementfarabet/torch7/teams","hooks_url":"https://api.github.com/repos/clementfarabet/torch7/hooks","issue_events_url":"https://api.github.com/repos/clementfarabet/torch7/issues/events{/number}","events_url":"https://api.github.com/repos/clementfarabet/torch7/events","assignees_url":"https://api.github.com/repos/clementfarabet/torch7/assignees{/user}","branches_url":"https://api.github.com/repos/clementfarabet/torch7/branches{/branch}","tags_url":"https://api.github.com/repos/clementfarabet/torch7/tags","blobs_url":"https://api.github.com/repos/clementfarabet/torch7/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clementfarabet/torch7/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clementfarabet/torch7/git/refs{/sha}","trees_url":"https://api.github.com/repos/clementfarabet/torch7/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clementfarabet/torch7/statuses/{sha}","languages_url":"https://api.github.com/repos/clementfarabet/torch7/languages","stargazers_url":"https://api.github.com/repos/clementfarabet/torch7/stargazers","contributors_url":"https://api.github.com/repos/clementfarabet/torch7/contributors","subscribers_url":"https://api.github.com/repos/clementfarabet/torch7/subscribers","subscription_url":"https://api.github.com/repos/clementfarabet/torch7/subscription","commits_url":"https://api.github.com/repos/clementfarabet/torch7/commits{/sha}","git_commits_url":"https://api.github.com/repos/clementfarabet/torch7/git/commits{/sha}","comments_url":"https://api.github.com/repos/clementfarabet/torch7/comments{/number}","issue_comment_url":"https://api.github.com/repos/clementfarabet/torch7/issues/comments/{number}","contents_url":"https://api.github.com/repos/clementfarabet/torch7/contents/{+path}","compare_url":"https://api.github.com/repos/clementfarabet/torch7/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clementfarabet/torch7/merges","archive_url":"https://api.github.com/repos/clementfarabet/torch7/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clementfarabet/torch7/downloads","issues_url":"https://api.github.com/repos/clementfarabet/torch7/issues{/number}","pulls_url":"https://api.github.com/repos/clementfarabet/torch7/pulls{/number}","milestones_url":"https://api.github.com/repos/clementfarabet/torch7/milestones{/number}","notifications_url":"https://api.github.com/repos/clementfarabet/torch7/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clementfarabet/torch7/labels{/name}","releases_url":"https://api.github.com/repos/clementfarabet/torch7/releases{/id}","created_at":"2015-01-21T16:27:31Z","updated_at":"2015-01-21T16:42:44Z","pushed_at":"2015-01-21T16:42:44Z","git_url":"git://github.com/clementfarabet/torch7.git","ssh_url":"git@github.com:clementfarabet/torch7.git","clone_url":"https://github.com/clementfarabet/torch7.git","svn_url":"https://github.com/clementfarabet/torch7","homepage":null,"size":1724,"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":"torch:master","ref":"master","sha":"10f3323147730a8ac74ac706aa95caa6e39ae99c","user":{"login":"torch","id":4978924,"avatar_url":"https://avatars.githubusercontent.com/u/4978924?v=3","gravatar_id":"","url":"https://api.github.com/users/torch","html_url":"https://github.com/torch","followers_url":"https://api.github.com/users/torch/followers","following_url":"https://api.github.com/users/torch/following{/other_user}","gists_url":"https://api.github.com/users/torch/gists{/gist_id}","starred_url":"https://api.github.com/users/torch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torch/subscriptions","organizations_url":"https://api.github.com/users/torch/orgs","repos_url":"https://api.github.com/users/torch/repos","events_url":"https://api.github.com/users/torch/events{/privacy}","received_events_url":"https://api.github.com/users/torch/received_events","type":"Organization","site_admin":false},"repo":{"id":13677187,"name":"torch7","full_name":"torch/torch7","owner":{"login":"torch","id":4978924,"avatar_url":"https://avatars.githubusercontent.com/u/4978924?v=3","gravatar_id":"","url":"https://api.github.com/users/torch","html_url":"https://github.com/torch","followers_url":"https://api.github.com/users/torch/followers","following_url":"https://api.github.com/users/torch/following{/other_user}","gists_url":"https://api.github.com/users/torch/gists{/gist_id}","starred_url":"https://api.github.com/users/torch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torch/subscriptions","organizations_url":"https://api.github.com/users/torch/orgs","repos_url":"https://api.github.com/users/torch/repos","events_url":"https://api.github.com/users/torch/events{/privacy}","received_events_url":"https://api.github.com/users/torch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/torch/torch7","description":"","fork":false,"url":"https://api.github.com/repos/torch/torch7","forks_url":"https://api.github.com/repos/torch/torch7/forks","keys_url":"https://api.github.com/repos/torch/torch7/keys{/key_id}","collaborators_url":"https://api.github.com/repos/torch/torch7/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/torch/torch7/teams","hooks_url":"https://api.github.com/repos/torch/torch7/hooks","issue_events_url":"https://api.github.com/repos/torch/torch7/issues/events{/number}","events_url":"https://api.github.com/repos/torch/torch7/events","assignees_url":"https://api.github.com/repos/torch/torch7/assignees{/user}","branches_url":"https://api.github.com/repos/torch/torch7/branches{/branch}","tags_url":"https://api.github.com/repos/torch/torch7/tags","blobs_url":"https://api.github.com/repos/torch/torch7/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/torch/torch7/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/torch/torch7/git/refs{/sha}","trees_url":"https://api.github.com/repos/torch/torch7/git/trees{/sha}","statuses_url":"https://api.github.com/repos/torch/torch7/statuses/{sha}","languages_url":"https://api.github.com/repos/torch/torch7/languages","stargazers_url":"https://api.github.com/repos/torch/torch7/stargazers","contributors_url":"https://api.github.com/repos/torch/torch7/contributors","subscribers_url":"https://api.github.com/repos/torch/torch7/subscribers","subscription_url":"https://api.github.com/repos/torch/torch7/subscription","commits_url":"https://api.github.com/repos/torch/torch7/commits{/sha}","git_commits_url":"https://api.github.com/repos/torch/torch7/git/commits{/sha}","comments_url":"https://api.github.com/repos/torch/torch7/comments{/number}","issue_comment_url":"https://api.github.com/repos/torch/torch7/issues/comments/{number}","contents_url":"https://api.github.com/repos/torch/torch7/contents/{+path}","compare_url":"https://api.github.com/repos/torch/torch7/compare/{base}...{head}","merges_url":"https://api.github.com/repos/torch/torch7/merges","archive_url":"https://api.github.com/repos/torch/torch7/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/torch/torch7/downloads","issues_url":"https://api.github.com/repos/torch/torch7/issues{/number}","pulls_url":"https://api.github.com/repos/torch/torch7/pulls{/number}","milestones_url":"https://api.github.com/repos/torch/torch7/milestones{/number}","notifications_url":"https://api.github.com/repos/torch/torch7/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/torch/torch7/labels{/name}","releases_url":"https://api.github.com/repos/torch/torch7/releases{/id}","created_at":"2013-10-18T12:13:58Z","updated_at":"2015-01-21T16:42:33Z","pushed_at":"2015-01-21T16:40:00Z","git_url":"git://github.com/torch/torch7.git","ssh_url":"git@github.com:torch/torch7.git","clone_url":"https://github.com/torch/torch7.git","svn_url":"https://github.com/torch/torch7","homepage":null,"size":1724,"stargazers_count":1365,"watchers_count":1365,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":197,"mirror_url":null,"open_issues_count":12,"forks":197,"open_issues":12,"watchers":1365,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/torch/torch7/pulls/124"},"html":{"href":"https://github.com/torch/torch7/pull/124"},"issue":{"href":"https://api.github.com/repos/torch/torch7/issues/124"},"comments":{"href":"https://api.github.com/repos/torch/torch7/issues/124/comments"},"review_comments":{"href":"https://api.github.com/repos/torch/torch7/pulls/124/comments"},"review_comment":{"href":"https://api.github.com/repos/torch/torch7/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/torch/torch7/pulls/124/commits"},"statuses":{"href":"https://api.github.com/repos/torch/torch7/statuses/b74f33f6b23a114f64681d0eae3beee68ed8c7d4"}}}}