Inverse matrix computation


Write C function to compute inverse matrix of square matrix, such that

if Y = M^-1 then M * Y = E.

Function must have following interface:

double* inv_matrix(const double* M, const size_t N);


N - size of matrix side

M - matrix data (standard C array of N * N)


Function must allocate memory with malloc(), compute inverse matrix,

store it in the newly allocated area and return it. If inverse matrix does not exist,

function must deallocate that memory and return NULL.

Function must also return NULL if memory allocation failed, or if n is zero.

In the latter case, memory should not be allocated at all.

Function is NOT allowed to modify its input.

Special conditions:

- You are not allowed to use any third-party libraries. Maximum you can use

is functions available in the standard header file math.h

- Function must use most effective algorithm that will work well for matrix sizes N up to 10000.

- Function must be failsafe and memory leak free.

- Function must be written in the plain C language (STRICTLY NO C++!!!) and comply to C99 language standard.

- Function must compile without any warnings or errors on GCC 4.8.5 using following set of compiler options:

-std=c99 -Wall -Wextra -pedantic -Werror

- All code must be formatted according to Linux Kernel coding standard

(see here for more details: [url removed, login to view])

- You must provide small test program that execute at least 10 test cases to prove correctness

(we strongly recommend you to use Matlab or Octave to precompute your test data).

技能: C 编程, 数学

查看更多: matrix class transpose inverse, program inverse matrix size nxn, program matrix inverse operation, inverse matrix calculation 7x7, design simple compiler using java, inverse 7x7 matrix, set gallery using jquery, write program class matrix inverse, 3x3 inverse matrix code, mac lion set dhcp using batch file, 4x4 matrix code ccs compiler, inverse matrix code, program inverse matrix, inverse matrix, compiler using lex, compile program using gcc, read write file using gcc, set homepage using javascript mozilla, set website using magneto, add compiler option gcc, set intranet using joomla, set idx using data feed, set website using wamp server, set cronjob using putty, matrix ites

项目ID: #12150311


$30 USD 在3天内


$24USD 在1天里

Hi! My name is Fernando Téllez. I am a senior year student of electrical engineering at Universidad Simón Bolívar (USB), one of the most prestigious universities in my country (Ranked 34° at the QS University Rankings: 更多

$25USD 在1天里

Hi there! My name is Yaicel and I am very interested in your problem. I have advanced skills in numeric math and this is what you need, as your matrix could be very big, as long as 10000 x 10000, the traditional analy 更多

$25 USD 在0天内

Many this types of project have done in my college time, so I can easily complete this project as per ur requirement.. Thanks

$10USD 在1天里

Hello Sir/Mam NovaSofts Inc. is the leading IT Company of Islamabad Pakistan. We have 9+ years of experience and strong knowledge about programming languages Java C++ C C# Android So you don't worry about thir 更多

$30USD 在1天里

I am professional C++ / C# developer for past 2 years now. I started learning C++ 8 years back so i am thorough with it and also have the confidence to do anything that comes up. My last two projects on freelancer was 更多

$30 USD 在3天内
$25USD 在1天里