PySearch

numpy.reshape
numpy doc

Gives a new shape to an array without changing its data. Parameters: aarray_like. Array to be reshaped. newshapeint or tuple of ints.

numpy.ndarray.shape

Tuple of array dimensions. The shape property is usually used to get the current shape of an array, but may also be used to reshape the array in-place by ...

numpy.transpose

If axes are not provided, then transpose(a).shape == a.shape[::-1] .

numpy.moveaxis

x = np.zeros((3, 4, 5)) >>> np.moveaxis(x, 0, -1).shape (4, 5, 3) >>> np.moveaxis(x, -1, 0).shape (5, 3, 4). These all achieve the same result:.

numpy.tensordot

The shape of the result consists of the non-contracted axes of the first ...

numpy.swapaxes

For earlier NumPy versions a view of a is returned only if the order of the axes is changed, otherwise the input array is returned. Examples.

numpy.resize

When the total size of the array does not change reshape should be used.

numpy.stack

Each array must have the same shape. axisint, optional. The axis in the result array along which the input arrays are stacked. outndarray, optional.

numpy.dstack

Stack arrays in sequence depth wise (along third axis). This is equivalent to concatenation along the third axis after 2-D arrays of shape (M,N) have been ...

numpy.squeeze

Returns: squeezedndarray. The input array, but with all or a subset of the ...

About  Privacy