home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!wupost!gumby!destroyer!cs.ubc.ca!news.UVic.CA!spang.Camosun.BC.CA!camins.camosun.bc.ca!alumni107
- From: alumni107@camins.camosun.bc.ca
- Subject: Variable-sized square matrices
- Message-ID: <1992Dec11.000919.1@camins.camosun.bc.ca>
- Lines: 14
- Sender: news@spang.Camosun.BC.CA (Network News)
- Nntp-Posting-Host: camins.camosun.bc.ca
- Organization: Camosun College
- Date: Fri, 11 Dec 1992 08:09:19 GMT
-
- 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.
-
- Which would you say is the most acceptable ? I have seen examples of
- professional code using both methods.
-
- Jeff Johnson; .sig agnostic
- alumni107@camins.camosun.bc.ca
-