[Numpy-discussion] New ufuncs
Thu Nov 6 16:17:37 CST 2008
On Thu, Nov 6, 2008 at 1:48 PM, Charles R Harris
> What is your particular interest in these other bases and why would
> they be better than working in base e and converting at the end?
The interest is in information theory, where quantities are
(standardly) represented in bits. So log2 quantities are often stored
by the user and then passed into functions or classes. The main
reason I'd like to shy away from conversions is that I also make use
of generators/iterators and having next() convert to bits before each
yield is not ideal (as these things are often slow enough and will be
called many times).
>The only one I could see really having a fast implementation is log2.
No disagreement here :)
More information about the Numpy-discussion