cofactor function

Compute cofactor of a matrix based on row r and column c.

Compute cofactor of a matrix based on row r and column c.

cofactor(x, r, c)

Arguments

  • x: matrix whose cofactor is desired to be computed
  • r: row number
  • c: column number

Returns

cofactor of x, w.r.t. row r and column c.

Note

needs the function `minor'' in memory. attaches sign (-1)^(r+c) to the minor.

Examples

## The function is currently defined as function (x, r, c) { out = minor(x, r, c) * ((-1)^(r + c)) return(out) }

See Also

minor(x,r,c)

Author(s)

Prof. H. D. Vinod, Economics Dept., Fordham University, NY

  • Maintainer: H. D. Vinod
  • License: GPL (>= 2)
  • Last published: 2023-10-09

Useful links