bugGNU Octave - Bugs: bug #42061, dot() fails to diagnose...

 
 

bug #42061: dot() fails to diagnose non-conformable arguments

Submitted by:  Glenn Golden <grepfor>
Submitted on:  Sun 06 Apr 2014 09:25:22 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Glenn GoldenOpen/Closed: Closed
Release: 3.8.0Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 07 Apr 2014 01:37:52 AM UTC, comment #2:

> How in the world could a bug like this have escaped testing?


Because it was never tested. Can you write more tests for Octave? We
can always use more help.

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Sun 06 Apr 2014 09:59:37 PM UTC, comment #1:

I fixed this on the stable branch in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/60562e5c8bfb). It will be a part of bug fix release 3.8.2.

This managed to exist for so long because the Octave code base is huge and we do not have 100% line coverage for testing. I added more tests for the input validation of the dot function in with the same changeset.

Closing report.

Rik <rik5>
Project Administrator
Sun 06 Apr 2014 09:25:22 PM UTC, original submission:

The dot() function fails to complain if the operands are non-conformable(!).

This seems pretty gross, and one must ask (without meaning any disrespect): How in the world could a bug like this have escaped testing? Can it actually be considered correct operation in some sense?

The doc claims that dot(x,y) is supposed to be equivalent to

which makes sense, but clearly this cannot be the case when x and y are non-conformable. Based on the results obtained, the behavior seems like the shorter operand is being extended with zeros to the length of the longer one.

Can this actually be intended in some sense?

Glenn Golden <grepfor>

 

(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 jordigh (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by grepfor (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 06 Apr 2014 09:59:37 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1