home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / pascal / 4601 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.5 KB  |  34 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!cs.utexas.edu!torn!news.ccs.queensu.ca!dmurdoch
  3. From: dmurdoch@QueensU.CA (Duncan Murdoch)
  4. Subject: Re: Matrix routines in pascal
  5. Message-ID: <Bs5wKs.3pE@knot.ccs.queensu.ca>
  6. Sender: news@knot.ccs.queensu.ca (Netnews control)
  7. Organization: Queen's University, Kingston, Canada
  8. References: <1992Jul29.162918.13707@csi.jpl.nasa.gov>
  9. Distribution: usa
  10. Date: Wed, 29 Jul 1992 17:58:04 GMT
  11. Lines: 21
  12.  
  13. In article <1992Jul29.162918.13707@csi.jpl.nasa.gov> eldred@rrunner.jpl.nasa.gov (Dan Eldred) writes:
  14. >
  15. >For people who attempt to do numerical programming in pascal:  how
  16. >do you handle matrices?  In particular, what approach do you use to
  17. >create general purpose routines like matrix multiply, inversion,
  18. >eigensystems, etc.?  If you have a pascal compiler that allows
  19. >conformant arrays, this is pretty easy--either do Fortran style
  20. >calls in which the dimensions are passed as parameters, or pass
  21. >a record structure which has the dimensions embedded.  But I'm
  22. >having trouble coming up with a satisfactory strategy for ANS
  23. >pascal (i.e. Think Pascal 4.0 on the Mac).  Suggestions?
  24.  
  25. Think Pascal includes OOP extensions, doesn't it?  If so, making a
  26. matrix object is probably the best way to go.  That's how I handle
  27. matrices in Turbo Pascal.  The big problem there is the 64K limit on
  28. size; that means I have to go through all sorts of gyrations to handle
  29. large matrices, since 90 by 90 is the biggest matrix of doubles that
  30. fits in 64K.
  31.  
  32. Duncan Murdoch
  33. dmurdoch@mast.queensu.ca
  34.