[Numpy-discussion] New ufuncs

T J tjhnson@gmail....
Wed Nov 5 00:05:10 CST 2008


On Tue, Nov 4, 2008 at 9:37 PM, Anne Archibald
<aarchiba@physics.mcgill.ca> wrote:
> 2008/11/5 Charles R Harris <charlesr.harris@gmail.com>:
>> Hi All,
>>
>> I'm thinking of adding some new ufuncs. Some possibilities are
>>
>> expadd(a,b) = exp(a) + exp(b) -- For numbers stored as logs:
>
> Surely this should be log(exp(a)+exp(b))? That would be extremely useful, yes.
>

+1

But shouldn't it be called 'logadd', for adding values which are stored as logs?

http://www.lri.fr/~pierres/donn%E9es/save/these/torch/docs/manual/logAdd.html

I would also really enjoy a logdot  function, to be used when working
with arrays whose elements are log values.


More information about the Numpy-discussion mailing list