Terrence Brannon wrote: > Hello J fans, > > I am trying to implement this benchmark: > http://shootout.alioth.debian.org/gp4/benchmark.php?test=spectralnorm&lang=all >
Following the C# program, if you really want to write separate functions, you want something like mp=:+/ .* MultiplyAv=:mp MultiplyAtv=:|:@:[ mp ] MultiplyAtAv=:|:@:[ mp mp Using for loops in J for these operations is a bad idea. Best wishes, John ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
