Source: https://cran.r-project.org/web//packages/matrixTests/matrixTests.pdf