reshape

reshape(a, new_size)[source]

Reshape an array to a new size.

Parameters:
  • a (array) –

    .

  • new_size (tuple) – New shape.

Returns:

An array instance with the new shape.

Return type:

array