SparsePolynomialCoercionHelpers(R, VarSet1, VarSet2)ΒΆ
multpoly.spad line 776 [edit on github]
R: Ring
VarSet1: OrderedSet
VarSet2: OrderedSet
This package contains a function which speeds up coercion in an important special case.
- remap_variables: (SparseMultivariatePolynomial(R, VarSet1), List VarSet1, List VarSet2) -> SparseMultivariatePolynomial(R, VarSet2)
remap_variables(p, lv1, lv2)
replaces corresponding variables froml1
by variables fromlv2
. Assumes thatlv1
andlv2
have the same length and thatp
has variables inlv1
.