https://medium.com/@monocosmo77/implementing-antiderivative-matrices-in-machine-learning-research-part2-c2728b35f587