# Calculate inner, outer, and cross products of matrices and vectors using NumPy in Python # Python Program illustrating# numpy.inner() methodimport numpy as np  # Vectorsa = np.array([2, 6])b = np.array([3, 10])print("Vectors :")print("a = ", a)print("\nb = ", b)  # Inner Product of Vectorsprint("\nInner product of vectors a and b =")print(np.inner(a, b))  print("---------------------------------------")  # Matricesx = np.array([[2, 3, 4], [3, 2, 9]])y = np.array([[1, 5, 0], [5, 10, 3]])print("\nMatrices :")print("x =", x)print("\ny =", y)  # Inner product of matricesprint("\nInner product of matrices x and y =")print(np.inner(x, y))