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

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

[Octave-bug-tracker] [bug #39906] mxGetPr Modifies the Results of mxGetD


From: anonymous
Subject: [Octave-bug-tracker] [bug #39906] mxGetPr Modifies the Results of mxGetDimensions
Date: Sat, 31 Aug 2013 08:09:25 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0

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

                 Summary: mxGetPr Modifies the Results of mxGetDimensions
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Sat 31 Aug 2013 08:09:24 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Data Infer
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.2.4
        Operating System: GNU/Linux

    _______________________________________________________

Details:

/* Code has been attached */
/* Brief Code Sample, in mexFunction */

const mwSize            NDims = mxGetNumberOfDimensions( prhs[ 0 ] );

const mwSize* const     Extents = mxGetDimensions( prhs[ 0 ] );

// Print 1: Some code print the content of Extents

const double*   x = mxGetPr( prhs[ 0 ] ); // Trig the bug

// Print 2: Some code print the content of Extents

// Print 1 and Print 2 will give different results





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 31 Aug 2013 08:09:24 AM UTC  Name: bug.zip  Size: 21kB   By: None

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

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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