Help / Release / J 5.04 / f/\. Improved
< Help
Jump to navigation
Jump to search
>> << Pri JfC LJ Phr Dic Voc !: Rel NuVoc wd Help Release
f/\. Improved |
initial writing: 2005-02-25 |
The monad f/\.x for “well-behaved” f and boolean, integer, floating point, or complex x has been made faster and leaner. f is well behaved if
($x) -: $f x (type x) -: type f x
where type=:3!:0 .
The following benchmarks illustrate the improvements:
ts=: 6!:2 , 7!:2@] NB. time and space x=: _5 + 1e6 ?@$ 12 ts '(0:>.+)/\.x' NB. J 5.04 0.463069 4.19635e6 ts '(0:>.+)/\.x' NB. J 5.03 0.912081 1.44582e8