Source: http://www.prepacom.net/archive/math/entrain/correction/matrices.pdf