{"action":"opened","issue":{"url":"https://api.github.com/repos/casadi/casadi/issues/1476","labels_url":"https://api.github.com/repos/casadi/casadi/issues/1476/labels{/name}","comments_url":"https://api.github.com/repos/casadi/casadi/issues/1476/comments","events_url":"https://api.github.com/repos/casadi/casadi/issues/1476/events","html_url":"https://github.com/casadi/casadi/issues/1476","id":94319740,"number":1476,"title":"Refactor Function::map","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-10T14:39:26Z","updated_at":"2015-07-10T14:39:26Z","closed_at":null,"body":"The current design allows you to call a function with different apple-pear pairs:\r\n\r\n```\r\n[ [apple0 , pear0], [apple1, pear1],[apple2, pear2],...]\r\n```\r\n\r\nThis does not scale very well to large number of pairs.\r\nThe following may be better:\r\n\r\n```\r\n[ horzcat(apple0,apple1,apple2,...) , horzcat(pear0,pear2,pear2,...) ] \r\n```\r\n"}}