Jump to content

Linear Algebra and the C Language/a0a1

From Wikibooks, open books for an open world


The Inverse with gj_TP_mR(); (TP)

[edit | edit source]

In linear algebra, an invertible matrix is a square matrix that has an inverse... Wikipedia: Invertible matrix

The function

[edit | edit source]

invgj_mR();

Code study

[edit | edit source]

The function: invgj_mR(double **A, double **invA);

The function: invgj_pivot_mR(double **AID);

  • c00c.c
  • The function selects the best pivot and puts zero under the pivot.
  • c00d.c
  • The function puts zero above the pivot.
  • c00e.c

The function: sort_c_mR(double **Ab);

The function: sort_r_mR(double **Ab);

Some applications

[edit | edit source]

Solve: AX = B

Solve: A|x1|x2| ... |xn| = b1|b2| ... |bn|