{"action":"created","issue":{"url":"https://api.github.com/repos/josdejong/mathjs/issues/321","labels_url":"https://api.github.com/repos/josdejong/mathjs/issues/321/labels{/name}","comments_url":"https://api.github.com/repos/josdejong/mathjs/issues/321/comments","events_url":"https://api.github.com/repos/josdejong/mathjs/issues/321/events","html_url":"https://github.com/josdejong/mathjs/pull/321","id":67457481,"number":321,"title":"Matrix LU decomposition with partial pivoting and LU based linear equations solver","user":{"login":"rjbaucells","id":1074987,"avatar_url":"https://avatars.githubusercontent.com/u/1074987?v=3","gravatar_id":"","url":"https://api.github.com/users/rjbaucells","html_url":"https://github.com/rjbaucells","followers_url":"https://api.github.com/users/rjbaucells/followers","following_url":"https://api.github.com/users/rjbaucells/following{/other_user}","gists_url":"https://api.github.com/users/rjbaucells/gists{/gist_id}","starred_url":"https://api.github.com/users/rjbaucells/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjbaucells/subscriptions","organizations_url":"https://api.github.com/users/rjbaucells/orgs","repos_url":"https://api.github.com/users/rjbaucells/repos","events_url":"https://api.github.com/users/rjbaucells/events{/privacy}","received_events_url":"https://api.github.com/users/rjbaucells/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-04-09T21:43:21Z","updated_at":"2015-04-13T07:30:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/josdejong/mathjs/pulls/321","html_url":"https://github.com/josdejong/mathjs/pull/321","diff_url":"https://github.com/josdejong/mathjs/pull/321.diff","patch_url":"https://github.com/josdejong/mathjs/pull/321.patch"},"body":"This pull request adds Matrix LU decomposition with partial pivoting and a LU based linear equations solver.\r\n\r\nSyntax (CLI): \r\n\r\n`m = [1, 2, -1; 2, 1, 1; 1, 2, 1];`\r\n`x = lusolve(m, [4; -2; 2])`\r\n\r\nUsing explicit LUP decomposition:\r\n\r\n`m = [1, 2, -1; 2, 1, 1; 1, 2, 1];`\r\n`d = lup(m);`\r\n`x = lusolve(d, [4; -2; 2])` --> Solving linear equations system 1\r\n`y = lusolve(d, [1; 1; 8])`  --> Solving linear equations system 2 (same LUP decomposition)\r\n\r\nAlgorithms have been optimized for Dense and Sparse Matrices:\r\n\r\n`m = matrix([1, 2, -1; 2, 1, 1; 1, 2, 1], \"ccs\");`\r\n`x = lusolve(m, [4; -2; 2])`\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/josdejong/mathjs/issues/comments/92251192","html_url":"https://github.com/josdejong/mathjs/pull/321#issuecomment-92251192","issue_url":"https://api.github.com/repos/josdejong/mathjs/issues/321","id":92251192,"user":{"login":"josdejong","id":568626,"avatar_url":"https://avatars.githubusercontent.com/u/568626?v=3","gravatar_id":"","url":"https://api.github.com/users/josdejong","html_url":"https://github.com/josdejong","followers_url":"https://api.github.com/users/josdejong/followers","following_url":"https://api.github.com/users/josdejong/following{/other_user}","gists_url":"https://api.github.com/users/josdejong/gists{/gist_id}","starred_url":"https://api.github.com/users/josdejong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josdejong/subscriptions","organizations_url":"https://api.github.com/users/josdejong/orgs","repos_url":"https://api.github.com/users/josdejong/repos","events_url":"https://api.github.com/users/josdejong/events{/privacy}","received_events_url":"https://api.github.com/users/josdejong/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T07:30:57Z","updated_at":"2015-04-13T07:30:57Z","body":"Thanks a lot! Looks good, I will merge your PR now."}}