Skip to content

Commit

Permalink
Use parent for AlgebraElement (one missing) (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat authored Jun 12, 2024
1 parent 903f345 commit c5cc1f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/star.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Base.adjoint(a::AlgebraElement) = star(a)
star(x::Any) = x'

function star(X::AlgebraElement)
res = star(basis(parent(X)), coeffs(X))
res = star(basis(X), coeffs(X))
return AlgebraElement(res, parent(X))
end

Expand Down

0 comments on commit c5cc1f4

Please sign in to comment.