{"action":"created","comment":{"url":"https://api.github.com/repos/symengine/symengine/pulls/comments/50853280","id":50853280,"diff_hunk":"@@ -0,0 +1,172 @@\n+#include <symengine/series_flint.h>\n+#include <symengine/series_visitor.h>\n+\n+#ifdef HAVE_SYMENGINE_FLINT\n+namespace SymEngine {\n+\n+URatPSeriesFlint::URatPSeriesFlint(fp_t p, const std::string varname, const unsigned degree)\n+        : SeriesBase(std::move(p), varname, degree) {\n+\n+}\n+RCP<const URatPSeriesFlint> URatPSeriesFlint::series(const RCP<const Basic> &t, const std::string &x, unsigned int prec) {\n+    fp_t p(\"2  0 1\");\n+    SeriesVisitor<fp_t, flint::fmpqxx, URatPSeriesFlint> visitor(p, x, prec);\n+    return visitor.series(t);\n+}\n+\n+unsigned int str_hash(const char* s, unsigned int seed = 0)\n+{\n+    unsigned int hash = seed;\n+    while (*s)\n+    {\n+        hash = hash * 101  +  *s++;\n+    }\n+    return hash;\n+}\n+\n+std::size_t URatPSeriesFlint::__hash__() const {\n+    std::size_t seed = URATPSERIESPIRANHA;\n+    hash_combine(seed, var_);\n+    hash_combine(seed, degree_);\n+    hash_combine(seed, str_hash(p_.to_string().c_str(), seed));","path":"symengine/series_flint.cpp","position":31,"original_position":31,"commit_id":"228d67341f90fe795df72926fb2d90f29bff4f39","original_commit_id":"228d67341f90fe795df72926fb2d90f29bff4f39","user":{"login":"rwst","id":1146709,"avatar_url":"https://avatars.githubusercontent.com/u/1146709?v=3","gravatar_id":"","url":"https://api.github.com/users/rwst","html_url":"https://github.com/rwst","followers_url":"https://api.github.com/users/rwst/followers","following_url":"https://api.github.com/users/rwst/following{/other_user}","gists_url":"https://api.github.com/users/rwst/gists{/gist_id}","starred_url":"https://api.github.com/users/rwst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwst/subscriptions","organizations_url":"https://api.github.com/users/rwst/orgs","repos_url":"https://api.github.com/users/rwst/repos","events_url":"https://api.github.com/users/rwst/events{/privacy}","received_events_url":"https://api.github.com/users/rwst/received_events","type":"User","site_admin":false},"body":"Ah you mean the extra `c_str()` and seed? Will try without.","created_at":"2016-01-26T15:54:12Z","updated_at":"2016-01-26T15:54:12Z","html_url":"https://github.com/symengine/symengine/pull/780#discussion_r50853280","pull_request_url":"https://api.github.com/repos/symengine/symengine/pulls/780","_links":{"self":{"href":"https://api.github.com/repos/symengine/symengine/pulls/comments/50853280"},"html":{"href":"https://github.com/symengine/symengine/pull/780#discussion_r50853280"},"pull_request":{"href":"https://api.github.com/repos/symengine/symengine/pulls/780"}}},"pull_request":{"url":"https://api.github.com/repos/symengine/symengine/pulls/780","id":57225512,"html_url":"https://github.com/symengine/symengine/pull/780","diff_url":"https://github.com/symengine/symengine/pull/780.diff","patch_url":"https://github.com/symengine/symengine/pull/780.patch","issue_url":"https://api.github.com/repos/symengine/symengine/issues/780","number":780,"state":"open","locked":false,"title":"Flint univariate series expansion","user":{"login":"rwst","id":1146709,"avatar_url":"https://avatars.githubusercontent.com/u/1146709?v=3","gravatar_id":"","url":"https://api.github.com/users/rwst","html_url":"https://github.com/rwst","followers_url":"https://api.github.com/users/rwst/followers","following_url":"https://api.github.com/users/rwst/following{/other_user}","gists_url":"https://api.github.com/users/rwst/gists{/gist_id}","starred_url":"https://api.github.com/users/rwst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwst/subscriptions","organizations_url":"https://api.github.com/users/rwst/orgs","repos_url":"https://api.github.com/users/rwst/repos","events_url":"https://api.github.com/users/rwst/events{/privacy}","received_events_url":"https://api.github.com/users/rwst/received_events","type":"User","site_admin":false},"body":"Flint polys cannot do `cot()`, `csc()`, and `lambert_w()` because they cannot handle Laurent polys.","created_at":"2016-01-26T15:29:21Z","updated_at":"2016-01-26T15:54:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6d3ecb5fa6d8bf02c5b5458d01fa9f9671865756","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/symengine/symengine/pulls/780/commits","review_comments_url":"https://api.github.com/repos/symengine/symengine/pulls/780/comments","review_comment_url":"https://api.github.com/repos/symengine/symengine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/symengine/symengine/issues/780/comments","statuses_url":"https://api.github.com/repos/symengine/symengine/statuses/228d67341f90fe795df72926fb2d90f29bff4f39","head":{"label":"rwst:flint-series","ref":"flint-series","sha":"228d67341f90fe795df72926fb2d90f29bff4f39","user":{"login":"rwst","id":1146709,"avatar_url":"https://avatars.githubusercontent.com/u/1146709?v=3","gravatar_id":"","url":"https://api.github.com/users/rwst","html_url":"https://github.com/rwst","followers_url":"https://api.github.com/users/rwst/followers","following_url":"https://api.github.com/users/rwst/following{/other_user}","gists_url":"https://api.github.com/users/rwst/gists{/gist_id}","starred_url":"https://api.github.com/users/rwst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwst/subscriptions","organizations_url":"https://api.github.com/users/rwst/orgs","repos_url":"https://api.github.com/users/rwst/repos","events_url":"https://api.github.com/users/rwst/events{/privacy}","received_events_url":"https://api.github.com/users/rwst/received_events","type":"User","site_admin":false},"repo":{"id":44870523,"name":"symengine","full_name":"rwst/symengine","owner":{"login":"rwst","id":1146709,"avatar_url":"https://avatars.githubusercontent.com/u/1146709?v=3","gravatar_id":"","url":"https://api.github.com/users/rwst","html_url":"https://github.com/rwst","followers_url":"https://api.github.com/users/rwst/followers","following_url":"https://api.github.com/users/rwst/following{/other_user}","gists_url":"https://api.github.com/users/rwst/gists{/gist_id}","starred_url":"https://api.github.com/users/rwst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwst/subscriptions","organizations_url":"https://api.github.com/users/rwst/orgs","repos_url":"https://api.github.com/users/rwst/repos","events_url":"https://api.github.com/users/rwst/events{/privacy}","received_events_url":"https://api.github.com/users/rwst/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rwst/symengine","description":"SymEngine is a fast symbolic manipulation library, written in C++","fork":true,"url":"https://api.github.com/repos/rwst/symengine","forks_url":"https://api.github.com/repos/rwst/symengine/forks","keys_url":"https://api.github.com/repos/rwst/symengine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rwst/symengine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rwst/symengine/teams","hooks_url":"https://api.github.com/repos/rwst/symengine/hooks","issue_events_url":"https://api.github.com/repos/rwst/symengine/issues/events{/number}","events_url":"https://api.github.com/repos/rwst/symengine/events","assignees_url":"https://api.github.com/repos/rwst/symengine/assignees{/user}","branches_url":"https://api.github.com/repos/rwst/symengine/branches{/branch}","tags_url":"https://api.github.com/repos/rwst/symengine/tags","blobs_url":"https://api.github.com/repos/rwst/symengine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rwst/symengine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rwst/symengine/git/refs{/sha}","trees_url":"https://api.github.com/repos/rwst/symengine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rwst/symengine/statuses/{sha}","languages_url":"https://api.github.com/repos/rwst/symengine/languages","stargazers_url":"https://api.github.com/repos/rwst/symengine/stargazers","contributors_url":"https://api.github.com/repos/rwst/symengine/contributors","subscribers_url":"https://api.github.com/repos/rwst/symengine/subscribers","subscription_url":"https://api.github.com/repos/rwst/symengine/subscription","commits_url":"https://api.github.com/repos/rwst/symengine/commits{/sha}","git_commits_url":"https://api.github.com/repos/rwst/symengine/git/commits{/sha}","comments_url":"https://api.github.com/repos/rwst/symengine/comments{/number}","issue_comment_url":"https://api.github.com/repos/rwst/symengine/issues/comments{/number}","contents_url":"https://api.github.com/repos/rwst/symengine/contents/{+path}","compare_url":"https://api.github.com/repos/rwst/symengine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rwst/symengine/merges","archive_url":"https://api.github.com/repos/rwst/symengine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rwst/symengine/downloads","issues_url":"https://api.github.com/repos/rwst/symengine/issues{/number}","pulls_url":"https://api.github.com/repos/rwst/symengine/pulls{/number}","milestones_url":"https://api.github.com/repos/rwst/symengine/milestones{/number}","notifications_url":"https://api.github.com/repos/rwst/symengine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rwst/symengine/labels{/name}","releases_url":"https://api.github.com/repos/rwst/symengine/releases{/id}","deployments_url":"https://api.github.com/repos/rwst/symengine/deployments","created_at":"2015-10-24T14:49:40Z","updated_at":"2016-01-15T06:37:28Z","pushed_at":"2016-01-26T15:27:29Z","git_url":"git://github.com/rwst/symengine.git","ssh_url":"git@github.com:rwst/symengine.git","clone_url":"https://github.com/rwst/symengine.git","svn_url":"https://github.com/rwst/symengine","homepage":"http://sympy.org","size":3882,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"3f0c0947ae09bac9545334a6903d9d72c7043a52","user":{"login":"symengine","id":11509221,"avatar_url":"https://avatars.githubusercontent.com/u/11509221?v=3","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://avatars.githubusercontent.com/u/11509221?v=3","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":"2016-01-16T19:47:45Z","pushed_at":"2016-01-26T15:29:23Z","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":33261,"stargazers_count":107,"watchers_count":107,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":84,"mirror_url":null,"open_issues_count":90,"forks":84,"open_issues":90,"watchers":107,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/symengine/symengine/pulls/780"},"html":{"href":"https://github.com/symengine/symengine/pull/780"},"issue":{"href":"https://api.github.com/repos/symengine/symengine/issues/780"},"comments":{"href":"https://api.github.com/repos/symengine/symengine/issues/780/comments"},"review_comments":{"href":"https://api.github.com/repos/symengine/symengine/pulls/780/comments"},"review_comment":{"href":"https://api.github.com/repos/symengine/symengine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/symengine/symengine/pulls/780/commits"},"statuses":{"href":"https://api.github.com/repos/symengine/symengine/statuses/228d67341f90fe795df72926fb2d90f29bff4f39"}}}}