Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Equal degree #1026

Merged
merged 5 commits into from
Jul 21, 2016
Merged

Equal degree #1026

merged 5 commits into from
Jul 21, 2016

Conversation

nishnik
Copy link
Contributor

@nishnik nishnik commented Jul 7, 2016

Equal Degree Zassenhaus's algorithm

int mod_val = mp_get_si(modulo_);
std::vector<integer_class> v(n_val + 1);
for (int i = 0; i < n; ++i) {
v[i] = integer_class(std::rand() % mod_val);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are random number generators in GMP. We should use one of those if we are dealing with big numbers.

@certik
Copy link
Contributor

certik commented Jul 7, 2016

@isuruf left some commens. Overall it looks good.

@nishnik nishnik force-pushed the equal_degree branch 3 times, most recently from d389273 to e528014 Compare July 9, 2016 23:38
std::vector<GaloisFieldDict> b;
if (modulo_ != 2_z)
b = this->gf_frobenius_monomial_base();
size_t seed = 123456;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use std::rand() to generate the seed.

@isuruf isuruf merged commit 0191a25 into symengine:master Jul 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants