Differences between revisions 2 and 4 (spanning 2 versions)
Revision 2 as of 2005-06-28 14:55:05
Size: 349
Editor: 203
Comment:
Revision 4 as of 2011-08-22 09:17:17
Size: 353
Editor: 211
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
[Matrix]에서 행, 열을 바꾸기 [[Matrix]]에서 행, 열을 바꾸기
Line 11: Line 11:
[Python]에서는 다음처럼쓰면 편하다. [[Python]]에서는 다음처럼쓰면 편하다.

Matrix에서 행, 열을 바꾸기

http://mathworld.wolfram.com/Transpose.html

전치행렬공식

\math{(AB)^{T} = B^{T}A^{T}

Python에서는 다음처럼쓰면 편하다.

   1 >>> def transpose(array): 
   2 ...    return zip(*array) 
   3 ... 
   4 >>> transpose([(1,2,3), (4,5,6)]) 
   5 [(1, 4), (2, 5), (3, 6)]

Transpose (last edited 2011-08-22 09:17:17 by 211)

web biohackers.net