[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #52593] qr(A, 'matrix') and qr(A, 'vector') re
From: |
Marco Caliari |
Subject: |
[Octave-bug-tracker] [bug #52593] qr(A, 'matrix') and qr(A, 'vector') return the wrong result with a tall skinny matrix |
Date: |
Wed, 6 Dec 2017 04:01:46 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0 |
Follow-up Comment #2, bug #52593 (project octave):
The problem starts at line 23812 of libinterp/dldfcn/qr.cc
template <typename T>
static typename octave::math::qr<T>::type
qr_type (int nargin, int nargout)
{
return ((nargout == 0 || nargout == 1)
? octave::math::qr<T>::raw
: (nargin == 2) ? octave::math::qr<T>::economy :
octave::math::qr<T>::std);
}
It is not possible to select the type by just considering the number of input
and output arguments. qr(A,0) is type economy, while qr(A,'matrix') and
qr(A,'vector') are std. And then there are qr(A,B,0), qr(A,B,'matrix'),
qr(A,B,'vector').
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52593>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #52593] qr(A, 'matrix') and qr(A, 'vector') return the wrong result with a tall skinny matrix, Joseph Young, 2017/12/05
- [Octave-bug-tracker] [bug #52593] qr(A, 'matrix') and qr(A, 'vector') return the wrong result with a tall skinny matrix, Marco Caliari, 2017/12/06
- [Octave-bug-tracker] [bug #52593] qr(A, 'matrix') and qr(A, 'vector') return the wrong result with a tall skinny matrix,
Marco Caliari <=
- [Octave-bug-tracker] [bug #52593] qr(A, 'matrix') and qr(A, 'vector') return the wrong result with a tall skinny matrix, Rik, 2017/12/06
- [Octave-bug-tracker] [bug #52593] qr(A, 'matrix') and qr(A, 'vector') return the wrong result with a tall skinny matrix, Joseph Young, 2017/12/06
- [Octave-bug-tracker] [bug #52593] qr(A, 'matrix') and qr(A, 'vector') return the wrong result with a tall skinny matrix, Joseph Young, 2017/12/06
- [Octave-bug-tracker] [bug #52593] qr(A, 'matrix') and qr(A, 'vector') return the wrong result with a tall skinny matrix, Rik, 2017/12/06
- [Octave-bug-tracker] [bug #52593] qr(A, 'matrix') and qr(A, 'vector') return the wrong result with a tall skinny matrix, Marco Caliari, 2017/12/07