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

Verifiy slicing with tuples #18

Open
3 tasks
ebertmi opened this issue Oct 5, 2015 · 0 comments
Open
3 tasks

Verifiy slicing with tuples #18

ebertmi opened this issue Oct 5, 2015 · 0 comments

Comments

@ebertmi
Copy link
Owner

ebertmi commented Oct 5, 2015

See if slices with tuples are working.

import numpy as np

a = np.arange(3*4*5*6).reshape((3,4,5,6))
b = np.arange(3*4*5*6)[::-1].reshape((5,4,6,3))
c = np.dot(a, b)
print(c.shape)
c = c[2,3,2,1,2,2]
print(c) # 499128

Does not return the correct result.

ToDo:

  • analyse why this is not working. Is it related to numpy.dot
  • current implementation does only work for tuples when they contain indices for all dimensions (in real numpy you can also omit a few)
  • look into __getslice__
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

1 participant