MATLink icon indicating copy to clipboard operation
MATLink copied to clipboard

Handle transferring Inf and NaN from MATLAB

Open szhorvat opened this issue 12 years ago • 1 comments

In the long term, we'll need to support transferring Inf and NaN from MATLAB to Mathematica.

At the moment these quantities show up as Inf`` and Nan`` in Mathematica and they are unusable (their behaviour is unpredictable even under simple operations such as ==).

Example of a function that typically generate useful Inf values: voronoin.

I think this can wait until the next big release though.


Notes: Because of the unreliability of Inf`` and NaN`` in Mathematica, this will need to be implemented on the C++ side. Arrays should be scanned for these values, and their indices transferred separately.

szhorvat avatar Apr 02 '13 17:04 szhorvat

Update: To keep things usage-driven, it needs to be mentioned that the Inf returned by voronoin is not particularly useful.

szhorvat avatar Apr 03 '13 14:04 szhorvat