mathru 0.16.2

Fundamental algorithms for scientific computing in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::algebra::linear::matrix::{General, UnitLowerTriangular};

impl<T> From<General<T>> for UnitLowerTriangular<T> {
    ///
    /// # Example
    ///
    /// ```
    /// use mathru::algebra::linear::matrix::{General, UnitLowerTriangular};
    /// use mathru::matrix;
    ///
    /// let m: UnitLowerTriangular<f64> = matrix![1.0, 0.0;
    ///                                           -2.0, 1.0].into();
    /// ```
    fn from(matrix: General<T>) -> Self {
        UnitLowerTriangular { matrix }
    }
}