{"action":"created","issue":{"url":"https://api.github.com/repos/casadi/casadi/issues/1792","repository_url":"https://api.github.com/repos/casadi/casadi","labels_url":"https://api.github.com/repos/casadi/casadi/issues/1792/labels{/name}","comments_url":"https://api.github.com/repos/casadi/casadi/issues/1792/comments","events_url":"https://api.github.com/repos/casadi/casadi/issues/1792/events","html_url":"https://github.com/casadi/casadi/issues/1792","id":156737226,"number":1792,"title":"if_else() jacobian broken when using MX","user":{"login":"jbaayen","id":131573,"avatar_url":"https://avatars.githubusercontent.com/u/131573?v=3","gravatar_id":"","url":"https://api.github.com/users/jbaayen","html_url":"https://github.com/jbaayen","followers_url":"https://api.github.com/users/jbaayen/followers","following_url":"https://api.github.com/users/jbaayen/following{/other_user}","gists_url":"https://api.github.com/users/jbaayen/gists{/gist_id}","starred_url":"https://api.github.com/users/jbaayen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbaayen/subscriptions","organizations_url":"https://api.github.com/users/jbaayen/orgs","repos_url":"https://api.github.com/users/jbaayen/repos","events_url":"https://api.github.com/users/jbaayen/events{/privacy}","received_events_url":"https://api.github.com/users/jbaayen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/casadi/casadi/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"jaeandersson","id":2487645,"avatar_url":"https://avatars.githubusercontent.com/u/2487645?v=3","gravatar_id":"","url":"https://api.github.com/users/jaeandersson","html_url":"https://github.com/jaeandersson","followers_url":"https://api.github.com/users/jaeandersson/followers","following_url":"https://api.github.com/users/jaeandersson/following{/other_user}","gists_url":"https://api.github.com/users/jaeandersson/gists{/gist_id}","starred_url":"https://api.github.com/users/jaeandersson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaeandersson/subscriptions","organizations_url":"https://api.github.com/users/jaeandersson/orgs","repos_url":"https://api.github.com/users/jaeandersson/repos","events_url":"https://api.github.com/users/jaeandersson/events{/privacy}","received_events_url":"https://api.github.com/users/jaeandersson/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/casadi/casadi/milestones/16","html_url":"https://github.com/casadi/casadi/milestones/Version%203.1","labels_url":"https://api.github.com/repos/casadi/casadi/milestones/16/labels","id":1493063,"number":16,"title":"Version 3.1","description":"","creator":{"login":"jaeandersson","id":2487645,"avatar_url":"https://avatars.githubusercontent.com/u/2487645?v=3","gravatar_id":"","url":"https://api.github.com/users/jaeandersson","html_url":"https://github.com/jaeandersson","followers_url":"https://api.github.com/users/jaeandersson/followers","following_url":"https://api.github.com/users/jaeandersson/following{/other_user}","gists_url":"https://api.github.com/users/jaeandersson/gists{/gist_id}","starred_url":"https://api.github.com/users/jaeandersson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaeandersson/subscriptions","organizations_url":"https://api.github.com/users/jaeandersson/orgs","repos_url":"https://api.github.com/users/jaeandersson/repos","events_url":"https://api.github.com/users/jaeandersson/events{/privacy}","received_events_url":"https://api.github.com/users/jaeandersson/received_events","type":"User","site_admin":false},"open_issues":67,"closed_issues":16,"state":"open","created_at":"2016-01-08T19:07:42Z","updated_at":"2016-05-28T20:41:42Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-05-25T12:24:55Z","updated_at":"2016-05-30T15:15:41Z","closed_at":null,"body":"Using CasADi 2.4.3, the following code\r\n\r\n```\r\nx = MX.sym('x')\r\nF = MXFunction([x], [if_else(x > 10, x, 0)])\r\nF.init()\r\nprint F.jac(0, 0)\r\n\r\nx = SX.sym('x')\r\nF = SXFunction([x], [if_else(x > 10, x, 0)])\r\nF.init()\r\nprint F.jac(0, 0)\r\n```\r\n\r\nresults in\r\n\r\n```\r\n[jorn@mac test]$ python test.py \r\n0\r\n(10<x)\r\n```\r\n\r\nI would expect to get (10<x) for both MX and SX. \r\n\r\nThis issue breaks our B-Splines when using MX symbols."},"comment":{"url":"https://api.github.com/repos/casadi/casadi/issues/comments/222512777","html_url":"https://github.com/casadi/casadi/issues/1792#issuecomment-222512777","issue_url":"https://api.github.com/repos/casadi/casadi/issues/1792","id":222512777,"user":{"login":"jgillis","id":329032,"avatar_url":"https://avatars.githubusercontent.com/u/329032?v=3","gravatar_id":"","url":"https://api.github.com/users/jgillis","html_url":"https://github.com/jgillis","followers_url":"https://api.github.com/users/jgillis/followers","following_url":"https://api.github.com/users/jgillis/following{/other_user}","gists_url":"https://api.github.com/users/jgillis/gists{/gist_id}","starred_url":"https://api.github.com/users/jgillis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgillis/subscriptions","organizations_url":"https://api.github.com/users/jgillis/orgs","repos_url":"https://api.github.com/users/jgillis/repos","events_url":"https://api.github.com/users/jgillis/events{/privacy}","received_events_url":"https://api.github.com/users/jgillis/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T15:15:41Z","updated_at":"2016-05-30T15:15:41Z","body":"@jbaayen Seems to me that 'F = MXFunction([x], [if_else(x > 10, x, 0,False)]'  works just fine in 2.4.* ?"}}
{"actor":{"display_login":"jgillis"}}