|
function ==(a::TaylorN{T}, b::TaylorN{T}) where {T<:Number} |
|
space(a) === space(b) || return false |
|
if order(a) != order(b) |
|
a, b = fixorder(a, b) |
|
end |
|
return a.coeffs == b.coeffs |
|
end |
The code above compares the spaces. But there is no definition of ==, so it uses the fallback ===. This should change, as you can create a new space that is identical and then the comparison should return true (in my opinion).
TaylorSeries.jl/src/total_order.jl
Lines 23 to 29 in 7a8ccbd
The code above compares the spaces. But there is no definition of
==, so it uses the fallback===. This should change, as you can create a new space that is identical and then the comparison should returntrue(in my opinion).