Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed May 9, 2024
1 parent f491908 commit 58f4c64
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/chebyshev.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ function Base.iterate(t::MP.Term, state)
return nothing
end
end

function MA.operate!(
::SA.UnsafeAddMul{typeof(*)},
mc::MP.AbstractPolynomial,
Expand Down
15 changes: 15 additions & 0 deletions test/chebyshev.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@ using Test
using MultivariateBases
using DynamicPolynomials

@polyvar x y
a = MultivariateBases.Polynomial{Chebyshev}(x)
b = MultivariateBases.Polynomial{Chebyshev}(y)
a2 = a * a
typeof(a)
typeof(a2)
a2 * a2
basis = MultivariateBases.MonomialIndexedBasis{Chebyshev,monomial_type(x)}()
c = MultivariateBases.SA.AlgebraElement(MultivariateBases.SA.Dirac(x^2, 3),
MultivariateBases.SA.StarAlgebra(
MultivariateBases.Polynomial{Chebyshev}(constant_monomial(x)),
basis,
),
)

@testset "StarAlgebras" begin
@polyvar x
a = MultivariateBases.Polynomial{Chebyshev}(x)
Expand Down

0 comments on commit 58f4c64

Please sign in to comment.