Created
May 2, 2021 13:01
-
-
Save MeherajUlMahmmud/ea0ae12cf6dbe8b580b24241a4a7a684 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 add(mat1, mat2): | |
row1 = len(mat1) | |
col2 = len(mat2[0]) | |
result = zeros(row1, col2) | |
for i in range(row1): | |
for j in range(col2): | |
result[i][j] = mat1[i][j] + mat2[i][j] | |
return result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment