On 06/07/2012 15:25, Kris Thielemans wrote:
> Hi Fabien
>
> That page doesn't mention mxOBJECT (only mxArray). Doing a search on the 
> matlab doc doesn't throw anything up either. Internal behaviour?
>
> http://www.mathworks.co.uk/help/search/doc/en/R2012a?qdoc=mxobject&submitsearch=Search
>
>    

Oops... Should have pointed to
http://www.mathworks.fr/help/matlab/matlab_external/matlab-data.html#f22000
instead, which details Matlab types. And mxOBJECT_CLASS is used to 
declare 'object' (below is an extract of matrix.h, matlab R2011b) :
*************
/**
* Enumeration corresponding to all the valid mxArray types.
*/
typedef enum
{
mxUNKNOWN_CLASS = 0,
mxCELL_CLASS,
mxSTRUCT_CLASS,
mxLOGICAL_CLASS,
mxCHAR_CLASS,
mxVOID_CLASS,
mxDOUBLE_CLASS,
mxSINGLE_CLASS,
mxINT8_CLASS,
mxUINT8_CLASS,
mxINT16_CLASS,
mxUINT16_CLASS,
mxINT32_CLASS,
mxUINT32_CLASS,
mxINT64_CLASS,
mxUINT64_CLASS,
mxFUNCTION_CLASS,
mxOPAQUE_CLASS,
mxOBJECT_CLASS, /* keep the last real item in the list */
#if defined(_LP64) || defined(_WIN64)
mxINDEX_CLASS = mxUINT64_CLASS,
#else
mxINDEX_CLASS = mxUINT32_CLASS,
#endif
/* TEMPORARY AND NASTY HACK UNTIL mxSPARSE_CLASS IS COMPLETELY ELIMINATED */
mxSPARSE_CLASS = mxVOID_CLASS /* OBSOLETE! DO NOT USE */
}


However, checking types in matlab R2012a :
http://www.mathworks.fr/help/techdoc/apiref/mxclassid.html

doesn't give an 'object' class anymore...
I did not notice this version issue, and this probably partially answers 
the question : implementing this class is therefore not that desirable, 
since mex-based applications will have to get round this removal. Right?

Fabien


> Kris
>
>    
>> -----Original Message-----
>> From: fabien amiot [mailto:fabien.am...@femto-st.fr]
>> Sent: 06 July 2012 13:01
>> To: octave-dev@lists.sourceforge.net
>> Subject: Re: [OctDev] mxOBJECT_CLASS
>>
>> On 05/07/2012 17:54, Jordi Gutiérrez Hermoso wrote:
>>      
>>> On 5 July 2012 12:07, fabien amiot<fabien.am...@femto-st.fr>   wrote:
>>>
>>>        
>>>> I haven't found that much about that in the archive : is there a
>>>> particular reason (I mean besides manpower limitations) for
>>>> mxOBJECT_CLASS not being implemented in Octave ?
>>>>
>>>>          
>>> Probably not. Can you provide some documentation about what this is?
>>> All I could find is some Java constant static integer field.
>>>
>>> - Jordi G. H.
>>>
>>>
>>>        
>> This refers to 'objects' as used in mex programming :
>> http://www.mathworks.fr/help/matlab/matlab_external/matlab-data.html
>> Matlab's mex.h implements this mxOBJECT_CLASS , but Octave's doesn't.
>>
>> F.
>>
>> --
>> Fabien AMIOT
>> Chargé de recherche CNRS en colere / cross Research Associate
>> fabien.am...@femto-st.fr
>> Tel : (+33) (0)3.81.66.60.14
>> Fax : (+33) (0)3.81.66.67.00
>> UMR6174 / FEMTO-ST, Dpt. Mécanique Appliquée
>> 24, rue de l'Épitaphe
>> 25000 Besancon
>> France
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Octave-dev mailing list
>> Octave-dev@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/octave-dev
>>      
>
>    


-- 
Fabien AMIOT
Chargé de recherche CNRS en colere / cross Research Associate
fabien.am...@femto-st.fr
Tel : (+33) (0)3.81.66.60.14
Fax : (+33) (0)3.81.66.67.00
UMR6174 / FEMTO-ST, Dpt. Mécanique Appliquée
24, rue de l'Épitaphe
25000 Besancon
France


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to