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

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

[Octave-bug-tracker] [bug #51784] mexGetVariable does returns empty matr


From: Piotr Held
Subject: [Octave-bug-tracker] [bug #51784] mexGetVariable does returns empty matrix instead of nullptr for non-existant global variables
Date: Wed, 23 Aug 2017 12:05:19 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36

Follow-up Comment #1, bug #51784 (project octave):

The mex api call that I am referring to looks like this:


mexGetVariable("global", "SOME_GLOBAL_VARIABLE");


If SOME_GLOBAL_VARIABLE doesn't exist GNU Octave currently returns a null
matrix (zeros(0,0)), and according to Matlab documentation and Matlab behavior
mexGetVariable should return nullptr in such a case.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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