This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Interfacing GSL with LAPACK
- From: Jeff Spirko <spirko at lehigh dot edu>
- To: Mark Hymers <mark dot hymers at ncl dot ac dot uk>
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Wed, 9 Apr 2003 10:41:06 -0400
- Subject: Re: Interfacing GSL with LAPACK
- References: <20030408155925.GA7840@godzukee.linuxfromscratch.org>
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