You are viewing a single comment's thread. Return to all comments →
import numpy arr_A = list(map(int, input().strip().split())) arr_B = list(map(int, input().strip().split())) print(numpy.inner(arr_A, arr_B)) print(numpy.outer(arr_A, arr_B))
Seems like cookies are disabled on this browser, please enable them to open this website
Inner and Outer
You are viewing a single comment's thread. Return to all comments →
import numpy arr_A = list(map(int, input().strip().split())) arr_B = list(map(int, input().strip().split())) print(numpy.inner(arr_A, arr_B)) print(numpy.outer(arr_A, arr_B))