コード例 #1
0
ファイル: Matrix.cs プロジェクト: Dmitrij2305/Matrix
        public Matrix GetMinor(int rowExceptIndex, int colExceptIndex)
        {
            Matrix minor = new Matrix(values);

            if ((rowExceptIndex + colExceptIndex) % 2 == 0)
            {
                return(minor.GetSubmatrixExceptRow(rowExceptIndex).GetSubmatrixExceptColumn(colExceptIndex));
            }

            else
            {
                return(-minor.GetSubmatrixExceptRow(rowExceptIndex).GetSubmatrixExceptColumn(colExceptIndex));
            }
        }