You are viewing a single comment's thread. Return to all comments →
import numpy N, M = map(int, input().split(' ')) a = [numpy.array((input().split(' ')), dtype='int') for i in range(N)] b = [numpy.array((input().split(' ')), dtype='int') for j in range(N)] print(numpy.add(a, b)) print(numpy.subtract(a, b)) print(numpy.multiply(a, b)) print(numpy.floor_divide(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 →