Replies: 1 comment
-
Given that the degree tables of the operands are already canonically sorted, joining the tables while restoring the sorting is possible in linear time; expansion and recombination is slightly more expensive. Here's a pseudo code for combining the degree tables of two polynomials,
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The degree table (
degmat
) of a polynomial describes, for each monomial term, the degree of each variable in that term. Most polynomial operations which manipulate the degree table do so in either of the following ways:plus
orcat
join the degree tables of the polynomials involved in the operation, where coefficients, that is, entries in the degree table, that appear in multiple operands are combined (e.g., added or concatenated).times
ormtimes
expand (permute) the degree tables of the operands to ensure that each coefficient (entry) of any operand is recombined (e.g., multiplied) with all coefficients (entries) of any other operand.In the current implementation, these use cases involve the following operations:
unique
function is used; this operation also returns the new degree table in canonical sorting;While these operations are moderately fast due to their C++ implementation, they are inefficient and computation times become noticeable for larger instances (see, e.g., #63). Let$N_1$ and $N_2$ be the number of degrees in a binary operation; then
unique
isBeta Was this translation helpful? Give feedback.
All reactions