https://medium.com/@monocosmo77/implementing-antiderivative-matrices-in-machine-learning-research-part1-7fc4f133f745