The following reporducing code reports TypeError: float() argument must be a string or a number
Reproducing code example:
import numpy as np
np.matrix(np.random.randn(100, 100)).max()
Error message:

Numpy/Python version information:
1.18.1 3.8.3 (default, May 19 2020, 18:47:26)
[GCC 7.3.0]
The following reporducing code reports
TypeError: float() argument must be a string or a numberReproducing code example:
Error message:
Numpy/Python version information:
1.18.1 3.8.3 (default, May 19 2020, 18:47:26)
[GCC 7.3.0]