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

array[0:0] should return empty array #26

Closed
FilipeMaia opened this issue Aug 28, 2015 · 4 comments
Closed

array[0:0] should return empty array #26

FilipeMaia opened this issue Aug 28, 2015 · 4 comments
Labels
Milestone

Comments

@FilipeMaia
Copy link
Contributor

Currently it is equivalent to array[:] which is quite surprising.

@FilipeMaia
Copy link
Contributor Author

As empty arrays don't really exist yet a good compromise might to to return None.

@pavanky
Copy link
Member

pavanky commented Aug 28, 2015

They do exist. array(dim4()) is an empty array in ArrayFire. The functions not handling them properly is a different issue..

@pavanky pavanky added the bug label Nov 13, 2015
@pavanky pavanky modified the milestone: 3.3 Dec 19, 2015
@pavanky
Copy link
Member

pavanky commented Mar 20, 2016

This is partially solved when using logical indexing in devel.

@pavanky pavanky modified the milestones: 3.3, 3.4 Mar 20, 2016
@pavanky pavanky modified the milestones: 3.4, 3.5 Sep 24, 2016
@pavanky
Copy link
Member

pavanky commented Sep 25, 2016

This is fixed in devel.

@pavanky pavanky closed this as completed Sep 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants