Skip to content

Define == for JetSpace #417

@schillic

Description

@schillic

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions