Overview:
- The matmul() function of NumPy module multiplies two n-dimensional matrices and returns the product of the two matrices.
Example - Muliplication of two 2-dimensional matrices using matmul() of numpy function:
# Example Python program that multiplies two-dimensional matrices using # Create ndarrays of numbers n2 = numpy.ndarray(shape = (3, 3), # Populate the numbers # Matrix multiplication of two-dimensional numpy |
Output:
[[210 128 138] [244 173 237] [314 208 258]] |