NumPy ndarray.__mul__() Method | Element Wise Multiplication of Array
The ndarray.__mul__() method does an element-wise multiplication of NumPy ndarray to a particular value that is provided as the parameter. Example C/C++ Code import numpy as np gfg = np.array([1, 2.5, 3, 4.8, 5]) print(gfg.__mul__(5)) Output[ 5. 12.5 15. 24. 25. ] SyntaxSyntax: ndarray.__mul__($self