Ahmad Issa wrote: > I'm trying to plot some of the mandelbrot set. My > implementation is discouragingly slow, are there > any faster implementations in J?
Presumably, yes: http://www.jsoftware.com/jwiki/Books#head-8ca3f3769d7a001e890dcbfef60fb0 8276bce3d6 Inspecting your code, it looks like you've broken the problem into a bunch of more or less unrelated little pieces. To get better performance, you should eliminate unnecessary steps. For example, I would start by eliminating all your ext_* verbs and replacing them with something which treats the data in an array fashion (perhaps using inner product or something of that nature). Except where this introduces big-O problems, eliminating extra evaluation steps is one of the more obvious ways to improve J performance. -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
