Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

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

Search the Archive

Re: Applying position-dependent functions on lists.

  • To: mathgroup at
  • Subject: [mg23235] Re: Applying position-dependent functions on lists.
  • From: hans.steffani at (Hans Friedrich Steffani)
  • Date: Sat, 29 Apr 2000 22:04:44 -0400 (EDT)
  • Organization: Chemnitz University of Technology
  • References: <8e0n0l$>
  • Sender: owner-wri-mathgroup at

On 24 Apr 2000 01:44:53 -0400, Manolis Petrakis <MPetrakis at> 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

  • Prev by Date: RE: Re: Plotting bounded domains
  • Next by Date: Re: ...can't help, but let me muddy the waters a bit. ;-) ...
  • Previous by thread: Re: Applying position-dependent functions on lists.
  • Next by thread: how to XY plot a list of complex numbers?