// check of inversion of real unity matrix UNITY #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include /* Brian Gough, (GSL Maintainer) wrote: You can get help debugging your own program on the address@hidden list Please use the bug-gsl mailing list only for reporting actual bugs in GSL -thanks. Note that you do need to call gsl_linalg_LU_decomp to decompose the matrix before calling any other functions. */ int main (void) { int N = 4 , i, j, signum ; double det, temp ; gsl_permutation * p ; double aa_data[] = { -5., 1., 3., 2., 6., 0., -2., 0., -2., 3., 1., -2., 4., 5., 4., 3. } ; double bb_data[] = { -5., 1., 3., 2., 6., 0., -2., 0., -2., 3., 1., -2., 4., 5., 4., 3. } ; double cc_data[] = { -5., 1., 3., 2., 6., 0., -2., 0., -2., 3., 1., -2., 4., 5., 4., 3. } ; double dd_data[] = { -5., 1., 3., 2., 6., 0., -2., 0., -2., 3., 1., -2., 4., 5., 4., 3. } ; gsl_matrix_view AA = gsl_matrix_view_array (aa_data, N, N); /*printf("\n AA \n"); for(i=0; i