const int NROWS = 3;
const int NCOLS = 3;
double AData[] = {
1, 2, 3,
0, 1, 0,
0, 1, 1,
};
double BData[NROWS*NCOLS];
gsl_matrix_view A = gsl_matrix_view_array(AData, NROWS, NCOLS);
gsl_matrix_view B = gsl_matrix_view_array(BData, NROWS, NCOLS);
gsl_permutation *p = gsl_permutation_alloc(NROWS);
int signum;
gsl_linalg_LU_decomp(&A.matrix, p, &signum);
gsl_linalg_LU_invert(&A.matrix, p, &B.matrix); // B = A^(-1)
gsl_permutation_free(p);
2011-02-20
2010-11-28
2010-11-27
2009-12-28
2009-05-23
2009-05-19
2009-05-04
2009-04-22
2009-03-16
2009-01-09
2009-01-05
2008-12-16
2008-06-21
2008-06-16