コード例 #1
0
        public static float[,] InverseMatrix(int[,] Matrix)
        {
            Changed = AddJointMatrix(Matrix);

            for (int i = 0; i < Matrix.GetLength(0); i++)
            {
                for (int j = 0; j < Matrix.GetLength(0); j++)
                {
                    (float)Changed[i, j] /= Determinants.Resolve(Matrix);
                }
            }

            return(Changed);
        }
コード例 #2
0
        public static int AlgebraicApp(int[,] Matrix, int firstIndex, int SecIndex)
        {
            GetMinor(Matrix, firstIndex, SecIndex);

            return((int)(Math.Pow(-1, firstIndex + SecIndex) * Determinants.Resolve(MinorMatrix)));
        }