Source: http://www.math.u-bordeaux.fr/~nazaret/wp-content/uploads/2016/09/CalculMatrice.pdf