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
|
207 Discussions
|
Please Login in order to post a comment
Well Solution
import numpy a=list(map(int,input().split())) b=list(map(int,input().split())) arr1=numpy.array(a) arr2=numpy.array(b) print(numpy.inner(a,b)) print(numpy.outer(a,b))
Task
You are given two arrays: and . Your task is to compute their inner and outer product.
Input Format
The first line contains the space separated elements of array . The second line contains the space separated elements of array .