| import numpy as np | |
| from .ch import Ch | |
| class Select(Ch): | |
| def r(self): | |
| base = np.asarray(self.a).reshape(-1) | |
| selected = base[np.asarray(self.idxs, dtype=np.int64)] | |
| return selected.reshape(self.preferred_shape) | |
| import numpy as np | |
| from .ch import Ch | |
| class Select(Ch): | |
| def r(self): | |
| base = np.asarray(self.a).reshape(-1) | |
| selected = base[np.asarray(self.idxs, dtype=np.int64)] | |
| return selected.reshape(self.preferred_shape) | |