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.

cheers,

David
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to