Word description Returns a new shaped object in row-major order without changing the input shape. A shape integer denotes a single axis. Exactly one -1 dimension may be inferred from the number of elements; other dimensions must be nonnegative integers. Inference with a zero known product is ambiguous and rejected. An empty shape requires exactly one element. Ordinary storage is shared; virtual storage, including slice and transpose views, is copied into row-major order. Shape metadata is copied.