@@ -189,6 +189,6 @@ function fast_isapprox(x::Number, y::Number, rtol::Real = Base.rtoldefault(x, y)
189
189
x == y || (isfinite (x) && isfinite (y) && abs (x - y) <= atol + rtol* max (abs (x), abs (y)))
190
190
end
191
191
192
- Base. isapprox (A:: GPUArray{T1} , B:: GPUArray{T2} , rtol:: Real = Base. rtoldefault (T1, T2, 0 ), atol:: Real = 0 ) where {T1, T2} = all (fast_isapprox .(A, B, T1 (rtol), T1 (atol)))
193
- Base. isapprox (A:: AbstractArray{T1} , B:: GPUArray{T2} , rtol:: Real = Base. rtoldefault (T1, T2, 0 ), atol:: Real = 0 ) where {T1, T2} = all (fast_isapprox .(A, Array (B), T1 (rtol), T1 (atol)))
194
- Base. isapprox (A:: GPUArray{T1} , B:: AbstractArray{T2} , rtol:: Real = Base. rtoldefault (T1, T2, 0 ), atol:: Real = 0 ) where {T1, T2} = all (fast_isapprox .(Array (A), B, T1 (rtol), T1 (atol)))
192
+ Base. isapprox (A:: GPUArray{T1} , B:: GPUArray{T2} , rtol:: Real = Base. rtoldefault (T1, T2, 0 ), atol:: Real = 0 ) where {T1, T2} = all (fast_isapprox .(A, B, T1 (rtol)|> real , T1 (atol)|> real ))
193
+ Base. isapprox (A:: AbstractArray{T1} , B:: GPUArray{T2} , rtol:: Real = Base. rtoldefault (T1, T2, 0 ), atol:: Real = 0 ) where {T1, T2} = all (fast_isapprox .(A, Array (B), T1 (rtol)|> real , T1 (atol)|> real ))
194
+ Base. isapprox (A:: GPUArray{T1} , B:: AbstractArray{T2} , rtol:: Real = Base. rtoldefault (T1, T2, 0 ), atol:: Real = 0 ) where {T1, T2} = all (fast_isapprox .(Array (A), B, T1 (rtol)|> real , T1 (atol)|> real ))
0 commit comments