2007/2/7, Miller, Raul D <[EMAIL PROTECTED]>:
June Kim wrote:
> What else can I do to speed it up significantly?
I'd probably start with Chris Reiter's implementation
of Mandelbrot. A quick test shows his non-optimized
implementation is several times faster than the one
you posted here.
Did you mean this one?
escapetc=: 2 : 0
#@((,[EMAIL PROTECTED]:)^:(<&({:n)@# *. (<&({.n)@|@{:))^:_) f."0
)
zl_clur=: 4 : 0
w=.-~/9 o.y
h=.-~/11 o.y
xs=.({.y)+w*(i.%<:)1+x
ys=.h*(i:%j.)<.0.5+x*h%w
ys +/ xs
)
mandelt=: (3 : 'y&[EMAIL PROTECTED]: escapetc (10 255) 0')"0
zl_cccr=: 4 : 0
w=.--/y
({.y)+w*((i:%j.) +/ (i:%])) <.-:x
)
How could I get the same(or similar) result using these?
See also:
http://www.jsoftware.com/jwiki/Addons
http://www.jsoftware.com/jwiki/Addons/graphics/fvj3
That said, I don't have time to optimize his work
for this case. (By optimize I mean: make it not
do unneeded work.)
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm