GSL库中关于矩阵的运算有以下六种:
int gsl_matrix_add (gsl matrix * a, const gsl matrix * b)
This function adds the elements of matrix b to the elements of matrix a, a0(i, j) =a(i, j) + b(i, j). The two matrices must have the same dimensions.
int gsl_matrix_sub (gsl matrix * a, const gsl matrix * b)
This function subtracts the elements of matrix b from the elements of matrix a,a0(i, j) = a(i, j) − b(i, j). The two matrices must have the same dimensions.
int gsl_matrix_mul_elements (gsl matrix * a, const gsl matrix * b)
This function multiplies the elements of matrix a by the elements of matrix b, a0(i, j) =a(i, j) *b(i, j). The two matrices must have the same dimensions.
int gsl_matrix_div_elements (gsl matrix * a, const gsl matrix * b)
This function divides the elements of matrix a by the elements of matrix b, a0(i, j) =a(i, j)/b(i, j). The two matrices must have the same dimensions.
int gsl_matrix_scale