Compute cofactor of a matrix based on row r and column c.
cofactor(x, r, c)
x
: matrix whose cofactor is desired to be computedr
: row numberc
: column numbercofactor of x, w.r.t. row r and column c.
needs the function `minor'' in memory. attaches sign (-1)^(r+c) to the minor.
## The function is currently defined as function (x, r, c) { out = minor(x, r, c) * ((-1)^(r + c)) return(out) }
minor(x,r,c)
Prof. H. D. Vinod, Economics Dept., Fordham University, NY
Useful links