{"action":"created","issue":{"url":"https://api.github.com/repos/sympy/sympy/issues/11232","repository_url":"https://api.github.com/repos/sympy/sympy","labels_url":"https://api.github.com/repos/sympy/sympy/issues/11232/labels{/name}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/11232/comments","events_url":"https://api.github.com/repos/sympy/sympy/issues/11232/events","html_url":"https://github.com/sympy/sympy/pull/11232","id":159829573,"number":11232,"title":"cse modifications","user":{"login":"smichr","id":90703,"avatar_url":"https://avatars.githubusercontent.com/u/90703?v=3","gravatar_id":"","url":"https://api.github.com/users/smichr","html_url":"https://github.com/smichr","followers_url":"https://api.github.com/users/smichr/followers","following_url":"https://api.github.com/users/smichr/following{/other_user}","gists_url":"https://api.github.com/users/smichr/gists{/gist_id}","starred_url":"https://api.github.com/users/smichr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smichr/subscriptions","organizations_url":"https://api.github.com/users/smichr/orgs","repos_url":"https://api.github.com/users/smichr/repos","events_url":"https://api.github.com/users/smichr/events{/privacy}","received_events_url":"https://api.github.com/users/smichr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-06-12T14:14:58Z","updated_at":"2016-09-23T22:19:49Z","closed_at":"2016-09-13T17:47:41Z","pull_request":{"url":"https://api.github.com/repos/sympy/sympy/pulls/11232","html_url":"https://github.com/sympy/sympy/pull/11232","diff_url":"https://github.com/sympy/sympy/pull/11232.diff","patch_url":"https://github.com/sympy/sympy/pull/11232.patch"},"body":"- closes #10228\r\n- closes #11230"},"comment":{"url":"https://api.github.com/repos/sympy/sympy/issues/comments/249315928","html_url":"https://github.com/sympy/sympy/pull/11232#issuecomment-249315928","issue_url":"https://api.github.com/repos/sympy/sympy/issues/11232","id":249315928,"user":{"login":"smichr","id":90703,"avatar_url":"https://avatars.githubusercontent.com/u/90703?v=3","gravatar_id":"","url":"https://api.github.com/users/smichr","html_url":"https://github.com/smichr","followers_url":"https://api.github.com/users/smichr/followers","following_url":"https://api.github.com/users/smichr/following{/other_user}","gists_url":"https://api.github.com/users/smichr/gists{/gist_id}","starred_url":"https://api.github.com/users/smichr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smichr/subscriptions","organizations_url":"https://api.github.com/users/smichr/orgs","repos_url":"https://api.github.com/users/smichr/repos","events_url":"https://api.github.com/users/smichr/events{/privacy}","received_events_url":"https://api.github.com/users/smichr/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T22:19:49Z","updated_at":"2016-09-23T22:19:49Z","body":"@asmeurer , thanks for that reference. I ran the following in master and the cse2 branch and it looks like things have improved considerably (at least for that expression):\r\n\r\n```python\r\nimport sympy as sm\r\ntxt=('''\r\nMutableDenseMatrix([[Add(Mul(Symbol('l0'), Symbol('m1'), Pow(Function('u1')(Symbol('t')),\r\nInteger(2)), cos(Function('q1')(Symbol('t')))), Mul(Symbol('l0'), \r\n...\r\n''')\r\nt = sm.symbols('t')\r\nfuncs = [s(t) for s in sm.symbols('q:6, u:6', cls=sm.Function)]\r\nsyms = sm.symbols('x:{}'.format(len(funcs)))\r\nsubs = dict(zip(funcs, syms))\r\nfunc_matrix = sympify(txt)\r\nsym_matrix = func_matrix.subs(subs)\r\nlong_expr = 0\r\nfor expr in sym_matrix[:]:\r\n    long_expr += expr\r\n\r\nfrom time import time\r\nfor i in range(4):\r\n    t=time();ans=cse(long_expr);time()-t, count_ops(ans)\r\n\r\nmaster\r\n(0.93, 306)\r\n(0.63, 306)\r\n(0.63, 306)\r\n(0.62, 306)\r\n\r\ncse2\r\n(0.33, 297)\r\n(0.28, 297)\r\n(0.28, 297)\r\n(0.28, 297)\r\n(0.28, 297)\r\n```"}}
{"actor":{"display_login":"smichr"}}