pub fn multiply(self, b: Matrix) -> Matrix {
        let Matrix(a)   = self;
        let Matrix(b)   = b;

        let mut res     = [[0.0; 4]; 4];

        for row in 0..4 {
            for col in 0..4 {
                for pos in 0..4 {
                    res[row][col] += a[row][pos] * b[pos][col];
                }
            }
        }

        Matrix(res)
    }
///
/// Multiplies this matrix with another one
///
Multiplies this matrix with another one
Multiplies this matrix with another one
pub fn multiply(self, b: Matrix) -> Matrix {
        let Matrix(a)   = self;
        let Matrix(b)   = b;
        let mut res     = [[0.0; 4]; 4];
        for row in 0..4 {
            for col in 0..4 {
                for pos in 0..4 {
                    res[row][col] += a[row][pos] * b[pos][col];
                }
            }
        }
        Matrix(res)
    }
pub fn multiply ( self , b : Matrix ) -> Matrix { let Matrix ( a ) = self ; let Matrix ( b ) = b ; let mut res = [ [ 0.0 ; 4 ] ; 4 ] ; for row in 0 .. 4 { for col in 0 .. 4 { for pos in 0 .. 4 { res [ row ] [ col ] += a [ row ] [ pos ] * b [ pos ] [ col ] ; } } } Matrix ( res ) }
Multiplies this matrix with another one
Multiplies this matrix with another one
self
b
Matrix