minor: Minor of A[i,j]

Description Usage Arguments Value Author(s) See Also Examples

View source: R/determinants.R

Description

Returns the minor of element (i,j) of the square matrix A, i.e., the determinant of the sub-matrix that results when row i and column j are deleted.

Usage

1
minor(A, i, j)

Arguments

A

a square matrix

i

row index

j

column index

Value

the minor of A[i,j]

Author(s)

Michael Friendly

See Also

rowMinors for all minors of a given row

Other determinants: Det, adjoint, cofactor, rowCofactors, rowMinors

Examples

1
2
3
4
5
6
M <- matrix(c(4, -12, -4,
              2,   1,  3,
             -1,  -3,  2), 3, 3, byrow=TRUE)
minor(M, 1, 1)
minor(M, 1, 2)
minor(M, 1, 3)

matlib documentation built on April 4, 2018, 5:03 p.m.