Skip to content

Commit

Permalink
Remove iszero fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Aug 23, 2024
1 parent 335d1fb commit 7836f8e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +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))
Base.iszero(a::AlgebraElement) = iszero(coeffs(a))

function Base.isone(a::AlgebraElement)
c = coeffs(a)
Expand Down

0 comments on commit 7836f8e

Please sign in to comment.