{"action":"created","comment":{"url":"https://api.github.com/repos/symengine/symengine/pulls/comments/133735929","pull_request_review_id":56951164,"id":133735929,"diff_hunk":"@@ -375,3 +379,88 @@ TEST_CASE(\"solve_poly\", \"[Solve]\")\n     REQUIRE(eq(*soln, *finiteset({neg(one), neg(integer(2))})));\n #endif\n }\n+\n+TEST_CASE(\"linsolve\", \"[Solve]\")\n+{\n+    auto x = symbol(\"x\"), y = symbol(\"y\"), z = symbol(\"z\"), t = symbol(\"t\");\n+    // Augmented Matrix as input\n+    auto aug = DenseMatrix(\n+        4, 5, {integer(1), integer(2), integer(3), integer(4), integer(10),\n+               integer(2), integer(2), integer(3), integer(4), integer(11),\n+               integer(3), integer(3), integer(3), integer(4), integer(13),\n+               integer(9), integer(8), integer(7), integer(6), integer(30)});\n+    vec_basic solns = linsolve(aug, {x, y, z, t});\n+    REQUIRE(solns.size() == 4);\n+    REQUIRE(eq(*solns[0], *integer(1)));\n+    REQUIRE(eq(*solns[1], *integer(1)));\n+    REQUIRE(eq(*solns[2], *integer(1)));\n+    REQUIRE(eq(*solns[3], *integer(1)));\n+\n+    // vector of equations as input\n+    solns\n+        = linsolve({add({x, mul(integer(2), y), mul(integer(3), z),\n+                         mul(integer(4), t), integer(10)}),","path":"symengine/tests/basic/test_solve.cpp","position":35,"original_position":35,"commit_id":"564a7753735e73c02edd1a3d783ccc9df9d0c857","original_commit_id":"564a7753735e73c02edd1a3d783ccc9df9d0c857","user":{"login":"isuruf","id":5234427,"avatar_url":"https://avatars3.githubusercontent.com/u/5234427?v=4","gravatar_id":"","url":"https://api.github.com/users/isuruf","html_url":"https://github.com/isuruf","followers_url":"https://api.github.com/users/isuruf/followers","following_url":"https://api.github.com/users/isuruf/following{/other_user}","gists_url":"https://api.github.com/users/isuruf/gists{/gist_id}","starred_url":"https://api.github.com/users/isuruf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isuruf/subscriptions","organizations_url":"https://api.github.com/users/isuruf/orgs","repos_url":"https://api.github.com/users/isuruf/repos","events_url":"https://api.github.com/users/isuruf/events{/privacy}","received_events_url":"https://api.github.com/users/isuruf/received_events","type":"User","site_admin":false},"body":"`x, y, z, t = 1,1,1,1` is a solution to `x+2*y+3*z+4*t+10`?","created_at":"2017-08-17T14:51:41Z","updated_at":"2017-08-17T14:52:26Z","html_url":"https://github.com/symengine/symengine/pull/1317#discussion_r133735929","pull_request_url":"https://api.github.com/repos/symengine/symengine/pulls/1317","_links":{"self":{"href":"https://api.github.com/repos/symengine/symengine/pulls/comments/133735929"},"html":{"href":"https://github.com/symengine/symengine/pull/1317#discussion_r133735929"},"pull_request":{"href":"https://api.github.com/repos/symengine/symengine/pulls/1317"}}},"pull_request":{"url":"https://api.github.com/repos/symengine/symengine/pulls/1317","id":133435083,"html_url":"https://github.com/symengine/symengine/pull/1317","diff_url":"https://github.com/symengine/symengine/pull/1317.diff","patch_url":"https://github.com/symengine/symengine/pull/1317.patch","issue_url":"https://api.github.com/repos/symengine/symengine/issues/1317","number":1317,"state":"open","locked":false,"title":"system of equations","user":{"login":"ranjithkumar007","id":17480353,"avatar_url":"https://avatars0.githubusercontent.com/u/17480353?v=4","gravatar_id":"","url":"https://api.github.com/users/ranjithkumar007","html_url":"https://github.com/ranjithkumar007","followers_url":"https://api.github.com/users/ranjithkumar007/followers","following_url":"https://api.github.com/users/ranjithkumar007/following{/other_user}","gists_url":"https://api.github.com/users/ranjithkumar007/gists{/gist_id}","starred_url":"https://api.github.com/users/ranjithkumar007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranjithkumar007/subscriptions","organizations_url":"https://api.github.com/users/ranjithkumar007/orgs","repos_url":"https://api.github.com/users/ranjithkumar007/repos","events_url":"https://api.github.com/users/ranjithkumar007/events{/privacy}","received_events_url":"https://api.github.com/users/ranjithkumar007/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-08-01T10:06:49Z","updated_at":"2017-08-17T14:52:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f4f47e744a3e25baf338e6a555fe98ee90c4acf","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/symengine/symengine/pulls/1317/commits","review_comments_url":"https://api.github.com/repos/symengine/symengine/pulls/1317/comments","review_comment_url":"https://api.github.com/repos/symengine/symengine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/symengine/symengine/issues/1317/comments","statuses_url":"https://api.github.com/repos/symengine/symengine/statuses/564a7753735e73c02edd1a3d783ccc9df9d0c857","head":{"label":"ranjithkumar007:systemofequations","ref":"systemofequations","sha":"564a7753735e73c02edd1a3d783ccc9df9d0c857","user":{"login":"ranjithkumar007","id":17480353,"avatar_url":"https://avatars0.githubusercontent.com/u/17480353?v=4","gravatar_id":"","url":"https://api.github.com/users/ranjithkumar007","html_url":"https://github.com/ranjithkumar007","followers_url":"https://api.github.com/users/ranjithkumar007/followers","following_url":"https://api.github.com/users/ranjithkumar007/following{/other_user}","gists_url":"https://api.github.com/users/ranjithkumar007/gists{/gist_id}","starred_url":"https://api.github.com/users/ranjithkumar007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranjithkumar007/subscriptions","organizations_url":"https://api.github.com/users/ranjithkumar007/orgs","repos_url":"https://api.github.com/users/ranjithkumar007/repos","events_url":"https://api.github.com/users/ranjithkumar007/events{/privacy}","received_events_url":"https://api.github.com/users/ranjithkumar007/received_events","type":"User","site_admin":false},"repo":{"id":61922421,"name":"symengine","full_name":"ranjithkumar007/symengine","owner":{"login":"ranjithkumar007","id":17480353,"avatar_url":"https://avatars0.githubusercontent.com/u/17480353?v=4","gravatar_id":"","url":"https://api.github.com/users/ranjithkumar007","html_url":"https://github.com/ranjithkumar007","followers_url":"https://api.github.com/users/ranjithkumar007/followers","following_url":"https://api.github.com/users/ranjithkumar007/following{/other_user}","gists_url":"https://api.github.com/users/ranjithkumar007/gists{/gist_id}","starred_url":"https://api.github.com/users/ranjithkumar007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranjithkumar007/subscriptions","organizations_url":"https://api.github.com/users/ranjithkumar007/orgs","repos_url":"https://api.github.com/users/ranjithkumar007/repos","events_url":"https://api.github.com/users/ranjithkumar007/events{/privacy}","received_events_url":"https://api.github.com/users/ranjithkumar007/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ranjithkumar007/symengine","description":"SymEngine is a fast symbolic manipulation library, written in C++","fork":true,"url":"https://api.github.com/repos/ranjithkumar007/symengine","forks_url":"https://api.github.com/repos/ranjithkumar007/symengine/forks","keys_url":"https://api.github.com/repos/ranjithkumar007/symengine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ranjithkumar007/symengine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ranjithkumar007/symengine/teams","hooks_url":"https://api.github.com/repos/ranjithkumar007/symengine/hooks","issue_events_url":"https://api.github.com/repos/ranjithkumar007/symengine/issues/events{/number}","events_url":"https://api.github.com/repos/ranjithkumar007/symengine/events","assignees_url":"https://api.github.com/repos/ranjithkumar007/symengine/assignees{/user}","branches_url":"https://api.github.com/repos/ranjithkumar007/symengine/branches{/branch}","tags_url":"https://api.github.com/repos/ranjithkumar007/symengine/tags","blobs_url":"https://api.github.com/repos/ranjithkumar007/symengine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ranjithkumar007/symengine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ranjithkumar007/symengine/git/refs{/sha}","trees_url":"https://api.github.com/repos/ranjithkumar007/symengine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ranjithkumar007/symengine/statuses/{sha}","languages_url":"https://api.github.com/repos/ranjithkumar007/symengine/languages","stargazers_url":"https://api.github.com/repos/ranjithkumar007/symengine/stargazers","contributors_url":"https://api.github.com/repos/ranjithkumar007/symengine/contributors","subscribers_url":"https://api.github.com/repos/ranjithkumar007/symengine/subscribers","subscription_url":"https://api.github.com/repos/ranjithkumar007/symengine/subscription","commits_url":"https://api.github.com/repos/ranjithkumar007/symengine/commits{/sha}","git_commits_url":"https://api.github.com/repos/ranjithkumar007/symengine/git/commits{/sha}","comments_url":"https://api.github.com/repos/ranjithkumar007/symengine/comments{/number}","issue_comment_url":"https://api.github.com/repos/ranjithkumar007/symengine/issues/comments{/number}","contents_url":"https://api.github.com/repos/ranjithkumar007/symengine/contents/{+path}","compare_url":"https://api.github.com/repos/ranjithkumar007/symengine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ranjithkumar007/symengine/merges","archive_url":"https://api.github.com/repos/ranjithkumar007/symengine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ranjithkumar007/symengine/downloads","issues_url":"https://api.github.com/repos/ranjithkumar007/symengine/issues{/number}","pulls_url":"https://api.github.com/repos/ranjithkumar007/symengine/pulls{/number}","milestones_url":"https://api.github.com/repos/ranjithkumar007/symengine/milestones{/number}","notifications_url":"https://api.github.com/repos/ranjithkumar007/symengine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ranjithkumar007/symengine/labels{/name}","releases_url":"https://api.github.com/repos/ranjithkumar007/symengine/releases{/id}","deployments_url":"https://api.github.com/repos/ranjithkumar007/symengine/deployments","created_at":"2016-06-25T02:05:31Z","updated_at":"2016-12-27T14:03:55Z","pushed_at":"2017-08-15T12:08:23Z","git_url":"git://github.com/ranjithkumar007/symengine.git","ssh_url":"git@github.com:ranjithkumar007/symengine.git","clone_url":"https://github.com/ranjithkumar007/symengine.git","svn_url":"https://github.com/ranjithkumar007/symengine","homepage":"http://sympy.org","size":7459,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_projects":true,"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":"symengine:master","ref":"master","sha":"677eb9def2bd964dbe13d614db1a26e70123f402","user":{"login":"symengine","id":11509221,"avatar_url":"https://avatars2.githubusercontent.com/u/11509221?v=4","gravatar_id":"","url":"https://api.github.com/users/symengine","html_url":"https://github.com/symengine","followers_url":"https://api.github.com/users/symengine/followers","following_url":"https://api.github.com/users/symengine/following{/other_user}","gists_url":"https://api.github.com/users/symengine/gists{/gist_id}","starred_url":"https://api.github.com/users/symengine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symengine/subscriptions","organizations_url":"https://api.github.com/users/symengine/orgs","repos_url":"https://api.github.com/users/symengine/repos","events_url":"https://api.github.com/users/symengine/events{/privacy}","received_events_url":"https://api.github.com/users/symengine/received_events","type":"Organization","site_admin":false},"repo":{"id":42376,"name":"symengine","full_name":"symengine/symengine","owner":{"login":"symengine","id":11509221,"avatar_url":"https://avatars2.githubusercontent.com/u/11509221?v=4","gravatar_id":"","url":"https://api.github.com/users/symengine","html_url":"https://github.com/symengine","followers_url":"https://api.github.com/users/symengine/followers","following_url":"https://api.github.com/users/symengine/following{/other_user}","gists_url":"https://api.github.com/users/symengine/gists{/gist_id}","starred_url":"https://api.github.com/users/symengine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symengine/subscriptions","organizations_url":"https://api.github.com/users/symengine/orgs","repos_url":"https://api.github.com/users/symengine/repos","events_url":"https://api.github.com/users/symengine/events{/privacy}","received_events_url":"https://api.github.com/users/symengine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/symengine/symengine","description":"SymEngine is a fast symbolic manipulation library, written in C++","fork":false,"url":"https://api.github.com/repos/symengine/symengine","forks_url":"https://api.github.com/repos/symengine/symengine/forks","keys_url":"https://api.github.com/repos/symengine/symengine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/symengine/symengine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/symengine/symengine/teams","hooks_url":"https://api.github.com/repos/symengine/symengine/hooks","issue_events_url":"https://api.github.com/repos/symengine/symengine/issues/events{/number}","events_url":"https://api.github.com/repos/symengine/symengine/events","assignees_url":"https://api.github.com/repos/symengine/symengine/assignees{/user}","branches_url":"https://api.github.com/repos/symengine/symengine/branches{/branch}","tags_url":"https://api.github.com/repos/symengine/symengine/tags","blobs_url":"https://api.github.com/repos/symengine/symengine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/symengine/symengine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/symengine/symengine/git/refs{/sha}","trees_url":"https://api.github.com/repos/symengine/symengine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/symengine/symengine/statuses/{sha}","languages_url":"https://api.github.com/repos/symengine/symengine/languages","stargazers_url":"https://api.github.com/repos/symengine/symengine/stargazers","contributors_url":"https://api.github.com/repos/symengine/symengine/contributors","subscribers_url":"https://api.github.com/repos/symengine/symengine/subscribers","subscription_url":"https://api.github.com/repos/symengine/symengine/subscription","commits_url":"https://api.github.com/repos/symengine/symengine/commits{/sha}","git_commits_url":"https://api.github.com/repos/symengine/symengine/git/commits{/sha}","comments_url":"https://api.github.com/repos/symengine/symengine/comments{/number}","issue_comment_url":"https://api.github.com/repos/symengine/symengine/issues/comments{/number}","contents_url":"https://api.github.com/repos/symengine/symengine/contents/{+path}","compare_url":"https://api.github.com/repos/symengine/symengine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/symengine/symengine/merges","archive_url":"https://api.github.com/repos/symengine/symengine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/symengine/symengine/downloads","issues_url":"https://api.github.com/repos/symengine/symengine/issues{/number}","pulls_url":"https://api.github.com/repos/symengine/symengine/pulls{/number}","milestones_url":"https://api.github.com/repos/symengine/symengine/milestones{/number}","notifications_url":"https://api.github.com/repos/symengine/symengine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/symengine/symengine/labels{/name}","releases_url":"https://api.github.com/repos/symengine/symengine/releases{/id}","deployments_url":"https://api.github.com/repos/symengine/symengine/deployments","created_at":"2008-08-13T18:40:14Z","updated_at":"2017-08-17T02:45:25Z","pushed_at":"2017-08-15T12:08:25Z","git_url":"git://github.com/symengine/symengine.git","ssh_url":"git@github.com:symengine/symengine.git","clone_url":"https://github.com/symengine/symengine.git","svn_url":"https://github.com/symengine/symengine","homepage":"http://sympy.org","size":7370,"stargazers_count":257,"watchers_count":257,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":151,"mirror_url":null,"open_issues_count":127,"forks":151,"open_issues":127,"watchers":257,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/symengine/symengine/pulls/1317"},"html":{"href":"https://github.com/symengine/symengine/pull/1317"},"issue":{"href":"https://api.github.com/repos/symengine/symengine/issues/1317"},"comments":{"href":"https://api.github.com/repos/symengine/symengine/issues/1317/comments"},"review_comments":{"href":"https://api.github.com/repos/symengine/symengine/pulls/1317/comments"},"review_comment":{"href":"https://api.github.com/repos/symengine/symengine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/symengine/symengine/pulls/1317/commits"},"statuses":{"href":"https://api.github.com/repos/symengine/symengine/statuses/564a7753735e73c02edd1a3d783ccc9df9d0c857"}}}}
{"actor":{"display_login":"isuruf"}}