bugGNU Octave - Bugs: bug #38760, Single data type complex diagonal...

 
 

bug #38760: Single data type complex diagonal matrices are not correctly recognized in the OCT file.

Submitter:  None
Submitted:  Wed 17 Apr 2013 03:05:13 PM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  dbateman
Originator Name:  Zdenek Prusa Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.6.4
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 20 Jun 2013 01:42:51 AM UTC, comment #1: 
David Bateman <dbateman>
Group Member
Wed 17 Apr 2013 03:05:13 PM UTC, original submission:  

Hi,
I am using mingw 32bit build of Octave on 64bit windows 7.

Consider this code snippet:

#include <octave/oct.h>

DEFUN_DLD (bugsingle, args, nargout,
           "Reproducing the single complex diag. matrix bug. \n")
{

    if(args(0).is_complex_type())
    {
       if(args(0).is_single_type())
       {
          octave_stdout << "Input is complex single." << "\n";
       }
       else if(args(0).is_double_type())
       {
          octave_stdout << "Input is complex double." << "\n" ;
       }
    }
    return octave_value_list();
}


Calling it from octave results in:

Correct output:

octave:10> bugsingle(single(ones(3)*i))
Input is complex single.

Incorrect output:

octave:11> bugsingle(single(eye(3)*i))
Input is complex double.


I suspect there is something wrong with the specialized classes for the diagonal matrices, but I am not able to track that down. Sorry.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by dbateman (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-06-20 dbateman StatusNone Fixed
        Assigned toNone dbateman
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code