home *** CD-ROM | disk | FTP | other *** search
- 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
- From: brainard%psych@hub.ucsb.edu
- Newsgroups: comp.lang.lisp.mcl
- Subject: Passing arrays to C
- Message-ID: <9209030018.AA02235@condor.psych.ucsb.edu>
- Date: 3 Sep 92 00:18:48 GMT
- Sender: info-mcl-request@cambridge.apple.com
- Lines: 25
- Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M
- Original-To: info-mcl@cambridge.apple.com
-
-
- Hi,
-
- We are trying to port a bunch of code to MCL. The
- code relies heavily on C routines to crunch numbers
- in multi-dimensional arrays. We are trying to figure
- out how to pass such arrays to C. Ideally, the
- C routine would just receive a pointer to the data
- and separately the dimensions of the array.
-
- a) Is there any documentation on the exact structures
- used to store multidimensional arrays in Lisp? (The
- documentation is pretty vague on this point.)
-
- b) Is there any good (or bad) way to get a pointer
- to the actual array data and hand that off to C?
-
- Thanks,
-
- David Brainard
- Department of Psychology
- University of California
- Santa Barbara, CA 93106
- brainard@psych.ucsb.edu
- (805) 893-2011
-