Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def modMatrix(m,x):
- #@param m: matrice nxn di interi
- #@param x: int
- w = len(m)
- if x<0 or x>=w:
- return
- else:
- for k in range(w):
- m[x][k],m[k][x] = m[k][x],m[x][k]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement