Source: https://www.normalesup.org/~glafon/carnot09/matrices.pdf