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]

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!


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