We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Numpy
- Inner and Outer
- Discussions
Inner and Outer
Inner and Outer
Sort by
recency
|
210 Discussions
|
Please Login in order to post a comment
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))
import numpy as np
a = list(map(int, input().split())) b = list(map(int, input().split()))
print(np.inner(a,b))
print(np.outer(a,b))
import numpy as np a = np.array(list(map(int, input().split()))) b = np.array(list(map(int, input().split()))) print(np.inner(a,b)) print(np.outer(a,b))
Well Solution