AnimatGuiCtrls.MatrixLibrary.Matrix.Multiply C# (CSharp) Method

Multiply() public static method

Returns the multiplication of two matrices with compatible dimensions OR the cross-product of two vectors. In case of an error the error is raised as an exception.
public static Multiply ( Matrix Mat1, Matrix Mat2 ) : Matrix
Mat1 Matrix /// First matrix or vector (i.e: dimension [3,1]) object in /// multiplication ///
Mat2 Matrix /// Second matrix or vector (i.e: dimension [3,1]) object in /// multiplication ///
return Matrix
        public static Matrix Multiply(Matrix Mat1, Matrix Mat2)
        {
            if ((Mat1.NoRows==3) && (Mat2.NoRows==3) &&
                (Mat1.NoCols==1) && (Mat1.NoCols==1))
            {return new Matrix(CrossProduct(Mat1.in_Mat,Mat2.in_Mat));}
            else
            {return new Matrix(Multiply(Mat1.in_Mat,Mat2.in_Mat));}
        }

Same methods

Matrix::Multiply ( double Mat1, double Mat2 ) : ].double[