bugGNU Octave - Bugs: bug #33526, legendre Matlab compatibility issue

 
 

bug #33526: legendre Matlab compatibility issue

Submitted by:  Arnaud Delorme <arnodelorme>
Submitted on:  Sat 11 Jun 2011 03:29:23 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.4.0Operating System: Mac OS

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 29 Jul 2011 08:58:21 AM UTC, comment #3:

Dear Rik,

I also provided a patch for #33462 and #33606. Is there a way to tell the maintainers that a patch fixing the problem (at least for the sender) has been submitted?

Thanks,

Marco

Marco Caliari <caliari>
Project Member
Wed 27 Jul 2011 06:23:21 PM UTC, comment #2:

Fixed on the stable branch in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/72ffa81a68d4).

Thanks Marco for coding this patch. I didn't see it until today or I would have committed it earlier.

Rik <rik5>
Project Administrator
Thu 30 Jun 2011 03:22:24 PM UTC, comment #1:

Dear maintainers,

I'm enclosing a patch (w.r.t. 3.4.1) which allow X to be a ndarray.

Best regards,

Marco

(file #23596)

Marco Caliari <caliari>
Project Member
Sat 11 Jun 2011 03:29:23 PM UTC, original submission:

legendre(2, [0.5 0.5; 0.5 0.5]); % works in Matlab but not in Octave

A simple fix below

function L = legendre_fix(n, Ei)

for icol = 1:size(EI,2)
tmpL = legendre(n,EI(:,icol));
if icol == 1, L = zeros([ size(tmpL) size(EI,2)]); end;
L(:,:,icol) = tmpL;
end;

Arnaud Delorme <arnodelorme>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #23596:  legendre.m.patch added by caliari (2KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by caliari (Updated the item)
  • -unavailable- added by arnodelorme (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 27 Jul 2011 06:23:21 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Thu 30 Jun 2011 03:22:24 PM UTCcaliariAttached File-=>Added legendre.m.patch, #23596

    Back to the top


    Powered by Savane 3.1-cleanup1