Bir programı matlab'dan Python'a çeviriyorum.matlab'ın "permute" python içinde
B = PERMUTE(A,ORDER) rearranges the dimensions of A so that they
% are in the order specified by the vector ORDER. The array produced
% has the same values as A but the order of the subscripts needed to
% access any particular element are rearranged as specified by ORDER.
% For an N-D array A, numel(ORDER)>=ndims(A). All the elements of
% ORDER must be unique.
Python/numpy eşdeğer bir yöntem var mı:
matlab kodu yöntemi Permute kullanır?
[numpy.rollaxis] (http://docs.scipy.org/doc/numpy/reference/generated/numpy.rollaxis.html#numpy.rollaxis) yakındadır ... – mgilson
@Maurits Bu rastgele bir permütasyon. Matlabda "permute" işlevinin açıklamasında rastlantısal bir şey olmadığı için rasgele olmadığını varsayalım ... – LynnH
@ user1729698 Benim hatam. – Maurits