Need matrix inversion C routine.

Kurt Krueger kurtk at tekcae.CAX.TEK.COM
Tue Apr 25 01:47:13 AEST 1989


There are two 'obvious' places to look for code or algorithms:

The Collected Alogrithmns of the ACM  (CACM).  Any technical/college library
	should have this.  The articles usually contain code (but stuff that
	is well known is likely to be in older articles in Fortran or Pascal)
	and references to the algorithmn used.

Any book on numerical methods.

Note:  "C" is not well suited for writing code for dealing with an arbitrary
	2 (or higher) dimension array.  Brush up on your pointers.  You get
	to do the row/column location by hand.  A good source would be old
	Fortran code (Fortran 2 or IBM 1130 Fortran IV) that handles 2-d
	arrays as a strung out 1-d array.

	Another "trick" is to NOT pass a 2-d array, but pass a vector of
	row pointers.  You can then use matrix[row][column] in your function
	as if you have a "real" 2-d array.  But don't expect blinding execution
	speeds.



More information about the Comp.lang.c mailing list