MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

MathLink and List

  • To: mathgroup at
  • Subject: [mg33092] MathLink and List
  • From: Adam Lyon <lyon at>
  • Date: Fri, 1 Mar 2002 06:52:24 -0500 (EST)
  • Organization: LNS, Cornell U., Ithaca, NY 14853
  • Sender: owner-wri-mathgroup at


I have a question about lists and MathLink. Here's what I want to do:

I want to have a Mathematica list, but instead of the list holding its
data internally, it goes to a C function that I write in MathLink to get
a data element. The idea here is that I have some large data files that
I would like to bring into Mathematica, but they are too big to fit in
memory. The data is structured in such a way that I can get very
efficient access to it via C functions. So my dilemma is how can I make
Mathematica think this data is a list (so I can do things like ListPlot)
and yet allow me to control how it accesses the actual data. I've looked
for a long time on the web and newsgroups and have seen no examples of

Any ideas? Much thanks!

Best regards,


Adam Lyon / Univ. of Rochester Group at CLEO
Wilson Synchrotron Lab (Cornell University, Ithaca, NY)

  • Prev by Date: Mathematica and Maple disagree on this integral
  • Next by Date: No more memory Re: Large Files
  • Previous by thread: Re: Mathematica and Maple disagree on this integral
  • Next by thread: No more memory Re: Large Files