[Top][All Lists]

[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 :

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'),


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]