From 335d1fb067a8f659f4226e470cd039923f69edbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Thu, 22 Aug 2024 17:29:02 +0200 Subject: [PATCH] Add comment --- src/types.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types.jl b/src/types.jl index 313d426..3613881 100644 --- a/src/types.jl +++ b/src/types.jl @@ -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)