From 4ce16a331329d9627e2bffa86c0b69fad755fe00 Mon Sep 17 00:00:00 2001 From: Brandon Flores Date: Tue, 7 May 2024 17:21:16 -0500 Subject: [PATCH] Removed redundant `zero` method --- src/abstract.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/abstract.jl b/src/abstract.jl index fcaec95..58982a6 100644 --- a/src/abstract.jl +++ b/src/abstract.jl @@ -82,8 +82,7 @@ Generates a `Tuple` that can be used to construct `zero(C)`. """ zero_tuple(::Type{C}) where C<:AbstractCliffordNumber = zero_tuple(scalar_type(C), Val(length(C))) -zero(C::Type{<:AbstractCliffordNumber{Q,T}}) where {Q,T} = C(zero_tuple(C)) -zero(C::Type{<:AbstractCliffordNumber}) = C(zero_tuple(Bool, Val(length(C)))) +zero(::Type{C}) where C<:AbstractCliffordNumber = C(zero_tuple(Bool, Val(length(C)))) zero(x::AbstractCliffordNumber) = zero(typeof(x)) # The default defintion assumes oneunit(T) = T(one(x))