Code Home

Function for inversion square matrix (C/C++ codes).

by Leonid Sakharov



Operation of inversion of square matrix is the most useful operation in linear algebra. It is necessary for solving system of linear equations and implementation approximation with least square method. Here there is ready to use C codes to perform this operation. Two version of the function with CArray and traditional C codes are there.
/*Version 1 – most useful for usage in Visual C environment it has only one argument - matrix itself in form a reference to CArray. The result of calculation is inverted matrix stored in the same array. Function return determinant of original matrix.
Version 2 – is more traditional C codes where matrix is passed as pointer to array that will contain inverted matrix, second argument is dimension of matrix and function will return determinant.
*/


Permission to use:   commercial Buy for $15.95 USD

Comments:

Post your comment:


 Name:           Terms and policy.

Home   Software archive   Expert database   Almanac2.0   Photo album   Partners   About  
      
Copyright © by LeoKrut