VOOZH about

URL: https://www.geeksforgeeks.org/python/python-numpy-np-kron-method/

⇱ Python | Numpy np.kron() method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Python | Numpy np.kron() method

Last Updated : 13 Oct, 2019
With the help of np.kron() method, we can get the Kronecker product of two lists by using np.kron() method.
Syntax : np.kron(list1, list2) Return : Return the kronecker product of two list.
Example #1 : In this example we can see that by using np.kron() method, we are able to get the kronecker product of two arrays passed as argument. Output :
[ 5 10 15 10 20 30 15 30 45]
Example #2 :
Output :
[[ 5 10 15 10 20 30 15 30 45] [ 45 90 135 40 80 120 35 70 105]]
Comment