Broadcasts an array to a specified shape, by either manipulating chunk keys or copying chunk manifest entries.
(
x: "ConcatenatableArray", /, shape: tuple[int, ...]
)
| 124 | |
| 125 | @implements(np.broadcast_to) |
| 126 | def broadcast_to( |
| 127 | x: "ConcatenatableArray", /, shape: tuple[int, ...] |
| 128 | ) -> "ConcatenatableArray": |
| 129 | """ |
| 130 | Broadcasts an array to a specified shape, by either manipulating chunk keys or copying chunk manifest entries. |
| 131 | """ |
| 132 | if not isinstance(x, ConcatenatableArray): |
| 133 | raise TypeError |
| 134 | |
| 135 | result = np.broadcast_to(x._array, shape=shape) |
| 136 | return ConcatenatableArray(result) |
| 137 | |
| 138 | |
| 139 | @implements(np.full_like) |
nothing calls this directly
no test coverage detected
searching dependent graphs…