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:28:28 +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

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

                 Summary: legendre can not process column vectors
                 Project: GNU Octave
            Submitted by: fangq
            Submitted on: Sun 30 May 2010 06:28:27 PM GMT
                Category: Interpreter
                Severity: 3 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Qianqian Fang
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

when giving a column vector to legendre(), it will raise a "nonconformant"
error and quit, like this:

octave:6> dat=legendre(1,cos((0:10)'))
error: product: nonconformant arguments (op1 is 11x1, op2 is 1x11)
error: called from:
error:   octave/scripts/specfun/legendre.m at line 156, column 10

Matlab legendre() can handle vertical vectors, which yields identical
solutions to a row vector.

The following simple patch enables octave to do the same.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 30 May 2010 06:28:27 PM GMT  Name: legendre_column_vector.patch 
Size: 358B   By: fangq
patch to allow 
<http://savannah.gnu.org/bugs/download.php?file_id=20655>

    _______________________________________________________

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]