VOOZH about

URL: https://www.geeksforgeeks.org/python/numpy-inner-in-python/

⇱ numpy.inner() in python - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

numpy.inner() in python

Last Updated : 28 Nov, 2018
numpy.inner(arr1, arr2): Computes the inner product of two arrays. 👁 Image
Parameters : 
arr1, arr2 : array to be evaluated.

Return:  Inner product of the two arrays.
Code #1 : Output:
inner Product of scalar values : 20
inner Product : (-7+22j)
  Code #2 : As normal matrix multiplication
Output:
inner Product : 
 [[18 13]
 [34 37]]

inner Product : 
 [[18 34]
 [13 37]]
Comment