Differences between revisions 3 and 4
Revision 3 as of 2011-08-03 11:00:42
Size: 349
Editor: localhost
Comment: converted to 1.6 markup
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에서는 다음처럼쓰면 편하다.

Toggle line numbers
   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