Here is a kludgy sort of  solution.  Tim  and the other  wizards will 
probably  know if it was  suggested before.

https://gist.github.com/PetrKryslUCSD/7b96cd937e2e6cdb58db

Measurements:

elapsed time: 0.440441867 seconds (320050384 bytes allocated, 31.29% gc 
time)
elapsed time: 0.001976364 seconds (62724 bytes allocated)
elapsed time: 1.001955839 seconds (320046408 bytes allocated, 13.32% gc 
time)
elapsed time: 0.002634663 seconds (76500 bytes allocated)
elapsed time: 0.002585548 seconds (81116 bytes allocated)

The last solution on the list could be  much improved syntactically if one 
could define  a "call" syntax  for an object. Very recent post addresses  
this need: 
https://groups.google.com/forum/?fromgroups=#!topic/julia-users/blreJXpp-FQ

Petr


Reply via email to