https://vatsalkumar.medium.com/unlocking-the-potential-of-numpy-ufuncs-for-data-science-and-machine-learning-2bb9b4027d3a