You are viewing a single comment's thread. Return to all comments →
import numpy n,m = input().split() a1 = numpy.array([list(map(int, input().split())) for i in range(int(n))]) a2 = numpy.array([list(map(int, input().split())) for i in range(int(n))]) print(numpy.add(a1,a2)) print(numpy.subtract(a1,a2)) print(numpy.multiply(a1,a2)) print(numpy.floor_divide(a1,a2)) print(numpy.mod(a1,a2)) print(numpy.power(a1,a2))
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 →