@@ -54,87 +54,87 @@ function __init__()
5454
5555 # load libraries
5656
57- _libmx [] = Libdl. dlopen (joinpath (lib_path, " libmx" ), Libdl. RTLD_GLOBAL)
58- _libmat [] = Libdl. dlopen (joinpath (lib_path, " libmat" ), Libdl. RTLD_GLOBAL)
59- _libeng [] = Libdl. dlopen (joinpath (lib_path, " libeng" ), Libdl. RTLD_GLOBAL)
57+ libmx [] = Libdl. dlopen (joinpath (lib_path, " libmx" ), Libdl. RTLD_GLOBAL)
58+ libmat [] = Libdl. dlopen (joinpath (lib_path, " libmat" ), Libdl. RTLD_GLOBAL)
59+ libeng [] = Libdl. dlopen (joinpath (lib_path, " libeng" ), Libdl. RTLD_GLOBAL)
6060
6161
6262 # load functions to access mxArray
6363
64- _mx_free [] = mxfunc (:mxFree )
65-
66- _mx_get_classid [] = mxfunc (:mxGetClassID )
67- _mx_get_m [] = mxfunc (:mxGetM )
68- _mx_get_n [] = mxfunc (:mxGetN )
69- _mx_get_nelems [] = mxfunc (:mxGetNumberOfElements )
70- _mx_get_ndims [] = mxfunc (:mxGetNumberOfDimensions_730 )
71- _mx_get_elemsize [] = mxfunc (:mxGetElementSize )
72- _mx_get_data [] = mxfunc (:mxGetData )
73- _mx_get_dims [] = mxfunc (:mxGetDimensions_730 )
74- _mx_get_nfields [] = mxfunc (:mxGetNumberOfFields )
75- _mx_get_pr [] = mxfunc (:mxGetPr )
76- _mx_get_pi [] = mxfunc (:mxGetPi )
77- _mx_get_ir [] = mxfunc (:mxGetIr_730 )
78- _mx_get_jc [] = mxfunc (:mxGetJc_730 )
79-
80- _mx_is_double [] = mxfunc (:mxIsDouble )
81- _mx_is_single [] = mxfunc (:mxIsSingle )
82- _mx_is_int64 [] = mxfunc (:mxIsInt64 )
83- _mx_is_uint64 [] = mxfunc (:mxIsUint64 )
84- _mx_is_int32 [] = mxfunc (:mxIsInt32 )
85- _mx_is_uint32 [] = mxfunc (:mxIsUint32 )
86- _mx_is_int16 [] = mxfunc (:mxIsInt16 )
87- _mx_is_uint16 [] = mxfunc (:mxIsUint16 )
88- _mx_is_int8 [] = mxfunc (:mxIsInt8 )
89- _mx_is_uint8 [] = mxfunc (:mxIsUint8 )
90- _mx_is_char [] = mxfunc (:mxIsChar )
91-
92- _mx_is_numeric [] = mxfunc (:mxIsNumeric )
93- _mx_is_logical [] = mxfunc (:mxIsLogical )
94- _mx_is_complex [] = mxfunc (:mxIsComplex )
95- _mx_is_sparse [] = mxfunc (:mxIsSparse )
96- _mx_is_empty [] = mxfunc (:mxIsEmpty )
97- _mx_is_struct [] = mxfunc (:mxIsStruct )
98- _mx_is_cell [] = mxfunc (:mxIsCell )
64+ mx_free [] = mxfunc (:mxFree )
65+
66+ mx_get_classid [] = mxfunc (:mxGetClassID )
67+ mx_get_m [] = mxfunc (:mxGetM )
68+ mx_get_n [] = mxfunc (:mxGetN )
69+ mx_get_nelems [] = mxfunc (:mxGetNumberOfElements )
70+ mx_get_ndims [] = mxfunc (:mxGetNumberOfDimensions_730 )
71+ mx_get_elemsize [] = mxfunc (:mxGetElementSize )
72+ mx_get_data [] = mxfunc (:mxGetData )
73+ mx_get_dims [] = mxfunc (:mxGetDimensions_730 )
74+ mx_get_nfields [] = mxfunc (:mxGetNumberOfFields )
75+ mx_get_pr [] = mxfunc (:mxGetPr )
76+ mx_get_pi [] = mxfunc (:mxGetPi )
77+ mx_get_ir [] = mxfunc (:mxGetIr_730 )
78+ mx_get_jc [] = mxfunc (:mxGetJc_730 )
79+
80+ mx_is_double [] = mxfunc (:mxIsDouble )
81+ mx_is_single [] = mxfunc (:mxIsSingle )
82+ mx_is_int64 [] = mxfunc (:mxIsInt64 )
83+ mx_is_uint64 [] = mxfunc (:mxIsUint64 )
84+ mx_is_int32 [] = mxfunc (:mxIsInt32 )
85+ mx_is_uint32 [] = mxfunc (:mxIsUint32 )
86+ mx_is_int16 [] = mxfunc (:mxIsInt16 )
87+ mx_is_uint16 [] = mxfunc (:mxIsUint16 )
88+ mx_is_int8 [] = mxfunc (:mxIsInt8 )
89+ mx_is_uint8 [] = mxfunc (:mxIsUint8 )
90+ mx_is_char [] = mxfunc (:mxIsChar )
91+
92+ mx_is_numeric [] = mxfunc (:mxIsNumeric )
93+ mx_is_logical [] = mxfunc (:mxIsLogical )
94+ mx_is_complex [] = mxfunc (:mxIsComplex )
95+ mx_is_sparse [] = mxfunc (:mxIsSparse )
96+ mx_is_empty [] = mxfunc (:mxIsEmpty )
97+ mx_is_struct [] = mxfunc (:mxIsStruct )
98+ mx_is_cell [] = mxfunc (:mxIsCell )
9999
100100
101101 # load functions to create & delete MATLAB array
102102
103- _mx_create_numeric_mat [] = mxfunc (:mxCreateNumericMatrix_730 )
104- _mx_create_numeric_arr [] = mxfunc (:mxCreateNumericArray_730 )
103+ mx_create_numeric_mat [] = mxfunc (:mxCreateNumericMatrix_730 )
104+ mx_create_numeric_arr [] = mxfunc (:mxCreateNumericArray_730 )
105105
106- _mx_create_double_scalar [] = mxfunc (:mxCreateDoubleScalar )
107- _mx_create_logical_scalar [] = mxfunc (:mxCreateLogicalScalar )
106+ mx_create_double_scalar [] = mxfunc (:mxCreateDoubleScalar )
107+ mx_create_logical_scalar [] = mxfunc (:mxCreateLogicalScalar )
108108
109- _mx_create_sparse [] = mxfunc (:mxCreateSparse_730 )
110- _mx_create_sparse_logical [] = mxfunc (:mxCreateSparseLogicalMatrix_730 )
109+ mx_create_sparse [] = mxfunc (:mxCreateSparse_730 )
110+ mx_create_sparse_logical [] = mxfunc (:mxCreateSparseLogicalMatrix_730 )
111111
112- _mx_create_string [] = mxfunc (:mxCreateString )
113- _mx_create_char_array [] = mxfunc (:mxCreateCharArray_730 )
112+ mx_create_string [] = mxfunc (:mxCreateString )
113+ mx_create_char_array [] = mxfunc (:mxCreateCharArray_730 )
114114
115- _mx_create_cell_array [] = mxfunc (:mxCreateCellArray_730 )
115+ mx_create_cell_array [] = mxfunc (:mxCreateCellArray_730 )
116116
117- _mx_create_struct_matrix [] = mxfunc (:mxCreateStructMatrix_730 )
118- _mx_create_struct_array [] = mxfunc (:mxCreateStructArray_730 )
117+ mx_create_struct_matrix [] = mxfunc (:mxCreateStructMatrix_730 )
118+ mx_create_struct_array [] = mxfunc (:mxCreateStructArray_730 )
119119
120- _mx_get_cell [] = mxfunc (:mxGetCell_730 )
121- _mx_set_cell [] = mxfunc (:mxSetCell_730 )
120+ mx_get_cell [] = mxfunc (:mxGetCell_730 )
121+ mx_set_cell [] = mxfunc (:mxSetCell_730 )
122122
123- _mx_get_field [] = mxfunc (:mxGetField_730 )
124- _mx_set_field [] = mxfunc (:mxSetField_730 )
125- _mx_get_field_bynum [] = mxfunc (:mxGetFieldByNumber_730 )
126- _mx_get_fieldname [] = mxfunc (:mxGetFieldNameByNumber )
123+ mx_get_field [] = mxfunc (:mxGetField_730 )
124+ mx_set_field [] = mxfunc (:mxSetField_730 )
125+ mx_get_field_bynum [] = mxfunc (:mxGetFieldByNumber_730 )
126+ mx_get_fieldname [] = mxfunc (:mxGetFieldNameByNumber )
127127
128- _mx_get_string [] = mxfunc (:mxGetString_730 )
128+ mx_get_string [] = mxfunc (:mxGetString_730 )
129129
130130
131131 # load I/O mat functions
132132
133- _mat_open [] = matfunc (:matOpen )
134- _mat_close [] = matfunc (:matClose )
135- _mat_get_variable [] = matfunc (:matGetVariable )
136- _mat_put_variable [] = matfunc (:matPutVariable )
137- _mat_get_dir [] = matfunc (:matGetDir )
133+ mat_open [] = matfunc (:matOpen )
134+ mat_close [] = matfunc (:matClose )
135+ mat_get_variable [] = matfunc (:matGetVariable )
136+ mat_put_variable [] = matfunc (:matPutVariable )
137+ mat_get_dir [] = matfunc (:matGetDir )
138138
139139
140140 if is_windows ()
0 commit comments