Skip to content

[FEA] find_idx with dim #1105

@osayamenja

Description

@osayamenja

Is your feature request related to a problem? Please describe.
find_idx that accepts dim argument.

Describe the solution you'd like

  • For an MxN matrix, I would like to call find_idx across the rows.
  • Output tensor would now be 2D here, with each row containing the indices.
  • num_found would now be a 1D vector with each entry containing the number of matches per row.

Describe alternatives you've considered
I call the current find_idx on each row of my matrix in a loop.

Additional context
We can simplify to support only matrices. Thanks!

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