411 REFERENCE · Wikibooks
Linear Algebra and the C Language/a01j
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
__NOTOC__
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
Note: A new file "v_a.h" is introduced to be able to introduce the new H files.
C example to test the library:
test.c