octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #29997] legendre can not process column vector


From: Qianqian Fang
Subject: [Octave-bug-tracker] [bug #29997] legendre can not process column vectors
Date: Sun, 30 May 2010 18:50:15 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3

Follow-up Comment #1, bug #29997 (project octave):

patch revised. Add fix to an additional issue: Legendre Polynomial is only
defined for real x. However, the 
  if (! isvector (x) || any (x < -1 || x > 1))
statement does not catch complex inputs, it was changed to 
  if (! isvector (x) || !isreal(x) || any (x < -1 || x > 1))

the x=x(:)' statement was changed to 
 x=reshape(x(:),1,prod(size(x)));
since it does not make x conjugate when x is complex, although combined with
the above fix, it should not an issue anymore, but still look more robust.

(file #20656)
    _______________________________________________________

Additional Item Attachment:

File name: legendre_column_vector.patch   Size:0 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?29997>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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