March 2014 update
This commit is contained in:
parent
09687c4926
commit
a25938f123
1846 changed files with 21876 additions and 5203 deletions
|
|
@ -0,0 +1,7 @@
|
|||
Transpose(M){
|
||||
R := []
|
||||
for i, row in M
|
||||
for j, col in row
|
||||
R[j,i] := col
|
||||
return R
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
Matrix := [[1,2,3],[4,5,6],[7,8,9],[10,11,12]]
|
||||
MsgBox % ""
|
||||
. "Original Matrix :`n" Print(Matrix)
|
||||
. "`nTransposed Matrix :`n" Print(Transpose(Matrix))
|
||||
|
||||
Print(M){
|
||||
for i, row in M
|
||||
for j, col in row
|
||||
Res .= (A_Index=1?"":"`t") col (Mod(A_Index,M[1].MaxIndex())?"":"`n")
|
||||
return Trim(Res,"`n")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue