diff --git a/Project.toml b/Project.toml index 4834f8a..aa696ff 100644 --- a/Project.toml +++ b/Project.toml @@ -22,5 +22,5 @@ JuMP = "1.15" MathOptInterface = "1" MultivariatePolynomials = "0.6" MutableArithmetics = "1.9" -StarAlgebras = "0.4" +StarAlgebras = "0.4.4" julia = "1.10" diff --git a/src/chebyshev.jl b/src/chebyshev.jl index b1e8b74..ad392f5 100644 --- a/src/chebyshev.jl +++ b/src/chebyshev.jl @@ -79,11 +79,8 @@ function (m::MStruct{B,V,E})( var_state_b = iterate(vars_b, state_b) end end - # FIXME is `canonical` needed ? - return MA.operate!( - SA.canonical, - SA.SparseCoefficients(exps, coefs, SA.comparable(m.basis)), - ) + # The products of the univariate polynomials are not sorted + return SA.sparse_coefficients(exps, coefs, SA.comparable(m.basis)) end function _add_mul_scalar_vector!(res, ::SubBasis, scalar, vector)