I have a n x m matrix of values. In this toy example, suppose n = m = 3.
n x m
n = m = 3
mymat <- matrix(c(16, -15, -2, 15, 13, 16, 0, 0, 0.42), nrow