GSL(GNU Scientific Library)

  • Thread starter gradnu
  • Start date
  • #1
21
0
Does anybody know how to read and write matrices in GSL. I am confused by what is given on the website. It says something about binary format which I have no idea about.
Isn't there any other simple way of reading the matrices as we do in 'C'?
 

Answers and Replies

  • #2
119
0
Function: double gsl_matrix_get (const gsl_matrix * m, size_t i, size_t j)
This function returns the (i,j)-th element of a matrix m. If i or j lie outside the allowed range of 0 to n1-1 and 0 to n2-1 then the error handler is invoked and 0 is returned.


Function: void gsl_matrix_set (gsl_matrix * m, size_t i, size_t j, double x)
This function sets the value of the (i,j)-th element of a matrix m to x. If i or j lies outside the allowed range of 0 to n1-1 and 0 to n2-1 then the error handler is invoked.
 
  • #3
21
0
Thanks Clive
 
  • #4
1
0
Hello
I have a question GSL about too. Does anybody know how to compute double and multiple integrals? I have not found it in gsl's manual. Thanks.
 

Related Threads on GSL(GNU Scientific Library)

Replies
15
Views
4K
Replies
10
Views
4K
Replies
1
Views
2K
  • Last Post
Replies
22
Views
5K
  • Last Post
Replies
1
Views
915
  • Last Post
Replies
0
Views
1K
Replies
7
Views
4K
  • Last Post
Replies
0
Views
448
  • Last Post
Replies
2
Views
3K
  • Last Post
Replies
7
Views
29K
Top