-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Description
Seems like it would make sense to have isapprox
be defined for Tuples.
julia> isapprox((1,2),(1,2))
ERROR: MethodError: no method matching isapprox(::Tuple{Int64,Int64}, ::Tuple{Int64,Int64})
This should at least hold for tuples of matching type, although perhaps a more permissive rule would be useful. Candidate implementation:
Base.isapprox{T <: Tuple}(x::T, y::T) = all(isapprox(a,b) for (a,b) in zip(x,y))
sbromberger and gdalle
Metadata
Metadata
Assignees
Labels
No labels