Skip to content

Argsort does not support axis #2014

Closed
Closed
@Dapid

Description

@Dapid

I have managed to minimise the code that triggers #2013 in isolation. It is due to argsort being passed the axis argument.

import numpy as np

# pythran export c3(float64[:])
def c3(data: np.ndarray):
    all_indexes = data.argsort(axis=0)
    return all_indexes

The issue also happens when data is 2D, for all valid values of the axis argument, and regardless of wether I use the array method or the numpy function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions