Skip to content

Verifiy slicing with tuples #18

@ebertmi

Description

@ebertmi

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__

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions