You are viewing a single comment's thread. Return to all comments →
import numpy as np
A = np.array(list(map(int, input().split()))) b = np.array(list(map(int, input().split())))
inner_product = np.inner(A,B) outer_product = np.outer(A,B) print(inner_product) print(outer_product)
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 as np
A = np.array(list(map(int, input().split()))) b = np.array(list(map(int, input().split())))
inner_product = np.inner(A,B) outer_product = np.outer(A,B) print(inner_product) print(outer_product)