Instructions

The programs written in this project are available in the 'Download page'. There are various C functions given in separate files according to the inversion scenario.

  • User has to place the downloaded C file in the same directory of their programs and include it in their programs.
  • The input_matrix and inverted_matrix are need to be declared (or dynamically memory allocated) in two dimensional double arrays (or pointers). The input matrix is updated with it's values.
  • By calling, invertmat function with the arguments (order of input matrix, input_matrix, inverted_matrix), the matrix inversion is performed. Upon successful inversion, invertmat is updated with the values of inverted_matrix for the given input_matrix and the function returns an integer as 1.
As an example using the function 'invertor_inplace_by_a' is given here. It is assumed that the user downloaded the function and placed it in the same folder of the current user program.

#include "./invertor_inplace_by_a.c" 
      ⋮
... < user defined function > (...)
{
int < order > ;
double **< input_matrix >, **< inverted_matrix > ;
      ⋮
invertmat( < order >, < input_matrix >, < inverted_matrix > );
      ⋮
}
A sample program called 'test_invertor.c' which performs the inversion for random generated matrix, is also provided in the 'Download page'. For using with other language (Fortran), parallel processing or any other scenario to address in matrix inversion kindly write to us. We are eager to here suggestions.