This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Multidimensional array allocation
- From: Eric Brown <ecbrown at u dot washington dot edu>
- To: <gsl-discuss at sources dot redhat dot com>
- Date: Wed, 17 Apr 2002 09:00:12 -0700
- Subject: Multidimensional array allocation
Dear GSL Users,
I am a new user of GSL and C (from a Fortran background) and simply
cannot figure out how to allocate multidimensional arrays within the
package. Forexample, the function
gsl_matrix * gsl_matrix_alloc (size_t n1, size_t n2)
implies that only a 2 x 2 may be allocated straightforwardly. How may this
be for, say, a three dimensional array? Indeed, I wish to represent a
density along a cubic grid, and then fit the density to a set of gaussian
functions that vary in x, y, and z.
Wishing you the best,
Eric Brown
Department of Chemistry
University of Washington
P.S. RTFM's welcome, where warranted!