Version

CofactorMatrix(Matrix,Int32,Int32) Method

Returns the (i,j) cofactor of x. If i+j is even, the (i,j) cofactor is equal to the determinant of the (i,j) minor Matrix of x. If i+j is odd, the (i,j) cofactor is the negative determinant of the (i,j) minor Matrix of x.
Syntax
'Declaration
 
Public Overloads Shared Function CofactorMatrix( _
   ByVal x As Matrix, _
   ByVal i As Integer, _
   ByVal j As Integer _
) As Double
public static double CofactorMatrix( 
   Matrix x,
   int i,
   int j
)

Parameters

x
A square Matrix.
i
A row index.
j
A column index.

Return Value

The (i,j) cofactor of x.
Exceptions
ExceptionDescription
System.ArgumentException Occurs if x is not square.
System.ArgumentExceptionOccurs if i or j are out of bounds.
System.ArgumentException Occurs if x is empty.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also