Skip to content

PTransf16::validate returns false negatives #64

@james-d-mitchell

Description

@james-d-mitchell

Another example from the python bindings, on my computer:

 PTransf16([0, 1, 255]).validate(3) # returns False

I'd have expected this to return true the documentation is not very illuminating on this point either. It seems to me that validate should return true if and only if every value in the underlying vector is in the range $[0, 16)\cup \{255\}$. Am I understanding this correctly @hivert ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions