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