Skip to content
This repository has been archived by the owner on Dec 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #21 from GregPlowman/master
Browse files Browse the repository at this point in the history
Remove explicit methods for zero and one
  • Loading branch information
dpsanders authored May 12, 2017
2 parents 7c4e979 + 10662a1 commit 295941d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/DoubleDouble.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import Base:
convert,
*, +, -, /, sqrt, <,
rem, abs, rand, promote_rule,
show, big,
zero, one
show, big

abstract AbstractDouble{T} <: Real

Expand Down Expand Up @@ -52,11 +51,6 @@ function splitprec(x::AbstractFloat)
end


zero{T<:AbstractFloat}(::Type{Double{T}}) = Double(zero(T))
one{T<:AbstractFloat}(::Type{Double{T}}) = Double(one(T))
zero(a::Double) = Double(zero(a.hi))
one(a::Double) = Double(one(a.hi))

# ones(T::Double, dims...) = fill!(Array(T, dims...), (one)(T))
# zeros(T::Double, dims...) = fill!(Array(T, dims...), (zero)(T))

Expand Down

0 comments on commit 295941d

Please sign in to comment.