expand#
- ivy.expand(x, shape, /, *, copy=None, out=None)[source]#
Broadcast the input Array following the given shape and the broadcast rule.
- Parameters:
- Return type:
- Returns:
ret – Output Array
- Array.expand(self, shape, /, *, copy=None, out=None)#
Broadcast the input Array following the given shape and the broadcast rule.
- Parameters:
self (
Array
) – Array input.shape (
Union
[Shape
,NativeShape
]) – A 1-D Array indicates the shape you want to expand to, following the broadcast ruleout (
Optional
[Array
]) – optional output array, for writing the result to. (default:None
)
- Return type:
Array
- Returns:
ret – Output Array
- Container.expand(self, shape, /, *, copy=None, out=None)#
- Parameters:
shape (
Union
[Shape
,NativeShape
]) –device –
out (
Optional
[Container
]) – (default:None
)
- Return type:
Container