mathru 0.16.2

Fundamental algorithms for scientific computing in Rust
Documentation
use crate::algebra::linear::matrix::UnitLowerTriangular;

impl<T> PartialEq for UnitLowerTriangular<T>
where
    T: PartialEq,
{
    /// Checks if two matrices are equal
    ///
    /// # Example
    ///
    /// ```
    /// use mathru::algebra::linear::matrix::{General, UnitLowerTriangular};
    /// use mathru::matrix;
    ///
    /// let a: UnitLowerTriangular<f64> = matrix![1.0, 0.0; 5.0, 1.0].into();
    /// let b: UnitLowerTriangular<f64> = matrix![1.0, 0.0; 5.0, 1.0].into();
    ///
    /// assert_eq!(true, a == b);
    /// ```
    fn eq(&self, other: &Self) -> bool {
        self.matrix.eq(&other.matrix)
    }
}