numpy.transpose()

numpy.transpose

numpy.transpose(a, axes=None) [source]

Permute the dimensions of an array.

Parameters:

a : array_like

Input array.

axes : list of ints, optional

By default, reverse the dimensions, otherwise permute the axes according to the values given.

Returns:

p : ndarray

a登录查看完整内容