home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / fortran / 4675 < prev    next >
Encoding:
Text File  |  1992-12-11  |  1.0 KB  |  26 lines

  1. Newsgroups: comp.lang.fortran
  2. 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
  3. From: alumni107@camins.camosun.bc.ca
  4. Subject: Variable-sized square matrices
  5. Message-ID: <1992Dec11.000919.1@camins.camosun.bc.ca>
  6. Lines: 14
  7. Sender: news@spang.Camosun.BC.CA (Network News)
  8. Nntp-Posting-Host: camins.camosun.bc.ca
  9. Organization: Camosun College
  10. Date: Fri, 11 Dec 1992 08:09:19 GMT
  11.  
  12. I am working with a set of functions that operate on variable-sized
  13. square matrices. Currently, I pass a one-dimensional array to these
  14. functions filled/accessed in the order that a 2D array would be
  15. filled. Is this portable and safe ? 
  16.  
  17. Alternately, I could modify all the functions to accept square 
  18. matrices of a fixed size, with an additional parameter to specify the 
  19. current size. 
  20.  
  21. Which would you say is the most acceptable ? I have seen examples of 
  22. professional code using both methods.
  23.  
  24. Jeff Johnson; .sig agnostic
  25. alumni107@camins.camosun.bc.ca
  26.