https://medium.com/@monocosmo77/implementing-antiderivative-matrices-in-machine-learning-research-part3-952e876c4559