[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gsl] gsl: fwrite_source.c:64: ERROR: fread failed
From: |
Joakim Hove |
Subject: |
Re: [Help-gsl] gsl: fwrite_source.c:64: ERROR: fread failed |
Date: |
Tue, 19 Oct 2004 09:08:09 +0200 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux) |
"Fred J." <address@hidden> writes:
> ***************code***************
> #include <cstdio>
> #include "/usr/include/gsl/gsl_matrix.h"
> #include "/usr/include/gsl/gsl_sf_bessel.h"
> {
> gsl_matrix * m = gsl_matrix_alloc(6, 18);
> FILE * iF = fopen( "/home/sam/data.file", "r" );
> gsl_matrix_fread(iF, m);
> fclose(iF);
> }
Well,
when debugging this code it would help immensely to see the code
writing the matrix to file, i.e. you must have called
gsl_matrix_fwrite() somewhere, possibly in another program.
HTH - Joakim
--
Joakim Hove
hove AT ift uib no
+47 (55 5)8 27 90
http://www.ift.uib.no/~hove/