bugGNU Octave - Bugs: bug #31401, Single arrays returned from mex...

 
 

bug #31401: Single arrays returned from mex files are converted to double arrays.

Submitted by:  Gunnar Farnebäck <gf>
Submitted on:  Thu 21 Oct 2010 08:19:31 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Gunnar FarnebäckOpen/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 21 Oct 2010 09:24:03 PM UTC, comment #1:

Thanks for the patch. I applied it and added your name to the list of contributors in the manual.

John W. Eaton <jwe>
Project Administrator
Thu 21 Oct 2010 08:19:31 PM UTC, original submission:

When a mex file returns a single array it is converted to a double array before it reaches octave's workspace. Since octave now supports single arrays this conversion is no longer needed, nor desirable. The attached patch corrects this, hopefully in a proper way. I also attach a minimal example mex file returning a scalar single.

Gunnar Farnebäck <gf>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #21751:  test_mex_single.c added by gf (208B - text/x-csrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by gf (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 21 Oct 2010 09:24:03 PM UTCjweStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Thu 21 Oct 2010 08:19:31 PM UTCgfAttached File-=>Added mex_float_conversion_fix.diff, #21750
      Attached File-=>Added test_mex_single.c, #21751

    Back to the top


    Powered by Savane 3.1-cleanup1