pub fn from_col_nested(data: [[T; 2]; 2]) -> Mat2<T> {
        Mat2 {
            a11: data[0][0], a12: data[0][1],
            a21: data[1][0], a22: data[1][1],
        }
    }
/// Creates a new matrix from a 2x2 array.
Creates a new matrix from a 2x2 array.
Creates a new matrix from a 2x2 array .
pub fn from_col_nested(data: [[T; 2]; 2]) -> Mat2<T> {
        Mat2 {
            a11: data[0][0], a12: data[0][1],
            a21: data[1][0], a22: data[1][1],
        }
    }
pub fn from_col_nested ( data : [ [ T ; 2 ] ; 2 ] ) -> Mat2 < T > { Mat2 { a11 : data [ 0 ] [ 0 ] , a12 : data [ 0 ] [ 1 ] , a21 : data [ 1 ] [ 0 ] , a22 : data [ 1 ] [ 1 ] , } }
Creates a new matrix from a 2x2 array.
Creates a new matrix from a 2x2 array .
data
[[T; 2]; 2]
data
[[T; 2]; 2]