From: Olivier Saut Date: 2002-12-02T18:50:41+09:00 Subject: Re: Numerical Ruby On Sun, 01 Dec 2002, MikkelFJ wrote: > > "Masahiro TANAKA" wrote in message > news:20021201.192929.41625961.masa@ir.isas.ac.jp... > > > @Bz[1..-2,1..-2] += (dt/dy)*(@Ex[2..-1,1..-2] - @Ex[1..-2,1..-2]) > > end > > > > For 500x500 array, the result of benchmark on my machine is: > > > > with loop: 8.69 sec > > without loop: 0.31 sec > > > This is actually pretty cool - now how much code would you need in C to get > the same performance. Yes. After a rewrite following Masahiro's suggestion, my code is 50 times faster! - Olivier