is.Orthonormal(x, tol, byrow = F) is.ColOrthonormal(x, tol) is.RowOrthonormal(x, tol) Orthonormal.test(x)
For Orthonormal.test, the maximum of the modulus of the inner products between rows or columns of the matrix and the difference of the norms of rows or columns from 1 is returned.
v <- rnorm(3) v <- v /vecnorm(v) x <- diag(3) - 2 * (v %*% t(v)) is.Orthonormal(x) # [1] Fis.Orthonormal(x, tol = .Machine$double.eps) # [1] F
is.Orthonormal(x, tol = sqrt(.Machine$double.eps)) # [1] T
Orthonormal.test(x)