Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

GSL(GNU Scientific Library)

  1. Sep 26, 2007 #1
    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'?
     
  2. jcsd
  3. Sep 27, 2007 #2
    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.
     
  4. Sep 28, 2007 #3
    Thanks Clive
     
  5. Dec 29, 2010 #4
    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.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: GSL(GNU Scientific Library)
  1. GNU fortran help (Replies: 22)

Loading...