[Numpy-discussion] anyone to look at #1402?

David Cournapeau david@silveregg.co...
Fri Feb 26 04:47:51 CST 2010

Gael Varoquaux wrote:
> On Fri, Feb 26, 2010 at 07:23:54PM +0900, David Cournapeau wrote:
>> David Warde-Farley wrote:
>>> My first
>>> instinct would be to look for "logdet", but I would also not expect such
>>> a function to return the log determinant *and* the sign of the 
>>> determinant.
>> What about having logadet for the (common) case where log |A| only is 
>> needed, and having the more complex function when the sign is needed as 
>> well ?
> I was more thinking of a 'return_sign=False' keyword argument.

I think the consensus in python community is to actually create two 
functions when the returned values' kind differ depending on a boolean.



More information about the NumPy-Discussion mailing list