matlib (version 0.9.1)

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)

Arguments

A

a square matrix

Value

a matrix of the same size as A

See Also

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

Examples

Run this code
# NOT RUN {
A <- J(3, 3) + 2*diag(3)
adjoint(A)
# }

Run the code above in your browser using DataCamp Workspace