You are viewing a single comment's thread. Return to all comments →
import numpy n, m = map(int, input().split()) A = numpy.array([[*map(int, input().split())] for _ in range(n)]) B = numpy.array([list(map(int, input().split())) for _ in range(n)]) print(A + B) print(numpy.subtract(A, B)) print(numpy.multiply(A, B)) print(A//B) print(numpy.mod(A, B)) print(numpy.power(A, B))
Seems like cookies are disabled on this browser, please enable them to open this website
Array Mathematics
You are viewing a single comment's thread. Return to all comments →
I wrote few operator type and few function type just to get familiar and used to these new subject. You can use anything as per your comfort