Eötvös Quantum Utilities  v4.9.146
Providing the Horsepowers in the Quantum Realm
EQuUs_MATLAB.h
Go to the documentation of this file.
1 #ifdef __cplusplus
2 extern "C" {
3 #endif
4 
7 /* element prototype to interface with MATLAB */
8 typedef struct {
9  int* dim;
10  int* dims;
11  void* value;
12  mxClassID* classID;
13  char* elementname;
14 } EQelement;
15 
16 /* structure prototype to interface with MATLAB */
17 typedef struct {
19  int numfields;
20 } EQstruct;
21 
22 
23 #ifdef __INTEL_COMPILER
24 void equus_c_mp_deallocateelement_( EQelement* eq_element );
25 #else
26 void __equus_c_MOD_deallocateelement( EQelement* eq_element );
27 #endif
28 
29 #ifdef __cplusplus
30  }
31 #endif
32 
37 void convert2FortranString( char* cstring, int strlength );
38 
43 void setField( EQelement* eq_field, mxArray* Mstruct );
44 
49 void setField( mxArray* field, const char* fieldname, mxArray* Mstruct );
50 
55 char** getFieldnames( EQstruct* eq_struct );
56 
60 void regularizeEQstruct( EQstruct* eq_struct );
int * dim
Definition: EQuUs_MATLAB.h:9
int numfields
Definition: EQuUs_MATLAB.h:19
int * dims
Definition: EQuUs_MATLAB.h:10
void * value
Definition: EQuUs_MATLAB.h:11
void convert2FortranString(char *cstring, int strlength)
Converts a C string into fortran compatible character array.
char ** getFieldnames(EQstruct *eq_struct)
Get all the element names stored in the eq_struct structure prototype.
void regularizeEQstruct(EQstruct *eq_struct)
Sort out invalid EQelements from an EQstruct structure prototype.
void setField(EQelement *eq_field, mxArray *Mstruct)
Set a field in a MATLAB structure.
EQelement * fields
Definition: EQuUs_MATLAB.h:18
mxClassID * classID
Definition: EQuUs_MATLAB.h:12
void __equus_c_MOD_deallocateelement(EQelement *eq_element)
char * elementname
Definition: EQuUs_MATLAB.h:13