Reshapes a tensor to a new shape without changing the underlying data. Note that row-major order is used, which differs from R's column-major order.
Value
tensorish
Has the same data type as the input and the given shape.
It is ambiguous if the input is ambiguous.
StableHLO
Lowers to stablehlo::hlo_reshape().