Learn R Programming

freesurferformats (version 1.1.0)

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)

Value

logical.

Arguments

mat

numeric matrix.

tolerance

numeric, the tolerance for the comparison.