Linear Algebra and the C Language/a06n


Adjoint: Code study

First, I calculated the cofactor matrix. Then take the transpose of this matrix.


/* ------------------------------------ */
/* ------------------------------------ */
double **adjoint_mR(
double **A,
double **Adjoint
)
{
double **T = i_RC_mR(A[R_SIZE][C0],A[C_SIZE][C0]);

 transpose_mR(cofactor_mR(A,T),Adjoint);

 f_mR(T);
 
return(Adjoint);
}
/* ------------------------------------ */
/* ------------------------------------ */