help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] Reading vectors and matrices from text files


From: bergstrj
Subject: Re: [Help-gsl] Reading vectors and matrices from text files
Date: Tue, 27 Dec 2005 10:07:08 -0500
User-agent: Internet Messaging Program (IMP) H3 (4.0.3)

Quoting Ivan Adzhubey <address@hidden>:

What is the best way to read vector/matrix data from a file? The
...
i.e., one vector per line, comma-separated vector elements. The idea is to
read the whole block of data in and then loop over it (creating vector
views?) doing calculations.

Hi Ivan,

You are right that GSL has a very minimal I/O.  It isn't so much for reading
data in <your> format, as providing a quick way to dump stuff to file and then
read it back.  The idea is to use routines like getline(), strtod(), strchr(),
scanf() and so on to get the job done.

James

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]