annotate extra/NaN/src/linear_model_matlab.c @ 12704:386de1bf1954 octave-forge

fix integer types - avoid compiler warnings
author schloegl
date Tue, 05 Jan 2016 09:53:40 +0000
parents 6a419bec96bb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6560
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
1 /*
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
2
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
3 $Id$
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
4 Copyright (c) 2007-2009 The LIBLINEAR Project.
8037
6a419bec96bb update contact e-mail and www address
schloegl
parents: 7912
diff changeset
5 Copyright (c) 2010 Alois Schloegl <alois.schloegl@gmail.com>
6560
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
6 This function is part of the NaN-toolbox
7889
c101c486d80a fix web address
schloegl
parents: 6585
diff changeset
7 http://pub.ist.ac.at/~schloegl/matlab/NaN/
6560
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
8
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
9 This code was extracted from liblinear-1.51 in Jan 2010 and
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
10 modified for the use with Octave
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
11
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
12 This program is free software; you can redistribute it and/or modify
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
13 it under the terms of the GNU General Public License as published by
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
14 the Free Software Foundation; either version 3 of the License, or
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
15 (at your option) any later version.
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
16
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
17 This program is distributed in the hope that it will be useful,
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
20 GNU General Public License for more details.
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
21
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
22 You should have received a copy of the GNU General Public License
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
23 along with this program; if not, see <http://www.gnu.org/licenses/>.
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
24
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
25 */
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
26
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
27
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
28 #include <stdlib.h>
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
29 #include <string.h>
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
30 #include "linear.h"
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
31
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
32 #include "mex.h"
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
33
6585
ae521dec5b54 partial support of lcc-win compiler
schloegl
parents: 6560
diff changeset
34 #ifdef tmwtypes_h
ae521dec5b54 partial support of lcc-win compiler
schloegl
parents: 6560
diff changeset
35 #if (MX_API_VER<=0x07020000)
ae521dec5b54 partial support of lcc-win compiler
schloegl
parents: 6560
diff changeset
36 typedef int mwSize;
ae521dec5b54 partial support of lcc-win compiler
schloegl
parents: 6560
diff changeset
37 #endif
6560
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
38 #endif
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
39
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
40 #define Malloc(type,n) (type *)malloc((n)*sizeof(type))
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
41
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
42 #define NUM_OF_RETURN_FIELD 6
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
43
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
44 static const char *field_names[] = {
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
45 "Parameters",
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
46 "nr_class",
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
47 "nr_feature",
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
48 "bias",
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
49 "Label",
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
50 "w",
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
51 };
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
52
7912
14021a3f31a6 fix (cross-)compilation for MEXW32 target
schloegl
parents: 7889
diff changeset
53 #ifdef __cplusplus
14021a3f31a6 fix (cross-)compilation for MEXW32 target
schloegl
parents: 7889
diff changeset
54 extern "C" {
14021a3f31a6 fix (cross-)compilation for MEXW32 target
schloegl
parents: 7889
diff changeset
55 #endif
14021a3f31a6 fix (cross-)compilation for MEXW32 target
schloegl
parents: 7889
diff changeset
56
6560
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
57 const char *model_to_matlab_structure(mxArray *plhs[], struct model *model_)
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
58 {
12704
386de1bf1954 fix integer types - avoid compiler warnings
schloegl
parents: 8037
diff changeset
59 size_t i;
386de1bf1954 fix integer types - avoid compiler warnings
schloegl
parents: 8037
diff changeset
60 size_t nr_w;
6560
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
61 double *ptr;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
62 mxArray *return_model, **rhs;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
63 int out_id = 0;
12704
386de1bf1954 fix integer types - avoid compiler warnings
schloegl
parents: 8037
diff changeset
64 size_t n, w_size;
6560
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
65
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
66 rhs = (mxArray **)mxMalloc(sizeof(mxArray *)*NUM_OF_RETURN_FIELD);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
67
6585
ae521dec5b54 partial support of lcc-win compiler
schloegl
parents: 6560
diff changeset
68 /* Parameters */
ae521dec5b54 partial support of lcc-win compiler
schloegl
parents: 6560
diff changeset
69 /* for now, only solver_type is needed */
6560
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
70 rhs[out_id] = mxCreateDoubleMatrix(1, 1, mxREAL);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
71 ptr = mxGetPr(rhs[out_id]);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
72 ptr[0] = model_->param.solver_type;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
73 out_id++;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
74
6585
ae521dec5b54 partial support of lcc-win compiler
schloegl
parents: 6560
diff changeset
75 /* nr_class */
6560
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
76 rhs[out_id] = mxCreateDoubleMatrix(1, 1, mxREAL);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
77 ptr = mxGetPr(rhs[out_id]);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
78 ptr[0] = model_->nr_class;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
79 out_id++;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
80
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
81 if(model_->nr_class==2 && model_->param.solver_type != MCSVM_CS)
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
82 nr_w=1;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
83 else
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
84 nr_w=model_->nr_class;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
85
6585
ae521dec5b54 partial support of lcc-win compiler
schloegl
parents: 6560
diff changeset
86 /* nr_feature */
6560
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
87 rhs[out_id] = mxCreateDoubleMatrix(1, 1, mxREAL);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
88 ptr = mxGetPr(rhs[out_id]);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
89 ptr[0] = model_->nr_feature;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
90 out_id++;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
91
6585
ae521dec5b54 partial support of lcc-win compiler
schloegl
parents: 6560
diff changeset
92 /* bias */
6560
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
93 rhs[out_id] = mxCreateDoubleMatrix(1, 1, mxREAL);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
94 ptr = mxGetPr(rhs[out_id]);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
95 ptr[0] = model_->bias;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
96 out_id++;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
97
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
98 if(model_->bias>=0)
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
99 n=model_->nr_feature+1;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
100 else
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
101 n=model_->nr_feature;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
102
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
103 w_size = n;
6585
ae521dec5b54 partial support of lcc-win compiler
schloegl
parents: 6560
diff changeset
104 /* Label */
6560
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
105 if(model_->label)
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
106 {
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
107 rhs[out_id] = mxCreateDoubleMatrix(model_->nr_class, 1, mxREAL);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
108 ptr = mxGetPr(rhs[out_id]);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
109 for(i = 0; i < model_->nr_class; i++)
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
110 ptr[i] = model_->label[i];
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
111 }
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
112 else
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
113 rhs[out_id] = mxCreateDoubleMatrix(0, 0, mxREAL);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
114 out_id++;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
115
6585
ae521dec5b54 partial support of lcc-win compiler
schloegl
parents: 6560
diff changeset
116 /* w */
6560
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
117 rhs[out_id] = mxCreateDoubleMatrix(nr_w, w_size, mxREAL);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
118 ptr = mxGetPr(rhs[out_id]);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
119 for(i = 0; i < w_size*nr_w; i++)
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
120 ptr[i]=model_->w[i];
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
121 out_id++;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
122
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
123 /* Create a struct matrix contains NUM_OF_RETURN_FIELD fields */
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
124 return_model = mxCreateStructMatrix(1, 1, NUM_OF_RETURN_FIELD, field_names);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
125
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
126 /* Fill struct matrix with input arguments */
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
127 for(i = 0; i < NUM_OF_RETURN_FIELD; i++)
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
128 mxSetField(return_model,0,field_names[i],mxDuplicateArray(rhs[i]));
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
129 /* return */
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
130 plhs[0] = return_model;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
131 mxFree(rhs);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
132
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
133 return NULL;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
134 }
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
135
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
136 const char *matlab_matrix_to_model(struct model *model_, const mxArray *matlab_struct)
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
137 {
12704
386de1bf1954 fix integer types - avoid compiler warnings
schloegl
parents: 8037
diff changeset
138 size_t i, num_of_fields;
386de1bf1954 fix integer types - avoid compiler warnings
schloegl
parents: 8037
diff changeset
139 size_t nr_w;
6560
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
140 double *ptr;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
141 int id = 0;
12704
386de1bf1954 fix integer types - avoid compiler warnings
schloegl
parents: 8037
diff changeset
142 size_t n, w_size;
6560
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
143 mxArray **rhs;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
144
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
145 num_of_fields = mxGetNumberOfFields(matlab_struct);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
146 rhs = (mxArray **) mxMalloc(sizeof(mxArray *)*num_of_fields);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
147
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
148 for(i=0;i<num_of_fields;i++)
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
149 rhs[i] = mxGetFieldByNumber(matlab_struct, 0, i);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
150
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
151 model_->nr_class=0;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
152 nr_w=0;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
153 model_->nr_feature=0;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
154 model_->w=NULL;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
155 model_->label=NULL;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
156
6585
ae521dec5b54 partial support of lcc-win compiler
schloegl
parents: 6560
diff changeset
157 /* Parameters */
6560
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
158 ptr = mxGetPr(rhs[id]);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
159 model_->param.solver_type = (int)ptr[0];
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
160 id++;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
161
6585
ae521dec5b54 partial support of lcc-win compiler
schloegl
parents: 6560
diff changeset
162 /* nr_class */
6560
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
163 ptr = mxGetPr(rhs[id]);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
164 model_->nr_class = (int)ptr[0];
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
165 id++;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
166
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
167 if(model_->nr_class==2 && model_->param.solver_type != MCSVM_CS)
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
168 nr_w=1;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
169 else
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
170 nr_w=model_->nr_class;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
171
6585
ae521dec5b54 partial support of lcc-win compiler
schloegl
parents: 6560
diff changeset
172 /* nr_feature */
6560
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
173 ptr = mxGetPr(rhs[id]);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
174 model_->nr_feature = (int)ptr[0];
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
175 id++;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
176
6585
ae521dec5b54 partial support of lcc-win compiler
schloegl
parents: 6560
diff changeset
177 /* bias */
6560
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
178 ptr = mxGetPr(rhs[id]);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
179 model_->bias = (int)ptr[0];
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
180 id++;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
181
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
182 if(model_->bias>=0)
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
183 n=model_->nr_feature+1;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
184 else
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
185 n=model_->nr_feature;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
186 w_size = n;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
187
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
188 ptr = mxGetPr(rhs[id]);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
189 model_->label=Malloc(int, model_->nr_class);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
190 for(i=0; i<model_->nr_class; i++)
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
191 model_->label[i]=(int)ptr[i];
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
192 id++;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
193
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
194 ptr = mxGetPr(rhs[id]);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
195 model_->w=Malloc(double, w_size*nr_w);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
196 for(i = 0; i < w_size*nr_w; i++)
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
197 model_->w[i]=ptr[i];
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
198 id++;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
199 mxFree(rhs);
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
200
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
201 return NULL;
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
202 }
1170c9d6d1c4 method LibLinear is included
schloegl
parents:
diff changeset
203
7912
14021a3f31a6 fix (cross-)compilation for MEXW32 target
schloegl
parents: 7889
diff changeset
204 #ifdef __cplusplus
14021a3f31a6 fix (cross-)compilation for MEXW32 target
schloegl
parents: 7889
diff changeset
205 }
14021a3f31a6 fix (cross-)compilation for MEXW32 target
schloegl
parents: 7889
diff changeset
206 #endif
14021a3f31a6 fix (cross-)compilation for MEXW32 target
schloegl
parents: 7889
diff changeset
207