home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!elroy.jpl.nasa.gov!nntp-server.caltech.edu!draco.macsch.com!convex.is.macsch.com!dnl
- From: dnl@convex.is.macsch.com (David Lombard)
- Subject: Re: Variable-sized square matrices
- Message-ID: <1992Dec15.010255.25793@draco.macsch.com>
- Sender: usenet@draco.macsch.com (Usenet Poster)
- Organization: MacNeal-Schwendler Corp.
- References: <1992Dec11.000919.1@camins.camosun.bc.ca>
- Date: Tue, 15 Dec 92 01:02:55 GMT
- Lines: 26
-
- In article <1992Dec11.000919.1@camins.camosun.bc.ca> alumni107@camins.camosun.bc.ca writes:
- >I am working with a set of functions that operate on variable-sized
- >square matrices. Currently, I pass a one-dimensional array to these
- >functions filled/accessed in the order that a 2D array would be
- >filled. Is this portable and safe ?
- >
- >Alternately, I could modify all the functions to accept square
- >matrices of a fixed size, with an additional parameter to specify the
- >current size.
- >
-
- Either one is portable and safe. I much prefer the first because of the space
- savings and the need to only store the actual `dimensions' of the matrix (as
- opposed to a `leading dimension' too). But, if you need to work with the
- arrays in the callers of the functions, the latter may be preferred.
-
-
-
- Regards,
- DNL
-
- MY_COMMENTS = MY_OPINIONS = NOBODY_ELSES;
-
- David N. Lombard The first thing we do, The MacNeal-Schwendler Corp
- dnl@macsch.com Let's kill all the lawyers. 815 Colorado Blvd
- (213) 259-4911 II Henry VI, IV.ii Los Angeles, CA 90041
-