Linear Algebra and the C Language/a01j
The library
The pivot chosen in this algorithm is the largest absolute value found in matrix A. We swap rows and columns to achieve this.
Copy the library to your working directory:
- v_a.h ............................... Declaration of h files
- v_g.h ......................... Gauss Jordan
- vg_i.h ................... Initialize a matrix
- vgel_op.h ............. Operation on rows and columns
- vgc_m.h ............... Copy rows and columns
- vgc_ab.h .............. Copy a matrix
- vgsort.h ................ Sort columns and rows
- vgj1piv.h ............... The right pivot?
- vgj1.h ................... Gauss Jordan 1
- v_g.h ......................... Gauss Jordan
Note: A new file "v_a.h" is introduced to be able to introduce the new H files.
C example to test the library: