bugGNU Octave - Bugs: bug #34292, Bug in gradient.m with complex...

 
 

bug #34292: Bug in gradient.m with complex inputs

Submitted by:  spasmous <spasmous>
Submitted on:  Wed 14 Sep 2011 05:53:47 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.2.4Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 16 Sep 2011 07:11:14 PM UTC, comment #2:

I have push a small fix. Thanks for reporting.

Kai

Kai Habel <kahacjde>
Project Member
Fri 16 Sep 2011 02:34:08 PM UTC, comment #1:

The assignment in matrix_gradient(line 89) in gradient.m

m = m(:)'

should be replaced with

m = m(:).'

I will do that later today.

Kai

Kai Habel <kahacjde>
Project Member
Wed 14 Sep 2011 05:53:47 PM UTC, original submission:

octave:213> y = i*[1 2 3 4 5];
octave:214> diff(y)
ans = 0 + 1i 0 + 1i 0 + 1i 0 + 1i

octave:215> gradient(y)
ans = 0 - 1i 0 - 1i 0 - 1i 0 - 1i 0 - 1i

spasmous <spasmous>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by kahacjde (Posted a comment)
  • -unavailable- added by spasmous (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
    Fri 16 Sep 2011 07:11:14 PM UTCkahacjdeStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Fri 16 Sep 2011 02:34:08 PM UTCkahacjdeStatusNone=>Ready For Test

    Back to the top


    Powered by Savane 3.1-cleanup1