pub fn norm(&self) -> f64 {
        f64::sqrt(
            self[0][0] * self[0][0] + self[1][0] * self[1][0] + self[2][0] * self[2][0] +
            self[0][1] * self[0][1] + self[1][1] * self[1][1] + self[2][1] * self[2][1] +
            self[0][2] * self[0][2] + self[1][2] * self[1][2] + self[2][2] * self[2][2]
        )
    }
/// Compute the (Frobenius) norm of the matrix
///
/// # Examples
///
/// ```
/// # use lumol_core::types::Matrix3;
/// let matrix = Matrix3::new([
///     [1.0, 2.0, 4.0],
///     [0.0, 1.0, 3.0],
///     [0.0, 0.0, 1.0]
/// ]);
///
/// assert_eq!(matrix.norm(), 5.656854249492381);
/// ```
Compute the (Frobenius) norm of the matrix
Compute the ( Frobenius ) norm of the matrix
pub fn norm(&self) -> f64 {
        f64::sqrt(
            self[0][0] * self[0][0] + self[1][0] * self[1][0] + self[2][0] * self[2][0] +
            self[0][1] * self[0][1] + self[1][1] * self[1][1] + self[2][1] * self[2][1] +
            self[0][2] * self[0][2] + self[1][2] * self[1][2] + self[2][2] * self[2][2]
        )
    }
pub fn norm ( & self ) -> f64 { f64 :: sqrt ( self [ 0 ] [ 0 ] * self [ 0 ] [ 0 ] + self [ 1 ] [ 0 ] * self [ 1 ] [ 0 ] + self [ 2 ] [ 0 ] * self [ 2 ] [ 0 ] + self [ 0 ] [ 1 ] * self [ 0 ] [ 1 ] + self [ 1 ] [ 1 ] * self [ 1 ] [ 1 ] + self [ 2 ] [ 1 ] * self [ 2 ] [ 1 ] + self [ 0 ] [ 2 ] * self [ 0 ] [ 2 ] + self [ 1 ] [ 2 ] * self [ 1 ] [ 2 ] + self [ 2 ] [ 2 ] * self [ 2 ] [ 2 ] ) }
Compute the (Frobenius) norm of the matrix
Compute the ( Frobenius ) norm of the matrix
&self
examples
None
use lumol_core::types::matrix3;
None