Skip to main content

assert_orthogonal

Function assert_orthogonal 

Source
pub fn assert_orthogonal<F>(
    matrix: &ArrayView2<'_, F>,
    name: &str,
    tolerance: F,
) -> CoreResult<()>
where F: Float + Display + AddAssign + Debug,
Expand description

Assert that a 2-D matrix is orthogonal within tolerance.

Checks that A^T * A is close to the identity matrix.