is.identity.matrix: Check whether a matrix is (close to) the identity.
Description
Check whether a matrix is (close to) the identity.
Usage
is.identity.matrix(mat, tolerance = 1e-06)
Arguments
- mat
numeric matrix.
- tolerance
numeric, the tolerance for the comparison.