Matrix Adjugate / Adjoint

The adjugate of a matrix, sometimes called adjoint or adjunct is the transpose of the cofactor of the matrix.

$$ adjugate(M) = cofactor(M)^{T} $$

mat4 Adjugate(mat4 m) {
    return Transposed(Cofactor(m));
}