Open Sander80 opened 2 months ago
Until we add such a function, I suggest parsing to a multivariate using nmod_mpoly_set_str_pretty
and converting using nmod_mpoly_get_nmod_poly
.
Sorry, cannot find nmod_mpoly_get_nmod_poly, which function did you mean?
It's apparently undocumented, but it's defined here: https://github.com/flintlib/flint/blob/90931337cf49fee23db7de578863f11878f291f9/src/nmod_mpoly.h#L490
I see, thank you!
Works fine! Univariate functions like Evaluate are much faster that "multivariate with 1 variable"
Greetings! In the documentation and in the code there seem to be missing a "pretty format parser" for univariate modular polynomials. For multivariate there is a nmod_mpoly_set_str_pretty, but there is no analogue for univariate, only a parser for a special format. Is this intentional? Or perhaps there is a fast workaround to use a multivariate parser and then to translate nmod_mpoly_t into nmod_poly_t? A term cycle with nmod_poly_set_coeff_ui but is not this an overkill?