This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Interfacing GSL with LAPACK


On Tue, Apr 08, 2003 at 04:59:25PM +0100, Mark Hymers wrote:
> 	double work[size*size];
> 	dgetrf_(&size,&size,&matrix[0][0],&size,index,info);

You're declaring work as a 1-dimensional array, but referencing it
as a 2-dimensional array.  matrix[0] is ok as the first element, but
matrix[0][0] tries to use that first element as a pointer, hence the
segfault.

-- 
Jeff Spirko   spirko at lehigh dot edu   spirko at yahoo dot com   WD3V   |=>

The study of non-linear physics is like the study of non-elephant biology.

All theoretical chemistry is really physics;
and all theoretical chemists know it. -- Richard P. Feynman 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]