[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #41448] ppval returns wrong dimensions for sca
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #41448] ppval returns wrong dimensions for scalar valued polynomial |
Date: |
Mon, 03 Feb 2014 22:25:40 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0 |
Update of bug #41448 (project octave):
Status: None => Fixed
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
Confirmed.
The function ppval is located in scripts/polynomial/ppval.m. At the bottom of
the function just before returning the result to the user I see this
## FIXME: Why is this commented out, rather than just removed?
#if (d == 1)
# yi = reshape (yi, sxi);
#endif
If I uncomment this section of code then I get the correct shape. I'm not
sure why this happened, but I made the fix by uncommenting out the code. I
also added a built-in self test for this so it won't happen again. The fix
was made on the stable branch
(http://hg.savannah.gnu.org/hgweb/octave/rev/90568d7fe382) and will be a part
of the 3.8.1 bug fix release.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?41448>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/