Skip to content

xt::where is very slow #1631

@phmalek

Description

@phmalek

I found out, that the xt::where function is much slower than numpy.where. In my program, I call xt::where(xt::equal(index_i, tag)), where index_i.size() = 20855806. For each iteration, this call takes aroung 0.13 s which is a lot! Python accomplishes exactly this task much better than xtensor. Is it due to a bug or do you have any suggestion for implementation?

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