def __getitem__(self, indexer): cc = self._layout.change_coordinates return retrieve(cc, indexer)
def test_simple(): a = CArraySource([1, 2, 3]) layout = ContiguousL(a) indexer = (0, ) retrieve(layout.change_coordinates, indexer)
def test_simple(): a = CArraySource([1,2,3]) layout = ContiguousL(a) indexer = (0,) retrieve(layout.change_coordinates, indexer)