Skip to content

Commit

Permalink
Removed redundant zero method
Browse files Browse the repository at this point in the history
  • Loading branch information
brainandforce committed May 7, 2024
1 parent 2b84ea6 commit 4ce16a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/abstract.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 4ce16a3

Please sign in to comment.