adjoint: Calculate the Adjoint of a matrix

View source: R/determinants.R

adjointR Documentation

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

Author(s)

Michael Friendly

See Also

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

Examples

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

matlib documentation built on Oct. 3, 2024, 1:09 a.m.