Re: Applying position-dependent functions on lists.
- To: mathgroup at smc.vnet.net
- Subject: [mg23235] Re: Applying position-dependent functions on lists.
- From: hans.steffani at e-technik.tu-chemnitz.de (Hans Friedrich Steffani)
- Date: Sat, 29 Apr 2000 22:04:44 -0400 (EDT)
- Organization: Chemnitz University of Technology
- References: <8e0n0l$f3d@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
On 24 Apr 2000 01:44:53 -0400, Manolis Petrakis <MPetrakis at yahoo.com> wrote: >I'm trying to write a program for solving the 2-D Ising model, but not using >the standard Do[...] approach, to modify every spin on a spin list, using >the Metropolis Function. What about MapIndexed[]? > >This problem can be generalized if anyone wants to apply functions on >matrices that depend on element positions, That's what MapIndexed[] does >and require the values of nearest neighbor elements. hmm ... Hans Friedrich Steffani -- Hans Friedrich Steffani Institut fuer Elektrische Maschinen und Antriebe, TU Chemnitz mailto:hans.steffani at e-technik.tu-chemnitz.de http://www.tu-chemnitz.de/~hfst/