Skip to contents

Returns the vector of minors of row i of the square matrix A

Usage

rowMinors(A, i)

Arguments

A

a square matrix

i

row index

Value

a vector of the minors of A[i,]

See also

Other determinants: Det(), adjoint(), cofactor(), minor(), rowCofactors()

Author

Michael Friendly

Examples

M <- matrix(c(4, -12, -4,
              2,   1,  3,
             -1,  -3,  2), 3, 3, byrow=TRUE)
minor(M, 1, 1)
#> [1] 11
minor(M, 1, 2)
#> [1] 7
minor(M, 1, 3)
#> [1] -5
rowMinors(M, 1)
#> [1] 11  7 -5