[Numpy-discussion] Dealing with the mode argument in qr.

Charles R Harris charlesr.harris@gmail....
Wed Feb 6 14:57:34 CST 2013


On Wed, Feb 6, 2013 at 1:38 PM, Bradley M. Froehle
<brad.froehle@gmail.com>wrote:

>
>  This would be a problem imho. But I don't see why you can't add "raw" to
>>> numpy's qr. And if you add "big" and "thin" in numpy, you can add those
>>> modes in scipy too.
>>>
>>
>> Currently I've used bfroehle's suggestions, although I'm tempted by
>> 'thin' instead of 'reduced'
>>
>
> Thin sounds fine to me.  Either way I think we need to clean up the
> docstring to make the different calling styles more obvious.  Perhaps we
> can just add a quick list of variants:
> q, r = qr(a) # q is m-by-k, r is k-by-n
> q, r = qr(a, 'thin')  # same as qr(a)
> q, r = qr(a, 'complete') # q is m-by-n, r is n-by-n
>    r = qr(a, 'r') # r is ....
> a2  = qr(a, 'economic') # r is contained in the upper triangular part of a2
> a2, tau = qr(a, 'raw') # ...
>
>
There is a list similar to that already there. Take a look and comment.

Chuck

>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20130206/c681e7ae/attachment.html 


More information about the NumPy-Discussion mailing list