Re: operations with lists
- To: mathgroup at smc.vnet.net
- Subject: [mg4107] Re: operations with lists
- From: Harald Berndt <haraldb at nature.berkeley.edu>
- Date: Tue, 4 Jun 1996 02:19:34 -0400
- Organization: University of California Forest Products Lab
- Sender: owner-wri-mathgroup at wolfram.com
Jonathan Lee wrote: > > Hello, > > I need help for three things: > > 1) are there any tips for operating with large lists/matrices (in the > order of 512*512 or so) > MathLink to MatLab or C librraries, maybe? > and > > 2) is it possible to thread a compiled function over several lists. One list at a time, you mean? That should be immediate. At the same time? Combine the lists in the appropriate way. > > 3) is there any way to "intertwine" two lists? > > i.e., if a and b are lists, is there a simple way to make a list that is > {a[[1]], b[[1]],a[[2]],b[[2]],...}? > > Thanks for any and all help. > Flatten[ Transpose[{a, b}] ] -- _______________________________________________________________ Harald Berndt University of California Research Specialist Forest Products Laboratory Phone: 510-215-4224 FAX:510-215-4299 _______________________________________________________________ ==== [MESSAGE SEPARATOR] ====