help-gsl
[Top][All Lists]
Advanced

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

[Help-gsl] matrix preallocation for unknown file-data-size ??


From: Fred J.
Subject: [Help-gsl] matrix preallocation for unknown file-data-size ??
Date: Thu, 20 Jul 2006 19:06:21 -0700 (PDT)

Hi

both gsl_matrix_fread and gsl_matrix_fscanf require that matrix m must be 
preallocated with the correct dimensions. now if I want to load the data from a 
file and I don't know the number of rows and columns. do I write a code to 
getline(in, line) and count++ or there is a better
way.

thanks


                
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs.Try it free. 


reply via email to

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