Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
blegat committed Dec 15, 2024
1 parent 45419eb commit 9d8a104
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/fixed.jl
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ Elements of [`SemisimpleBasis`](@ref).
struct SemisimpleElement{P}
elements::Vector{P}
end
SA.star(p::SemisimpleElement) = SemisimpleElement(SA.star.(p.polynomials))
SA.star(p::SemisimpleElement) = SemisimpleElement(SA.star.(p.elements))

function Base.getindex(b::SemisimpleBasis, i::Integer)
return SemisimpleElement(getindex.(b.bases, i))
10 changes: 10 additions & 0 deletions src/polynomial.jl
Original file line number Diff line number Diff line change
@@ -41,6 +41,16 @@ end

abstract type AbstractMonomialIndexed end

"""
struct Polynomial{B<:AbstractMonomialIndexed,M<:MP.AbstractMonomial}
monomial::M
function Polynomial{B}(mono::MP.AbstractMonomial) where {B}
return new{B,typeof(mono)}(mono)
end
end
Polynomial of basis `FullBasis{B,M}()` at index `monomial`.
"""
struct Polynomial{B<:AbstractMonomialIndexed,M<:MP.AbstractMonomial}
monomial::M
function Polynomial{B}(mono::MP.AbstractMonomial) where {B}

0 comments on commit 9d8a104

Please sign in to comment.