Re: I have nested lists of ints and reals to be put over Mathlink...
- To: mathgroup at smc.vnet.net
- Subject: [mg22813] Re: I have nested lists of ints and reals to be put over Mathlink...
- From: "Jamie B. McHardy" <jamie.mchard at nokia.com>
- Date: Fri, 31 Mar 2000 01:01:16 -0500 (EST)
- Organization: Nokia Mobile Phones Ltd.
- References: <8bfehl$idj@smc.vnet.net> <8bhuh6$nht@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Thanks Jens, Does this mean that I have to MLGetNext() for each of the items in the list, and will it return the Head for each part in the array, i.e. List[{}], List[{}], List[ List[ List[1, 3.22, 8]... etc...? or is it easier than that? Also isn't this going to be very very slow? Thanks in advance Jamie :o) Jens-Peer Kuska wrote: > Hi, > > > I thought I could call MLGetRealArray(...) but this would > > require an array. Since some of these sets can be variable > > sizes and some can be empty, how would I go about implementing > > this in C. > > No, MLGetRealArray() is for regular n1 x n2 .. x ni Arrays. > You mut use MLGetNext() to see whats coming and to > decide what to do with the a list or a real or an integer. > > Hope that helps > Jens