matlib (version 0.9.6)

adjoint: Calculate the Adjoint of a matrix

Description

This function calculates the adjoint of a square matrix, defined as the transposed matrix of cofactors of all elements.

Usage

adjoint(A)

Value

a matrix of the same size as A

Arguments

A

a square matrix

Author

Michael Friendly

See Also

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

Examples

Run this code
A <- J(3, 3) + 2*diag(3)
adjoint(A)

Run the code above in your browser using DataLab