Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Aug 22, 2024
1 parent 800b504 commit 335d1fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ end

Base.zero(a::AlgebraElement) = (b = similar(a); return MA.operate!(zero, b))
Base.one(a::AlgebraElement) = one(eltype(a), parent(a))
# `iszero(coeffs(a))` doesn't work if `coeffs(a) isa Tuple`
Base.iszero(a::AlgebraElement) = all(iszero, coeffs(a))

function Base.isone(a::AlgebraElement)
Expand Down

0 comments on commit 335d1fb

Please sign in to comment.