Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Equivalent to Numpy amin, argsort? #99

Open
newbie-gk opened this issue Feb 11, 2019 · 1 comment
Open

Equivalent to Numpy amin, argsort? #99

newbie-gk opened this issue Feb 11, 2019 · 1 comment

Comments

@newbie-gk
Copy link

I'm looking to convert numpy code and was wondering where the equilavent functions/method as amin, argsort are... Would be great if you could point me to a Class or where the implementation is?

@mikera
Copy link
Owner

mikera commented Feb 15, 2019

There isn't a precise equivalent at present.

Depending on what you want to do, it should be fairly easy to get the same behaviour. e.g. for the equivalent of amin you should be able to iterate over the slices in a given dimension with INDArray.slice(axis,i) and choose the one that has the minimum value according to slice.elementMin()

Most functions for general purpose arrays are available via the mikera.arrayz.INDArray interface, this is often the best place to start looking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants