Skip to content

value_locate returns 1d array given 2d input (different to IDL) #2179

@rsiddans

Description

@rsiddans

value_locate(vector,value) in gdl returns at most a 1d array even when value is a higher dimension array.
IDL version returns array of same dimension as value.

E.g.
IDL> print,value_locate(findgen(10),findgen(2,3))
0 1
2 3
4 5
GDL> print,value_locate(findgen(10),findgen(2,3))
0 1 2 3 4 5

This can break IDL code.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions