| 18 | |
| 19 | @dataclass |
| 20 | class Layout(Function): |
| 21 | shape: HyperCube |
| 22 | stride: Optional[HyperPoint] = None |
| 23 | |
| 24 | def __post_init__(self): |
| 25 | self.ndim = len(self.shape) |
| 26 | if self.stride is None: |
| 27 | self.stride = Hyperreduce(lambda a, b: a + [a[-1] * b], reversed(self.shape[:-1]), [1]) |
nothing calls this directly
no outgoing calls
no test coverage detected