Open nsajko opened 1 year ago
Hmm, not sure what is right here, as q(p) will return something with container type of p in other cases. The mixed case is tricky with immutable polynomials.
I just put in a PR to start addressing issue like this. I'd also like to special case a path for p(q)
when both are immutable.
With v4.0.0:
It doesn't make sense for this composition to return an
ImmutableDensePolynomial
, because that makes type stability impossible, because the degree ofq
is not available in the type domain.