Last active
May 2, 2021 12:58
-
-
Save MeherajUlMahmmud/e159d36c03438006c487401d10803cdc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def identity(n): | |
mat = zeros(n, n) | |
for i in range(n): | |
mat[i][i] = 1 | |
return mat | |
mat = identity(3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment