Kazushige Goto wrote: < Kazushige Goto explaining about the benefits of loop restructuring and the like > If you can read German, some time ago there was an article on a very related subject with examples, resp. on optimized programms for vector computers, by a pretty unknown author (myself ) in the German computer mag "mc". In the moment, I don't have the Ref. handy, I will look it up, but I think I can also send a hard-copy to interested people (if not too many). BTW, be warned to get confused. For certain reasons too complex to discuss here (but its in the article), an "inner dot product" based routine may *NOT* be THE best way on a typical vector computer !! There is also a good, yet now somewhat older, book (also German) by Schönauer on that subject (cited in my article, I will look up the Ref, too). Joachim