Skip to content

Quantics grid rounding problem #29

@thkloss

Description

@thkloss

grid::Quantics may return the wrong bitvector for a given coordinate.
In the given test example, we sample over all 2**nBit gridpoints and compare the corresponding bitvector from the grid.coord_to_id(x)
method and a reference implementation. Both differ from time to time, and one can check by looking at the actual output that the grid.coord_to_id(x) method does not always increment the bits properly.
This behaviour is probably due to some rounding issues, due to the intermediate conversion to a floating point number.

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