How to find Maximum and Minimum values in a Matrix?

This recipe helps you find Maximum and Minimum values in a Matrix
In [1]:
## How to find Maximum and Minimum values in a Matrix
def Kickstarter_Example_13():
    print()
    print(format('How to find Maximum and Minimum values in a Matrix',
                 '*^72'))

    # Load library
    import numpy as np

    # Create matrix
    matrixA = np.array([[1, 2, 3, 23],
                       [4, 5, 6, 25],
                       [7, 8, 9, 28],
                       [10, 11, 12, 41]])

    # Return maximum element
    print(); print(np.max(matrixA))

    # Return minimum element
    print(); print(np.min(matrixA))

    # Find the maximum element in each column
    print(); print(np.max(matrixA, axis=0))

    # Find the maximum element in each row
    print(); print(np.max(matrixA, axis=1))

Kickstarter_Example_13()
***********How to find Maximum and Minimum values in a Matrix***********

41

1

[10 11 12 41]

[23 25 28 41]