diff --git a/src/MultivariateBases.jl b/src/MultivariateBases.jl index 038680a..0127d0a 100644 --- a/src/MultivariateBases.jl +++ b/src/MultivariateBases.jl @@ -65,14 +65,13 @@ function algebra( return Algebra{typeof(basis),B,M}(basis) end -# Needed ? -#function MA.promote_operation( -# ::typeof(algebra), -# BT::Type{ -# <:Union{QuotientBasis{Polynomial{B,M}},FullBasis{B,M},SubBasis{B,M}}, -# }, -#) where {B,M} -# return Algebra{BT,B,M} -#end +function MA.promote_operation( + ::typeof(algebra), + BT::Type{ + <:Union{QuotientBasis{Polynomial{B,M}},FullBasis{B,M},SubBasis{B,M}}, + }, +) where {B,M} + return Algebra{BT,B,M} +end end # module diff --git a/test/quotient.jl b/test/quotient.jl index 705765d..8a03179 100644 --- a/test/quotient.jl +++ b/test/quotient.jl @@ -19,7 +19,7 @@ end coeffs = [3, -2, 1] @test coefficients(p, basis) == coeffs a = MB.algebra_element(p) - @test StarAlgebras.coeffs(a, basis) == coeffs + @test SA.coeffs(a, basis) == coeffs explicit = MB.explicit_basis(a) exp = MB.algebra_element(SA.coeffs(a, explicit), explicit) @test SA.coeffs(exp, basis) == coeffs