home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / lisp / mcl / 1353 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  1.2 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!wupost!sdd.hp.com!uakari.primate.wisc.edu!ames!data.nas.nasa.gov!taligent!apple!cambridge.apple.com!brainard%psych@hub.ucsb.edu
  2. From: brainard%psych@hub.ucsb.edu
  3. Newsgroups: comp.lang.lisp.mcl
  4. Subject: Passing arrays to C
  5. Message-ID: <9209030018.AA02235@condor.psych.ucsb.edu>
  6. Date: 3 Sep 92 00:18:48 GMT
  7. Sender: info-mcl-request@cambridge.apple.com
  8. Lines: 25
  9. Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M
  10. Original-To: info-mcl@cambridge.apple.com
  11.  
  12.  
  13. Hi,
  14.  
  15. We are trying to port a bunch of code to MCL.  The
  16. code relies heavily on C routines to crunch numbers
  17. in multi-dimensional arrays.  We are trying to figure
  18. out how to pass such arrays to C.  Ideally, the
  19. C routine would just receive a pointer to the data
  20. and separately the dimensions of the array.
  21.  
  22.   a) Is there any documentation on the exact structures
  23.   used to store multidimensional arrays in Lisp?  (The
  24.   documentation is pretty vague on this point.)
  25.  
  26.   b) Is there any good (or bad) way to get a pointer
  27.   to the actual array data and hand that off to C?
  28.  
  29. Thanks,
  30.  
  31. David Brainard
  32. Department of Psychology
  33. University of California
  34. Santa Barbara, CA 93106
  35. brainard@psych.ucsb.edu
  36. (805) 893-2011
  37.