octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #31401] Single arrays returned from mex files


From: Gunnar Farnebäck
Subject: [Octave-bug-tracker] [bug #31401] Single arrays returned from mex files are converted to double arrays.
Date: Thu, 21 Oct 2010 20:19:31 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.14) Gecko/20101020 Iceweasel/3.5.13 (like Firefox/3.5.13)

URL:
  <http://savannah.gnu.org/bugs/?31401>

                 Summary: Single arrays returned from mex files are converted
to double arrays.
                 Project: GNU Octave
            Submitted by: gf
            Submitted on: Thu 21 Oct 2010 10:19:31 PM CEST
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Gunnar Farnebäck
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

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.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 21 Oct 2010 10:19:31 PM CEST  Name: mex_float_conversion_fix.diff 
Size: 2kB   By: gf

<http://savannah.gnu.org/bugs/download.php?file_id=21750>
-------------------------------------------------------
Date: Thu 21 Oct 2010 10:19:31 PM CEST  Name: test_mex_single.c  Size: 208B  
By: gf

<http://savannah.gnu.org/bugs/download.php?file_id=21751>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31401>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]