Exemple #1
0
        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));
            }
        }