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

single slice gives empty array instead of single element array #1

Closed
dastrobu opened this issue Jan 18, 2020 · 0 comments · Fixed by #2
Closed

single slice gives empty array instead of single element array #1

dastrobu opened this issue Jan 18, 2020 · 0 comments · Fixed by #2
Labels
bug Something isn't working

Comments

@dastrobu
Copy link
Owner

the following slices should be equivalent.

        let a = NdArray<Double>.range(to: 4)
        print(a[1..<2]) // [1.0]
        print(a[1]) // []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant