powered by
Returns the cofactor of element (i,j) of the square matrix A, i.e., the signed minor of the sub-matrix that results when row i and column j are deleted.
cofactor(A, i, j)
a square matrix
row index
column index
the cofactor of A[i,j]
rowCofactors for all cofactors of a given row
rowCofactors
Other determinants: Det, adjoint, minor, rowCofactors, rowMinors
Det
adjoint
minor
rowMinors
# NOT RUN { M <- matrix(c(4, -12, -4, 2, 1, 3, -1, -3, 2), 3, 3, byrow=TRUE) cofactor(M, 1, 1) cofactor(M, 1, 2) cofactor(M, 1, 3) # }
Run the code above in your browser using DataLab