liblinear-ruby 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/ext/blasp.h +8 -8
- data/ext/daxpy.c +3 -3
- data/ext/ddot.c +3 -3
- data/ext/dnrm2.c +7 -7
- data/ext/dscal.c +4 -4
- data/ext/liblinear_wrap.cxx +382 -382
- data/ext/linear.cpp +44 -55
- data/ext/linear.h +5 -1
- data/ext/tron.cpp +13 -5
- data/ext/tron.h +1 -1
- data/lib/liblinear.rb +2 -0
- data/lib/liblinear/version.rb +1 -1
- metadata +2 -41
- data/liblinear-2.1/COPYRIGHT +0 -31
- data/liblinear-2.1/Makefile +0 -37
- data/liblinear-2.1/Makefile.win +0 -24
- data/liblinear-2.1/README +0 -600
- data/liblinear-2.1/blas/Makefile +0 -22
- data/liblinear-2.1/blas/blas.h +0 -25
- data/liblinear-2.1/blas/blasp.h +0 -438
- data/liblinear-2.1/blas/daxpy.c +0 -57
- data/liblinear-2.1/blas/ddot.c +0 -58
- data/liblinear-2.1/blas/dnrm2.c +0 -70
- data/liblinear-2.1/blas/dscal.c +0 -52
- data/liblinear-2.1/heart_scale +0 -270
- data/liblinear-2.1/linear.cpp +0 -3053
- data/liblinear-2.1/linear.def +0 -22
- data/liblinear-2.1/linear.h +0 -79
- data/liblinear-2.1/matlab/Makefile +0 -49
- data/liblinear-2.1/matlab/README +0 -208
- data/liblinear-2.1/matlab/libsvmread.c +0 -212
- data/liblinear-2.1/matlab/libsvmwrite.c +0 -119
- data/liblinear-2.1/matlab/linear_model_matlab.c +0 -176
- data/liblinear-2.1/matlab/linear_model_matlab.h +0 -2
- data/liblinear-2.1/matlab/make.m +0 -22
- data/liblinear-2.1/matlab/predict.c +0 -341
- data/liblinear-2.1/matlab/train.c +0 -492
- data/liblinear-2.1/predict.c +0 -243
- data/liblinear-2.1/python/Makefile +0 -4
- data/liblinear-2.1/python/README +0 -380
- data/liblinear-2.1/python/liblinear.py +0 -323
- data/liblinear-2.1/python/liblinearutil.py +0 -270
- data/liblinear-2.1/train.c +0 -449
- data/liblinear-2.1/tron.cpp +0 -241
- data/liblinear-2.1/tron.h +0 -35
- data/liblinear-2.1/windows/liblinear.dll +0 -0
- data/liblinear-2.1/windows/libsvmread.mexw64 +0 -0
- data/liblinear-2.1/windows/libsvmwrite.mexw64 +0 -0
- data/liblinear-2.1/windows/predict.exe +0 -0
- data/liblinear-2.1/windows/predict.mexw64 +0 -0
- data/liblinear-2.1/windows/train.exe +0 -0
- data/liblinear-2.1/windows/train.mexw64 +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a03dbbf579137de489984f1e63bc9a4b8137624
|
4
|
+
data.tar.gz: 4bcae7b6ff6f9961a001e80b2487ffd59ef6b1ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b21069c8385dba04f986bb4134aed73f624e8a877a2d3fe818ca3b474ae97e1d11f4a4923ec86aa9a1d8212a5d0e6460a369d844e0b869f33d97f6b5f831289
|
7
|
+
data.tar.gz: 70634b6522f3bccb6d1de5a3e84ab4051cca4ee7122f7331b689a8328dbe8e417661ec4c5129d085a28d2a4377c7e1b66f783bcc29256b0731e06aa8fc54c8f9
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
[](http://badge.fury.io/rb/liblinear-ruby)
|
3
3
|
|
4
4
|
Liblinear-Ruby is Ruby interface of LIBLINEAR using SWIG.
|
5
|
-
Now, this interface is supporting LIBLINEAR 2.
|
5
|
+
Now, this interface is supporting LIBLINEAR 2.11.
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
data/ext/blasp.h
CHANGED
@@ -170,7 +170,7 @@ int dgemm_(char *transa, char *transb, int *m, int *n, int *k,
|
|
170
170
|
double *beta, double *c, int *ldc);
|
171
171
|
|
172
172
|
int dgemv_(char *trans, int *m, int *n, double *alpha, double *a,
|
173
|
-
int *lda, double *x, int *incx, double *beta, double *y,
|
173
|
+
int *lda, double *x, int *incx, double *beta, double *y,
|
174
174
|
int *incy);
|
175
175
|
|
176
176
|
int dger_(int *m, int *n, double *alpha, double *x, int *incx,
|
@@ -182,7 +182,7 @@ int drot_(int *n, double *sx, int *incx, double *sy, int *incy,
|
|
182
182
|
int drotg_(double *sa, double *sb, double *c, double *s);
|
183
183
|
|
184
184
|
int dsbmv_(char *uplo, int *n, int *k, double *alpha, double *a,
|
185
|
-
int *lda, double *x, int *incx, double *beta, double *y,
|
185
|
+
int *lda, double *x, int *incx, double *beta, double *y,
|
186
186
|
int *incy);
|
187
187
|
|
188
188
|
int dscal_(int *n, double *sa, double *sx, int *incx);
|
@@ -231,14 +231,14 @@ int dtpsv_(char *uplo, char *trans, char *diag, int *n, double *ap,
|
|
231
231
|
double *x, int *incx);
|
232
232
|
|
233
233
|
int dtrmm_(char *side, char *uplo, char *transa, char *diag, int *m,
|
234
|
-
int *n, double *alpha, double *a, int *lda, double *b,
|
234
|
+
int *n, double *alpha, double *a, int *lda, double *b,
|
235
235
|
int *ldb);
|
236
236
|
|
237
237
|
int dtrmv_(char *uplo, char *trans, char *diag, int *n, double *a,
|
238
238
|
int *lda, double *x, int *incx);
|
239
239
|
|
240
240
|
int dtrsm_(char *side, char *uplo, char *transa, char *diag, int *m,
|
241
|
-
int *n, double *alpha, double *a, int *lda, double *b,
|
241
|
+
int *n, double *alpha, double *a, int *lda, double *b,
|
242
242
|
int *ldb);
|
243
243
|
|
244
244
|
int dtrsv_(char *uplo, char *trans, char *diag, int *n, double *a,
|
@@ -258,7 +258,7 @@ int sgemm_(char *transa, char *transb, int *m, int *n, int *k,
|
|
258
258
|
float *beta, float *c, int *ldc);
|
259
259
|
|
260
260
|
int sgemv_(char *trans, int *m, int *n, float *alpha, float *a,
|
261
|
-
int *lda, float *x, int *incx, float *beta, float *y,
|
261
|
+
int *lda, float *x, int *incx, float *beta, float *y,
|
262
262
|
int *incy);
|
263
263
|
|
264
264
|
int sger_(int *m, int *n, float *alpha, float *x, int *incx,
|
@@ -270,7 +270,7 @@ int srot_(int *n, float *sx, int *incx, float *sy, int *incy,
|
|
270
270
|
int srotg_(float *sa, float *sb, float *c, float *s);
|
271
271
|
|
272
272
|
int ssbmv_(char *uplo, int *n, int *k, float *alpha, float *a,
|
273
|
-
int *lda, float *x, int *incx, float *beta, float *y,
|
273
|
+
int *lda, float *x, int *incx, float *beta, float *y,
|
274
274
|
int *incy);
|
275
275
|
|
276
276
|
int sscal_(int *n, float *sa, float *sx, int *incx);
|
@@ -319,14 +319,14 @@ int stpsv_(char *uplo, char *trans, char *diag, int *n, float *ap,
|
|
319
319
|
float *x, int *incx);
|
320
320
|
|
321
321
|
int strmm_(char *side, char *uplo, char *transa, char *diag, int *m,
|
322
|
-
int *n, float *alpha, float *a, int *lda, float *b,
|
322
|
+
int *n, float *alpha, float *a, int *lda, float *b,
|
323
323
|
int *ldb);
|
324
324
|
|
325
325
|
int strmv_(char *uplo, char *trans, char *diag, int *n, float *a,
|
326
326
|
int *lda, float *x, int *incx);
|
327
327
|
|
328
328
|
int strsm_(char *side, char *uplo, char *transa, char *diag, int *m,
|
329
|
-
int *n, float *alpha, float *a, int *lda, float *b,
|
329
|
+
int *n, float *alpha, float *a, int *lda, float *b,
|
330
330
|
int *ldb);
|
331
331
|
|
332
332
|
int strsv_(char *uplo, char *trans, char *diag, int *n, float *a,
|
data/ext/daxpy.c
CHANGED
@@ -10,9 +10,9 @@ int daxpy_(int *n, double *sa, double *sx, int *incx, double *sy,
|
|
10
10
|
long int i, m, ix, iy, nn, iincx, iincy;
|
11
11
|
register double ssa;
|
12
12
|
|
13
|
-
/* constant times a vector plus a vector.
|
14
|
-
uses unrolled loop for increments equal to one.
|
15
|
-
jack dongarra, linpack, 3/11/78.
|
13
|
+
/* constant times a vector plus a vector.
|
14
|
+
uses unrolled loop for increments equal to one.
|
15
|
+
jack dongarra, linpack, 3/11/78.
|
16
16
|
modified 12/3/93, array(1) declarations changed to array(*) */
|
17
17
|
|
18
18
|
/* Dereference inputs */
|
data/ext/ddot.c
CHANGED
@@ -10,9 +10,9 @@ double ddot_(int *n, double *sx, int *incx, double *sy, int *incy)
|
|
10
10
|
double stemp;
|
11
11
|
long int ix, iy;
|
12
12
|
|
13
|
-
/* forms the dot product of two vectors.
|
14
|
-
uses unrolled loops for increments equal to one.
|
15
|
-
jack dongarra, linpack, 3/11/78.
|
13
|
+
/* forms the dot product of two vectors.
|
14
|
+
uses unrolled loops for increments equal to one.
|
15
|
+
jack dongarra, linpack, 3/11/78.
|
16
16
|
modified 12/3/93, array(1) declarations changed to array(*) */
|
17
17
|
|
18
18
|
/* Dereference inputs */
|
data/ext/dnrm2.c
CHANGED
@@ -10,13 +10,13 @@ double dnrm2_(int *n, double *x, int *incx)
|
|
10
10
|
long int ix, nn, iincx;
|
11
11
|
double norm, scale, absxi, ssq, temp;
|
12
12
|
|
13
|
-
/* DNRM2 returns the euclidean norm of a vector via the function
|
14
|
-
name, so that
|
13
|
+
/* DNRM2 returns the euclidean norm of a vector via the function
|
14
|
+
name, so that
|
15
15
|
|
16
|
-
DNRM2 := sqrt( x'*x )
|
16
|
+
DNRM2 := sqrt( x'*x )
|
17
17
|
|
18
|
-
-- This version written on 25-October-1982.
|
19
|
-
Modified on 14-October-1993 to inline the call to SLASSQ.
|
18
|
+
-- This version written on 25-October-1982.
|
19
|
+
Modified on 14-October-1993 to inline the call to SLASSQ.
|
20
20
|
Sven Hammarling, Nag Ltd. */
|
21
21
|
|
22
22
|
/* Dereference inputs */
|
@@ -28,13 +28,13 @@ double dnrm2_(int *n, double *x, int *incx)
|
|
28
28
|
if (nn == 1)
|
29
29
|
{
|
30
30
|
norm = fabs(x[0]);
|
31
|
-
}
|
31
|
+
}
|
32
32
|
else
|
33
33
|
{
|
34
34
|
scale = 0.0;
|
35
35
|
ssq = 1.0;
|
36
36
|
|
37
|
-
/* The following loop is equivalent to this call to the LAPACK
|
37
|
+
/* The following loop is equivalent to this call to the LAPACK
|
38
38
|
auxiliary routine: CALL SLASSQ( N, X, INCX, SCALE, SSQ ) */
|
39
39
|
|
40
40
|
for (ix=(nn-1)*iincx; ix>=0; ix-=iincx)
|
data/ext/dscal.c
CHANGED
@@ -9,10 +9,10 @@ int dscal_(int *n, double *sa, double *sx, int *incx)
|
|
9
9
|
long int i, m, nincx, nn, iincx;
|
10
10
|
double ssa;
|
11
11
|
|
12
|
-
/* scales a vector by a constant.
|
13
|
-
uses unrolled loops for increment equal to 1.
|
14
|
-
jack dongarra, linpack, 3/11/78.
|
15
|
-
modified 3/93 to return if incx .le. 0.
|
12
|
+
/* scales a vector by a constant.
|
13
|
+
uses unrolled loops for increment equal to 1.
|
14
|
+
jack dongarra, linpack, 3/11/78.
|
15
|
+
modified 3/93 to return if incx .le. 0.
|
16
16
|
modified 12/3/93, array(1) declarations changed to array(*) */
|
17
17
|
|
18
18
|
/* Dereference inputs */
|
data/ext/liblinear_wrap.cxx
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
2
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
3
|
* Version 2.0.4
|
4
|
-
*
|
5
|
-
* This file is not intended to be easily readable and contains a number of
|
4
|
+
*
|
5
|
+
* This file is not intended to be easily readable and contains a number of
|
6
6
|
* coding conventions designed to improve portability and efficiency. Do not make
|
7
|
-
* changes to this file unless you know what you are doing--modify the SWIG
|
8
|
-
* interface file instead.
|
7
|
+
* changes to this file unless you know what you are doing--modify the SWIG
|
8
|
+
* interface file instead.
|
9
9
|
* ----------------------------------------------------------------------------- */
|
10
10
|
|
11
11
|
#define SWIGRUBY
|
@@ -65,28 +65,28 @@ template <typename T> T SwigValueInit() {
|
|
65
65
|
#ifndef SWIGUNUSED
|
66
66
|
# if defined(__GNUC__)
|
67
67
|
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
|
68
|
-
# define SWIGUNUSED __attribute__ ((__unused__))
|
68
|
+
# define SWIGUNUSED __attribute__ ((__unused__))
|
69
69
|
# else
|
70
70
|
# define SWIGUNUSED
|
71
71
|
# endif
|
72
72
|
# elif defined(__ICC)
|
73
|
-
# define SWIGUNUSED __attribute__ ((__unused__))
|
73
|
+
# define SWIGUNUSED __attribute__ ((__unused__))
|
74
74
|
# else
|
75
|
-
# define SWIGUNUSED
|
75
|
+
# define SWIGUNUSED
|
76
76
|
# endif
|
77
77
|
#endif
|
78
78
|
|
79
79
|
#ifndef SWIG_MSC_UNSUPPRESS_4505
|
80
80
|
# if defined(_MSC_VER)
|
81
81
|
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
|
82
|
-
# endif
|
82
|
+
# endif
|
83
83
|
#endif
|
84
84
|
|
85
85
|
#ifndef SWIGUNUSEDPARM
|
86
86
|
# ifdef __cplusplus
|
87
87
|
# define SWIGUNUSEDPARM(p)
|
88
88
|
# else
|
89
|
-
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
89
|
+
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
90
90
|
# endif
|
91
91
|
#endif
|
92
92
|
|
@@ -129,7 +129,7 @@ template <typename T> T SwigValueInit() {
|
|
129
129
|
# define SWIGSTDCALL __stdcall
|
130
130
|
# else
|
131
131
|
# define SWIGSTDCALL
|
132
|
-
# endif
|
132
|
+
# endif
|
133
133
|
#endif
|
134
134
|
|
135
135
|
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
|
@@ -174,28 +174,28 @@ template <typename T> T SwigValueInit() {
|
|
174
174
|
#ifndef SWIGUNUSED
|
175
175
|
# if defined(__GNUC__)
|
176
176
|
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
|
177
|
-
# define SWIGUNUSED __attribute__ ((__unused__))
|
177
|
+
# define SWIGUNUSED __attribute__ ((__unused__))
|
178
178
|
# else
|
179
179
|
# define SWIGUNUSED
|
180
180
|
# endif
|
181
181
|
# elif defined(__ICC)
|
182
|
-
# define SWIGUNUSED __attribute__ ((__unused__))
|
182
|
+
# define SWIGUNUSED __attribute__ ((__unused__))
|
183
183
|
# else
|
184
|
-
# define SWIGUNUSED
|
184
|
+
# define SWIGUNUSED
|
185
185
|
# endif
|
186
186
|
#endif
|
187
187
|
|
188
188
|
#ifndef SWIG_MSC_UNSUPPRESS_4505
|
189
189
|
# if defined(_MSC_VER)
|
190
190
|
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
|
191
|
-
# endif
|
191
|
+
# endif
|
192
192
|
#endif
|
193
193
|
|
194
194
|
#ifndef SWIGUNUSEDPARM
|
195
195
|
# ifdef __cplusplus
|
196
196
|
# define SWIGUNUSEDPARM(p)
|
197
197
|
# else
|
198
|
-
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
198
|
+
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
199
199
|
# endif
|
200
200
|
#endif
|
201
201
|
|
@@ -238,7 +238,7 @@ template <typename T> T SwigValueInit() {
|
|
238
238
|
# define SWIGSTDCALL __stdcall
|
239
239
|
# else
|
240
240
|
# define SWIGSTDCALL
|
241
|
-
# endif
|
241
|
+
# endif
|
242
242
|
#endif
|
243
243
|
|
244
244
|
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
|
@@ -276,7 +276,7 @@ template <typename T> T SwigValueInit() {
|
|
276
276
|
You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
|
277
277
|
creating a static or dynamic library from the SWIG runtime code.
|
278
278
|
In 99.9% of the cases, SWIG just needs to declare them as 'static'.
|
279
|
-
|
279
|
+
|
280
280
|
But only do this if strictly necessary, ie, if you have problems
|
281
281
|
with your compiler or suchlike.
|
282
282
|
*/
|
@@ -302,16 +302,16 @@ template <typename T> T SwigValueInit() {
|
|
302
302
|
#define SWIG_POINTER_OWN 0x1
|
303
303
|
|
304
304
|
|
305
|
-
/*
|
305
|
+
/*
|
306
306
|
Flags/methods for returning states.
|
307
|
-
|
308
|
-
The SWIG conversion methods, as ConvertPtr, return an integer
|
307
|
+
|
308
|
+
The SWIG conversion methods, as ConvertPtr, return an integer
|
309
309
|
that tells if the conversion was successful or not. And if not,
|
310
310
|
an error code can be returned (see swigerrors.swg for the codes).
|
311
|
-
|
311
|
+
|
312
312
|
Use the following macros/flags to set or process the returning
|
313
313
|
states.
|
314
|
-
|
314
|
+
|
315
315
|
In old versions of SWIG, code such as the following was usually written:
|
316
316
|
|
317
317
|
if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
|
@@ -344,23 +344,23 @@ template <typename T> T SwigValueInit() {
|
|
344
344
|
} else {
|
345
345
|
// fail code
|
346
346
|
}
|
347
|
-
|
347
|
+
|
348
348
|
I.e., now SWIG_ConvertPtr can return new objects and you can
|
349
349
|
identify the case and take care of the deallocation. Of course that
|
350
350
|
also requires SWIG_ConvertPtr to return new result values, such as
|
351
351
|
|
352
|
-
int SWIG_ConvertPtr(obj, ptr,...) {
|
353
|
-
if (<obj is ok>) {
|
354
|
-
if (<need new object>) {
|
355
|
-
*ptr = <ptr to new allocated object>;
|
356
|
-
return SWIG_NEWOBJ;
|
357
|
-
} else {
|
358
|
-
*ptr = <ptr to old object>;
|
359
|
-
return SWIG_OLDOBJ;
|
360
|
-
}
|
361
|
-
} else {
|
362
|
-
return SWIG_BADOBJ;
|
363
|
-
}
|
352
|
+
int SWIG_ConvertPtr(obj, ptr,...) {
|
353
|
+
if (<obj is ok>) {
|
354
|
+
if (<need new object>) {
|
355
|
+
*ptr = <ptr to new allocated object>;
|
356
|
+
return SWIG_NEWOBJ;
|
357
|
+
} else {
|
358
|
+
*ptr = <ptr to old object>;
|
359
|
+
return SWIG_OLDOBJ;
|
360
|
+
}
|
361
|
+
} else {
|
362
|
+
return SWIG_BADOBJ;
|
363
|
+
}
|
364
364
|
}
|
365
365
|
|
366
366
|
Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
|
@@ -374,17 +374,17 @@ template <typename T> T SwigValueInit() {
|
|
374
374
|
int fooi(int);
|
375
375
|
|
376
376
|
and you call
|
377
|
-
|
377
|
+
|
378
378
|
food(1) // cast rank '1' (1 -> 1.0)
|
379
379
|
fooi(1) // cast rank '0'
|
380
380
|
|
381
381
|
just use the SWIG_AddCast()/SWIG_CheckState()
|
382
382
|
*/
|
383
383
|
|
384
|
-
#define SWIG_OK (0)
|
384
|
+
#define SWIG_OK (0)
|
385
385
|
#define SWIG_ERROR (-1)
|
386
386
|
#define SWIG_IsOK(r) (r >= 0)
|
387
|
-
#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
|
387
|
+
#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
|
388
388
|
|
389
389
|
/* The CastRankLimit says how many bits are used for the cast rank */
|
390
390
|
#define SWIG_CASTRANKLIMIT (1 << 8)
|
@@ -415,11 +415,11 @@ template <typename T> T SwigValueInit() {
|
|
415
415
|
# endif
|
416
416
|
# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
|
417
417
|
# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
|
418
|
-
SWIGINTERNINLINE int SWIG_AddCast(int r) {
|
418
|
+
SWIGINTERNINLINE int SWIG_AddCast(int r) {
|
419
419
|
return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
|
420
420
|
}
|
421
|
-
SWIGINTERNINLINE int SWIG_CheckState(int r) {
|
422
|
-
return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
|
421
|
+
SWIGINTERNINLINE int SWIG_CheckState(int r) {
|
422
|
+
return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
|
423
423
|
}
|
424
424
|
#else /* no cast-rank mode */
|
425
425
|
# define SWIG_AddCast
|
@@ -466,7 +466,7 @@ typedef struct swig_module_info {
|
|
466
466
|
void *clientdata; /* Language specific module data */
|
467
467
|
} swig_module_info;
|
468
468
|
|
469
|
-
/*
|
469
|
+
/*
|
470
470
|
Compare two type names skipping the space characters, therefore
|
471
471
|
"char*" == "char *" and "Class<int>" == "Class<int >", etc.
|
472
472
|
|
@@ -550,7 +550,7 @@ SWIG_TypeCheck(const char *c, swig_type_info *ty) {
|
|
550
550
|
return 0;
|
551
551
|
}
|
552
552
|
|
553
|
-
/*
|
553
|
+
/*
|
554
554
|
Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
|
555
555
|
*/
|
556
556
|
SWIGRUNTIME swig_cast_info *
|
@@ -585,7 +585,7 @@ SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
|
|
585
585
|
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
|
586
586
|
}
|
587
587
|
|
588
|
-
/*
|
588
|
+
/*
|
589
589
|
Dynamic pointer casting. Down an inheritance hierarchy
|
590
590
|
*/
|
591
591
|
SWIGRUNTIME swig_type_info *
|
@@ -629,7 +629,7 @@ SWIG_TypePrettyName(const swig_type_info *type) {
|
|
629
629
|
return type->name;
|
630
630
|
}
|
631
631
|
|
632
|
-
/*
|
632
|
+
/*
|
633
633
|
Set the clientdata field for a type
|
634
634
|
*/
|
635
635
|
SWIGRUNTIME void
|
@@ -637,14 +637,14 @@ SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
|
|
637
637
|
swig_cast_info *cast = ti->cast;
|
638
638
|
/* if (ti->clientdata == clientdata) return; */
|
639
639
|
ti->clientdata = clientdata;
|
640
|
-
|
640
|
+
|
641
641
|
while (cast) {
|
642
642
|
if (!cast->converter) {
|
643
643
|
swig_type_info *tc = cast->type;
|
644
644
|
if (!tc->clientdata) {
|
645
645
|
SWIG_TypeClientData(tc, clientdata);
|
646
646
|
}
|
647
|
-
}
|
647
|
+
}
|
648
648
|
cast = cast->next;
|
649
649
|
}
|
650
650
|
}
|
@@ -653,18 +653,18 @@ SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
|
|
653
653
|
SWIG_TypeClientData(ti, clientdata);
|
654
654
|
ti->owndata = 1;
|
655
655
|
}
|
656
|
-
|
656
|
+
|
657
657
|
/*
|
658
658
|
Search for a swig_type_info structure only by mangled name
|
659
659
|
Search is a O(log #types)
|
660
|
-
|
661
|
-
We start searching at module start, and finish searching when start == end.
|
660
|
+
|
661
|
+
We start searching at module start, and finish searching when start == end.
|
662
662
|
Note: if start == end at the beginning of the function, we go all the way around
|
663
663
|
the circular list.
|
664
664
|
*/
|
665
665
|
SWIGRUNTIME swig_type_info *
|
666
|
-
SWIG_MangledTypeQueryModule(swig_module_info *start,
|
667
|
-
swig_module_info *end,
|
666
|
+
SWIG_MangledTypeQueryModule(swig_module_info *start,
|
667
|
+
swig_module_info *end,
|
668
668
|
const char *name) {
|
669
669
|
swig_module_info *iter = start;
|
670
670
|
do {
|
@@ -673,11 +673,11 @@ SWIG_MangledTypeQueryModule(swig_module_info *start,
|
|
673
673
|
register size_t r = iter->size - 1;
|
674
674
|
do {
|
675
675
|
/* since l+r >= 0, we can (>> 1) instead (/ 2) */
|
676
|
-
register size_t i = (l + r) >> 1;
|
676
|
+
register size_t i = (l + r) >> 1;
|
677
677
|
const char *iname = iter->types[i]->name;
|
678
678
|
if (iname) {
|
679
679
|
register int compare = strcmp(name, iname);
|
680
|
-
if (compare == 0) {
|
680
|
+
if (compare == 0) {
|
681
681
|
return iter->types[i];
|
682
682
|
} else if (compare < 0) {
|
683
683
|
if (i) {
|
@@ -702,14 +702,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start,
|
|
702
702
|
Search for a swig_type_info structure for either a mangled name or a human readable name.
|
703
703
|
It first searches the mangled names of the types, which is a O(log #types)
|
704
704
|
If a type is not found it then searches the human readable names, which is O(#types).
|
705
|
-
|
706
|
-
We start searching at module start, and finish searching when start == end.
|
705
|
+
|
706
|
+
We start searching at module start, and finish searching when start == end.
|
707
707
|
Note: if start == end at the beginning of the function, we go all the way around
|
708
708
|
the circular list.
|
709
709
|
*/
|
710
710
|
SWIGRUNTIME swig_type_info *
|
711
|
-
SWIG_TypeQueryModule(swig_module_info *start,
|
712
|
-
swig_module_info *end,
|
711
|
+
SWIG_TypeQueryModule(swig_module_info *start,
|
712
|
+
swig_module_info *end,
|
713
713
|
const char *name) {
|
714
714
|
/* STEP 1: Search the name field using binary search */
|
715
715
|
swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
|
@@ -728,12 +728,12 @@ SWIG_TypeQueryModule(swig_module_info *start,
|
|
728
728
|
iter = iter->next;
|
729
729
|
} while (iter != end);
|
730
730
|
}
|
731
|
-
|
731
|
+
|
732
732
|
/* neither found a match */
|
733
733
|
return 0;
|
734
734
|
}
|
735
735
|
|
736
|
-
/*
|
736
|
+
/*
|
737
737
|
Pack binary data into a string
|
738
738
|
*/
|
739
739
|
SWIGRUNTIME char *
|
@@ -749,7 +749,7 @@ SWIG_PackData(char *c, void *ptr, size_t sz) {
|
|
749
749
|
return c;
|
750
750
|
}
|
751
751
|
|
752
|
-
/*
|
752
|
+
/*
|
753
753
|
Unpack binary data from a string
|
754
754
|
*/
|
755
755
|
SWIGRUNTIME const char *
|
@@ -763,21 +763,21 @@ SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
|
|
763
763
|
uu = ((d - '0') << 4);
|
764
764
|
else if ((d >= 'a') && (d <= 'f'))
|
765
765
|
uu = ((d - ('a'-10)) << 4);
|
766
|
-
else
|
766
|
+
else
|
767
767
|
return (char *) 0;
|
768
768
|
d = *(c++);
|
769
769
|
if ((d >= '0') && (d <= '9'))
|
770
770
|
uu |= (d - '0');
|
771
771
|
else if ((d >= 'a') && (d <= 'f'))
|
772
772
|
uu |= (d - ('a'-10));
|
773
|
-
else
|
773
|
+
else
|
774
774
|
return (char *) 0;
|
775
775
|
*u = uu;
|
776
776
|
}
|
777
777
|
return c;
|
778
778
|
}
|
779
779
|
|
780
|
-
/*
|
780
|
+
/*
|
781
781
|
Pack 'void *' into a string buffer.
|
782
782
|
*/
|
783
783
|
SWIGRUNTIME char *
|
@@ -837,18 +837,18 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
837
837
|
#endif
|
838
838
|
|
839
839
|
/* Errors in SWIG */
|
840
|
-
#define SWIG_UnknownError -1
|
841
|
-
#define SWIG_IOError -2
|
842
|
-
#define SWIG_RuntimeError -3
|
843
|
-
#define SWIG_IndexError -4
|
844
|
-
#define SWIG_TypeError -5
|
845
|
-
#define SWIG_DivisionByZero -6
|
846
|
-
#define SWIG_OverflowError -7
|
847
|
-
#define SWIG_SyntaxError -8
|
848
|
-
#define SWIG_ValueError -9
|
840
|
+
#define SWIG_UnknownError -1
|
841
|
+
#define SWIG_IOError -2
|
842
|
+
#define SWIG_RuntimeError -3
|
843
|
+
#define SWIG_IndexError -4
|
844
|
+
#define SWIG_TypeError -5
|
845
|
+
#define SWIG_DivisionByZero -6
|
846
|
+
#define SWIG_OverflowError -7
|
847
|
+
#define SWIG_SyntaxError -8
|
848
|
+
#define SWIG_ValueError -9
|
849
849
|
#define SWIG_SystemError -10
|
850
850
|
#define SWIG_AttributeError -11
|
851
|
-
#define SWIG_MemoryError -12
|
851
|
+
#define SWIG_MemoryError -12
|
852
852
|
#define SWIG_NullReferenceError -13
|
853
853
|
|
854
854
|
|
@@ -962,7 +962,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
962
962
|
* can be passed as an argument to API functions like Data_Wrap_Struct()
|
963
963
|
* and Data_Make_Struct().
|
964
964
|
*/
|
965
|
-
|
965
|
+
|
966
966
|
#ifdef __cplusplus
|
967
967
|
# ifndef RUBY_METHOD_FUNC /* These definitions should work for Ruby 1.4.6 */
|
968
968
|
# define PROTECTFUNC(f) ((VALUE (*)()) f)
|
@@ -1024,7 +1024,7 @@ static VALUE _mSWIG = Qnil;
|
|
1024
1024
|
exceptions. Note this only works for C++ since a global cannot be
|
1025
1025
|
initialized by a function in C. For C, fallback to rb_eRuntimeError.*/
|
1026
1026
|
|
1027
|
-
SWIGINTERN VALUE
|
1027
|
+
SWIGINTERN VALUE
|
1028
1028
|
getNullReferenceError(void) {
|
1029
1029
|
static int init = 0;
|
1030
1030
|
static VALUE rb_eNullReferenceError ;
|
@@ -1033,9 +1033,9 @@ getNullReferenceError(void) {
|
|
1033
1033
|
rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError);
|
1034
1034
|
}
|
1035
1035
|
return rb_eNullReferenceError;
|
1036
|
-
}
|
1036
|
+
}
|
1037
1037
|
|
1038
|
-
SWIGINTERN VALUE
|
1038
|
+
SWIGINTERN VALUE
|
1039
1039
|
getObjectPreviouslyDeletedError(void) {
|
1040
1040
|
static int init = 0;
|
1041
1041
|
static VALUE rb_eObjectPreviouslyDeleted ;
|
@@ -1044,7 +1044,7 @@ getObjectPreviouslyDeletedError(void) {
|
|
1044
1044
|
rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError);
|
1045
1045
|
}
|
1046
1046
|
return rb_eObjectPreviouslyDeleted;
|
1047
|
-
}
|
1047
|
+
}
|
1048
1048
|
|
1049
1049
|
|
1050
1050
|
SWIGINTERN VALUE
|
@@ -1103,10 +1103,10 @@ SWIG_Ruby_ErrorType(int SWIG_code) {
|
|
1103
1103
|
/* This function is called when a user inputs a wrong argument to
|
1104
1104
|
a method.
|
1105
1105
|
*/
|
1106
|
-
SWIGINTERN
|
1106
|
+
SWIGINTERN
|
1107
1107
|
const char* Ruby_Format_TypeError( const char* msg,
|
1108
|
-
const char* type,
|
1109
|
-
const char* name,
|
1108
|
+
const char* type,
|
1109
|
+
const char* name,
|
1110
1110
|
const int argn,
|
1111
1111
|
VALUE input )
|
1112
1112
|
{
|
@@ -1151,17 +1151,17 @@ const char* Ruby_Format_TypeError( const char* msg,
|
|
1151
1151
|
}
|
1152
1152
|
|
1153
1153
|
/* This function is called when an overloaded method fails */
|
1154
|
-
SWIGINTERN
|
1154
|
+
SWIGINTERN
|
1155
1155
|
void Ruby_Format_OverloadedError(
|
1156
1156
|
const int argc,
|
1157
1157
|
const int maxargs,
|
1158
|
-
const char* method,
|
1159
|
-
const char* prototypes
|
1158
|
+
const char* method,
|
1159
|
+
const char* prototypes
|
1160
1160
|
)
|
1161
1161
|
{
|
1162
1162
|
const char* msg = "Wrong # of arguments";
|
1163
1163
|
if ( argc <= maxargs ) msg = "Wrong arguments";
|
1164
|
-
rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n"
|
1164
|
+
rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n"
|
1165
1165
|
"Possible C/C++ prototypes are:\n%s",
|
1166
1166
|
msg, method, prototypes);
|
1167
1167
|
}
|
@@ -1169,7 +1169,7 @@ void Ruby_Format_OverloadedError(
|
|
1169
1169
|
/* -----------------------------------------------------------------------------
|
1170
1170
|
* rubytracking.swg
|
1171
1171
|
*
|
1172
|
-
* This file contains support for tracking mappings from
|
1172
|
+
* This file contains support for tracking mappings from
|
1173
1173
|
* Ruby objects to C++ objects. This functionality is needed
|
1174
1174
|
* to implement mark functions for Ruby's mark and sweep
|
1175
1175
|
* garbage collector.
|
@@ -1192,7 +1192,7 @@ extern "C" {
|
|
1192
1192
|
|
1193
1193
|
|
1194
1194
|
/* Global Ruby hash table to store Trackings from C/C++
|
1195
|
-
structs to Ruby Objects.
|
1195
|
+
structs to Ruby Objects.
|
1196
1196
|
*/
|
1197
1197
|
static VALUE swig_ruby_trackings = Qnil;
|
1198
1198
|
|
@@ -1202,10 +1202,10 @@ static ID swig_ruby_hash_delete;
|
|
1202
1202
|
|
1203
1203
|
/* Setup a Ruby hash table to store Trackings */
|
1204
1204
|
SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
|
1205
|
-
/* Create a ruby hash table to store Trackings from C++
|
1205
|
+
/* Create a ruby hash table to store Trackings from C++
|
1206
1206
|
objects to Ruby objects. */
|
1207
1207
|
|
1208
|
-
/* Try to see if some other .so has already created a
|
1208
|
+
/* Try to see if some other .so has already created a
|
1209
1209
|
tracking hash table, which we keep hidden in an instance var
|
1210
1210
|
in the SWIG module.
|
1211
1211
|
This is done to allow multiple DSOs to share the same
|
@@ -1217,7 +1217,7 @@ SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
|
|
1217
1217
|
swig_ruby_trackings = rb_ivar_get( _mSWIG, trackings_id );
|
1218
1218
|
rb_gv_set("VERBOSE", verbose);
|
1219
1219
|
|
1220
|
-
/* No, it hasn't. Create one ourselves */
|
1220
|
+
/* No, it hasn't. Create one ourselves */
|
1221
1221
|
if ( swig_ruby_trackings == Qnil )
|
1222
1222
|
{
|
1223
1223
|
swig_ruby_trackings = rb_hash_new();
|
@@ -1284,7 +1284,7 @@ SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) {
|
|
1284
1284
|
|
1285
1285
|
/* Now lookup the value stored in the global hash table */
|
1286
1286
|
VALUE value = rb_hash_aref(swig_ruby_trackings, key);
|
1287
|
-
|
1287
|
+
|
1288
1288
|
if (value == Qnil) {
|
1289
1289
|
/* No object exists - return nil. */
|
1290
1290
|
return Qnil;
|
@@ -1398,24 +1398,24 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
|
|
1398
1398
|
|
1399
1399
|
/* Runtime API */
|
1400
1400
|
|
1401
|
-
#define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule()
|
1401
|
+
#define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule()
|
1402
1402
|
#define SWIG_SetModule(clientdata, pointer) SWIG_Ruby_SetModule(pointer)
|
1403
1403
|
|
1404
1404
|
|
1405
1405
|
/* Error manipulation */
|
1406
1406
|
|
1407
|
-
#define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code)
|
1407
|
+
#define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code)
|
1408
1408
|
#define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), "%s", msg)
|
1409
|
-
#define SWIG_fail goto fail
|
1409
|
+
#define SWIG_fail goto fail
|
1410
1410
|
|
1411
1411
|
|
1412
1412
|
/* Ruby-specific SWIG API */
|
1413
1413
|
|
1414
|
-
#define SWIG_InitRuntime() SWIG_Ruby_InitRuntime()
|
1414
|
+
#define SWIG_InitRuntime() SWIG_Ruby_InitRuntime()
|
1415
1415
|
#define SWIG_define_class(ty) SWIG_Ruby_define_class(ty)
|
1416
1416
|
#define SWIG_NewClassInstance(value, ty) SWIG_Ruby_NewClassInstance(value, ty)
|
1417
|
-
#define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value)
|
1418
|
-
#define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty)
|
1417
|
+
#define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value)
|
1418
|
+
#define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty)
|
1419
1419
|
|
1420
1420
|
#include "assert.h"
|
1421
1421
|
|
@@ -1446,9 +1446,9 @@ static ID swig_call_id = 0;
|
|
1446
1446
|
|
1447
1447
|
/*
|
1448
1448
|
If your swig extension is to be run within an embedded ruby and has
|
1449
|
-
director callbacks, you should set -DRUBY_EMBEDDED during compilation.
|
1450
|
-
This will reset ruby's stack frame on each entry point from the main
|
1451
|
-
program the first time a virtual director function is invoked (in a
|
1449
|
+
director callbacks, you should set -DRUBY_EMBEDDED during compilation.
|
1450
|
+
This will reset ruby's stack frame on each entry point from the main
|
1451
|
+
program the first time a virtual director function is invoked (in a
|
1452
1452
|
non-recursive way).
|
1453
1453
|
If this is not done, you run the risk of Ruby trashing the stack.
|
1454
1454
|
*/
|
@@ -1474,7 +1474,7 @@ static ID swig_call_id = 0;
|
|
1474
1474
|
#endif /* RUBY_EMBEDDED */
|
1475
1475
|
|
1476
1476
|
|
1477
|
-
SWIGRUNTIME VALUE
|
1477
|
+
SWIGRUNTIME VALUE
|
1478
1478
|
getExceptionClass(void) {
|
1479
1479
|
static int init = 0;
|
1480
1480
|
static VALUE rubyExceptionClass ;
|
@@ -1483,7 +1483,7 @@ getExceptionClass(void) {
|
|
1483
1483
|
rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception"));
|
1484
1484
|
}
|
1485
1485
|
return rubyExceptionClass;
|
1486
|
-
}
|
1486
|
+
}
|
1487
1487
|
|
1488
1488
|
/* This code checks to see if the Ruby object being raised as part
|
1489
1489
|
of an exception inherits from the Ruby class Exception. If so,
|
@@ -1529,31 +1529,31 @@ SWIG_Ruby_define_class(swig_type_info *type)
|
|
1529
1529
|
SWIGRUNTIME VALUE
|
1530
1530
|
SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
1531
1531
|
{
|
1532
|
-
int own = flags & SWIG_POINTER_OWN;
|
1532
|
+
int own = flags & SWIG_POINTER_OWN;
|
1533
1533
|
int track;
|
1534
1534
|
char *klass_name;
|
1535
1535
|
swig_class *sklass;
|
1536
1536
|
VALUE klass;
|
1537
1537
|
VALUE obj;
|
1538
|
-
|
1538
|
+
|
1539
1539
|
if (!ptr)
|
1540
1540
|
return Qnil;
|
1541
|
-
|
1541
|
+
|
1542
1542
|
if (type->clientdata) {
|
1543
1543
|
sklass = (swig_class *) type->clientdata;
|
1544
|
-
|
1544
|
+
|
1545
1545
|
/* Are we tracking this class and have we already returned this Ruby object? */
|
1546
1546
|
track = sklass->trackObjects;
|
1547
1547
|
if (track) {
|
1548
1548
|
obj = SWIG_RubyInstanceFor(ptr);
|
1549
|
-
|
1549
|
+
|
1550
1550
|
/* Check the object's type and make sure it has the correct type.
|
1551
|
-
It might not in cases where methods do things like
|
1551
|
+
It might not in cases where methods do things like
|
1552
1552
|
downcast methods. */
|
1553
1553
|
if (obj != Qnil) {
|
1554
1554
|
VALUE value = rb_iv_get(obj, "@__swigtype__");
|
1555
1555
|
char* type_name = RSTRING_PTR(value);
|
1556
|
-
|
1556
|
+
|
1557
1557
|
if (strcmp(type->name, type_name) == 0) {
|
1558
1558
|
return obj;
|
1559
1559
|
}
|
@@ -1561,8 +1561,8 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
|
1561
1561
|
}
|
1562
1562
|
|
1563
1563
|
/* Create a new Ruby object */
|
1564
|
-
obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark),
|
1565
|
-
( own ? VOIDFUNC(sklass->destroy) :
|
1564
|
+
obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark),
|
1565
|
+
( own ? VOIDFUNC(sklass->destroy) :
|
1566
1566
|
(track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 )
|
1567
1567
|
), ptr);
|
1568
1568
|
|
@@ -1578,7 +1578,7 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
|
1578
1578
|
obj = Data_Wrap_Struct(klass, 0, 0, ptr);
|
1579
1579
|
}
|
1580
1580
|
rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
|
1581
|
-
|
1581
|
+
|
1582
1582
|
return obj;
|
1583
1583
|
}
|
1584
1584
|
|
@@ -1633,13 +1633,13 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1633
1633
|
}
|
1634
1634
|
Data_Get_Struct(obj, void, vptr);
|
1635
1635
|
}
|
1636
|
-
|
1636
|
+
|
1637
1637
|
if (own) *own = RDATA(obj)->dfree;
|
1638
|
-
|
1638
|
+
|
1639
1639
|
/* Check to see if the input object is giving up ownership
|
1640
1640
|
of the underlying C struct or C++ object. If so then we
|
1641
|
-
need to reset the destructor since the Ruby object no
|
1642
|
-
longer owns the underlying C++ object.*/
|
1641
|
+
need to reset the destructor since the Ruby object no
|
1642
|
+
longer owns the underlying C++ object.*/
|
1643
1643
|
if (flags & SWIG_POINTER_DISOWN) {
|
1644
1644
|
/* Is tracking on for this class? */
|
1645
1645
|
int track = 0;
|
@@ -1647,16 +1647,16 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1647
1647
|
swig_class *sklass = (swig_class *) ty->clientdata;
|
1648
1648
|
track = sklass->trackObjects;
|
1649
1649
|
}
|
1650
|
-
|
1650
|
+
|
1651
1651
|
if (track) {
|
1652
1652
|
/* We are tracking objects for this class. Thus we change the destructor
|
1653
1653
|
* to SWIG_RubyRemoveTracking. This allows us to
|
1654
1654
|
* remove the mapping from the C++ to Ruby object
|
1655
1655
|
* when the Ruby object is garbage collected. If we don't
|
1656
|
-
* do this, then it is possible we will return a reference
|
1656
|
+
* do this, then it is possible we will return a reference
|
1657
1657
|
* to a Ruby object that no longer exists thereby crashing Ruby. */
|
1658
1658
|
RDATA(obj)->dfree = SWIG_RubyRemoveTracking;
|
1659
|
-
} else {
|
1659
|
+
} else {
|
1660
1660
|
RDATA(obj)->dfree = 0;
|
1661
1661
|
}
|
1662
1662
|
}
|
@@ -1687,7 +1687,7 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1687
1687
|
} else {
|
1688
1688
|
*ptr = vptr;
|
1689
1689
|
}
|
1690
|
-
|
1690
|
+
|
1691
1691
|
return SWIG_OK;
|
1692
1692
|
}
|
1693
1693
|
|
@@ -1742,7 +1742,7 @@ SWIG_Ruby_GetModule(void)
|
|
1742
1742
|
|
1743
1743
|
/* temporarily disable warnings, since the pointer check causes warnings with 'ruby -w' */
|
1744
1744
|
rb_gv_set("VERBOSE", Qfalse);
|
1745
|
-
|
1745
|
+
|
1746
1746
|
/* first check if pointer already created */
|
1747
1747
|
pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME);
|
1748
1748
|
if (pointer != Qnil) {
|
@@ -1754,7 +1754,7 @@ SWIG_Ruby_GetModule(void)
|
|
1754
1754
|
return ret;
|
1755
1755
|
}
|
1756
1756
|
|
1757
|
-
SWIGRUNTIME void
|
1757
|
+
SWIGRUNTIME void
|
1758
1758
|
SWIG_Ruby_SetModule(swig_module_info *pointer)
|
1759
1759
|
{
|
1760
1760
|
/* register a new class */
|
@@ -1805,9 +1805,9 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
1805
1805
|
|
1806
1806
|
|
1807
1807
|
|
1808
|
-
#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
|
1808
|
+
#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
|
1809
1809
|
|
1810
|
-
#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
|
1810
|
+
#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
|
1811
1811
|
|
1812
1812
|
|
1813
1813
|
|
@@ -1839,12 +1839,12 @@ static VALUE mLiblinearswig;
|
|
1839
1839
|
#define SWIG_RUBY_THREAD_END_BLOCK
|
1840
1840
|
|
1841
1841
|
|
1842
|
-
#define SWIGVERSION 0x020004
|
1842
|
+
#define SWIGVERSION 0x020004
|
1843
1843
|
#define SWIG_VERSION SWIGVERSION
|
1844
1844
|
|
1845
1845
|
|
1846
|
-
#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
|
1847
|
-
#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
|
1846
|
+
#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
|
1847
|
+
#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
|
1848
1848
|
|
1849
1849
|
|
1850
1850
|
#include <stdexcept>
|
@@ -1867,7 +1867,7 @@ SWIGINTERN VALUE
|
|
1867
1867
|
SWIG_ruby_failed(void)
|
1868
1868
|
{
|
1869
1869
|
return Qnil;
|
1870
|
-
}
|
1870
|
+
}
|
1871
1871
|
|
1872
1872
|
|
1873
1873
|
/*@SWIG:/usr/local/share/swig/2.0.4/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
@@ -1910,17 +1910,17 @@ SWIG_AsVal_int (VALUE obj, int *val)
|
|
1910
1910
|
} else {
|
1911
1911
|
if (val) *val = static_cast< int >(v);
|
1912
1912
|
}
|
1913
|
-
}
|
1913
|
+
}
|
1914
1914
|
return res;
|
1915
1915
|
}
|
1916
1916
|
|
1917
1917
|
|
1918
|
-
#define SWIG_From_long LONG2NUM
|
1918
|
+
#define SWIG_From_long LONG2NUM
|
1919
1919
|
|
1920
1920
|
|
1921
1921
|
SWIGINTERNINLINE VALUE
|
1922
1922
|
SWIG_From_int (int value)
|
1923
|
-
{
|
1923
|
+
{
|
1924
1924
|
return SWIG_From_long (value);
|
1925
1925
|
}
|
1926
1926
|
|
@@ -1954,7 +1954,7 @@ SWIG_AsVal_double (VALUE obj, double *val)
|
|
1954
1954
|
}
|
1955
1955
|
|
1956
1956
|
|
1957
|
-
#define SWIG_From_double rb_float_new
|
1957
|
+
#define SWIG_From_double rb_float_new
|
1958
1958
|
|
1959
1959
|
|
1960
1960
|
SWIGINTERN swig_type_info*
|
@@ -1975,7 +1975,7 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
|
1975
1975
|
{
|
1976
1976
|
if (TYPE(obj) == T_STRING) {
|
1977
1977
|
#if defined(StringValuePtr)
|
1978
|
-
char *cstr = StringValuePtr(obj);
|
1978
|
+
char *cstr = StringValuePtr(obj);
|
1979
1979
|
#else
|
1980
1980
|
char *cstr = STR2CSTR(obj);
|
1981
1981
|
#endif
|
@@ -2003,7 +2003,7 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
|
2003
2003
|
return SWIG_OK;
|
2004
2004
|
}
|
2005
2005
|
}
|
2006
|
-
}
|
2006
|
+
}
|
2007
2007
|
return SWIG_TypeError;
|
2008
2008
|
}
|
2009
2009
|
|
@@ -2011,13 +2011,13 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
|
2011
2011
|
|
2012
2012
|
|
2013
2013
|
|
2014
|
-
SWIGINTERNINLINE VALUE
|
2014
|
+
SWIGINTERNINLINE VALUE
|
2015
2015
|
SWIG_FromCharPtrAndSize(const char* carray, size_t size)
|
2016
2016
|
{
|
2017
2017
|
if (carray) {
|
2018
2018
|
if (size > LONG_MAX) {
|
2019
2019
|
swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
|
2020
|
-
return pchar_descriptor ?
|
2020
|
+
return pchar_descriptor ?
|
2021
2021
|
SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : Qnil;
|
2022
2022
|
} else {
|
2023
2023
|
return rb_str_new(carray, static_cast< long >(size));
|
@@ -2028,14 +2028,14 @@ SWIG_FromCharPtrAndSize(const char* carray, size_t size)
|
|
2028
2028
|
}
|
2029
2029
|
|
2030
2030
|
|
2031
|
-
SWIGINTERNINLINE VALUE
|
2031
|
+
SWIGINTERNINLINE VALUE
|
2032
2032
|
SWIG_FromCharPtr(const char *cptr)
|
2033
|
-
{
|
2033
|
+
{
|
2034
2034
|
return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
|
2035
2035
|
}
|
2036
2036
|
|
2037
2037
|
|
2038
|
-
static int *new_int(size_t nelements) {
|
2038
|
+
static int *new_int(size_t nelements) {
|
2039
2039
|
return (new int[nelements]);
|
2040
2040
|
}
|
2041
2041
|
|
@@ -2063,7 +2063,7 @@ SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
|
|
2063
2063
|
/*@SWIG@*/
|
2064
2064
|
|
2065
2065
|
SWIGINTERN int
|
2066
|
-
SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val)
|
2066
|
+
SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val)
|
2067
2067
|
{
|
2068
2068
|
VALUE type = TYPE(obj);
|
2069
2069
|
if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
|
@@ -2090,7 +2090,7 @@ SWIG_AsVal_size_t (VALUE obj, size_t *val)
|
|
2090
2090
|
}
|
2091
2091
|
|
2092
2092
|
|
2093
|
-
static double *new_double(size_t nelements) {
|
2093
|
+
static double *new_double(size_t nelements) {
|
2094
2094
|
return (new double[nelements]);
|
2095
2095
|
}
|
2096
2096
|
|
@@ -2164,19 +2164,19 @@ _wrap_feature_node_index_set(int argc, VALUE *argv, VALUE self) {
|
|
2164
2164
|
int res1 = 0 ;
|
2165
2165
|
int val2 ;
|
2166
2166
|
int ecode2 = 0 ;
|
2167
|
-
|
2167
|
+
|
2168
2168
|
if ((argc < 1) || (argc > 1)) {
|
2169
2169
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2170
2170
|
}
|
2171
2171
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_feature_node, 0 | 0 );
|
2172
2172
|
if (!SWIG_IsOK(res1)) {
|
2173
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "feature_node *","index", 1, self ));
|
2173
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "feature_node *","index", 1, self ));
|
2174
2174
|
}
|
2175
2175
|
arg1 = reinterpret_cast< feature_node * >(argp1);
|
2176
2176
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
2177
2177
|
if (!SWIG_IsOK(ecode2)) {
|
2178
2178
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","index", 2, argv[0] ));
|
2179
|
-
}
|
2179
|
+
}
|
2180
2180
|
arg2 = static_cast< int >(val2);
|
2181
2181
|
if (arg1) (arg1)->index = arg2;
|
2182
2182
|
return Qnil;
|
@@ -2192,13 +2192,13 @@ _wrap_feature_node_index_get(int argc, VALUE *argv, VALUE self) {
|
|
2192
2192
|
int res1 = 0 ;
|
2193
2193
|
int result;
|
2194
2194
|
VALUE vresult = Qnil;
|
2195
|
-
|
2195
|
+
|
2196
2196
|
if ((argc < 0) || (argc > 0)) {
|
2197
2197
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2198
2198
|
}
|
2199
2199
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_feature_node, 0 | 0 );
|
2200
2200
|
if (!SWIG_IsOK(res1)) {
|
2201
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "feature_node *","index", 1, self ));
|
2201
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "feature_node *","index", 1, self ));
|
2202
2202
|
}
|
2203
2203
|
arg1 = reinterpret_cast< feature_node * >(argp1);
|
2204
2204
|
result = (int) ((arg1)->index);
|
@@ -2217,19 +2217,19 @@ _wrap_feature_node_value_set(int argc, VALUE *argv, VALUE self) {
|
|
2217
2217
|
int res1 = 0 ;
|
2218
2218
|
double val2 ;
|
2219
2219
|
int ecode2 = 0 ;
|
2220
|
-
|
2220
|
+
|
2221
2221
|
if ((argc < 1) || (argc > 1)) {
|
2222
2222
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2223
2223
|
}
|
2224
2224
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_feature_node, 0 | 0 );
|
2225
2225
|
if (!SWIG_IsOK(res1)) {
|
2226
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "feature_node *","value", 1, self ));
|
2226
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "feature_node *","value", 1, self ));
|
2227
2227
|
}
|
2228
2228
|
arg1 = reinterpret_cast< feature_node * >(argp1);
|
2229
2229
|
ecode2 = SWIG_AsVal_double(argv[0], &val2);
|
2230
2230
|
if (!SWIG_IsOK(ecode2)) {
|
2231
2231
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","value", 2, argv[0] ));
|
2232
|
-
}
|
2232
|
+
}
|
2233
2233
|
arg2 = static_cast< double >(val2);
|
2234
2234
|
if (arg1) (arg1)->value = arg2;
|
2235
2235
|
return Qnil;
|
@@ -2245,13 +2245,13 @@ _wrap_feature_node_value_get(int argc, VALUE *argv, VALUE self) {
|
|
2245
2245
|
int res1 = 0 ;
|
2246
2246
|
double result;
|
2247
2247
|
VALUE vresult = Qnil;
|
2248
|
-
|
2248
|
+
|
2249
2249
|
if ((argc < 0) || (argc > 0)) {
|
2250
2250
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2251
2251
|
}
|
2252
2252
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_feature_node, 0 | 0 );
|
2253
2253
|
if (!SWIG_IsOK(res1)) {
|
2254
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "feature_node *","value", 1, self ));
|
2254
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "feature_node *","value", 1, self ));
|
2255
2255
|
}
|
2256
2256
|
arg1 = reinterpret_cast< feature_node * >(argp1);
|
2257
2257
|
result = (double) ((arg1)->value);
|
@@ -2269,20 +2269,20 @@ _wrap_feature_node_allocate(VALUE self) {
|
|
2269
2269
|
SWIGINTERN VALUE
|
2270
2270
|
_wrap_feature_node_allocate(int argc, VALUE *argv, VALUE self) {
|
2271
2271
|
#endif
|
2272
|
-
|
2273
|
-
|
2272
|
+
|
2273
|
+
|
2274
2274
|
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_feature_node);
|
2275
2275
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
2276
2276
|
rb_obj_call_init(vresult, argc, argv);
|
2277
2277
|
#endif
|
2278
2278
|
return vresult;
|
2279
2279
|
}
|
2280
|
-
|
2280
|
+
|
2281
2281
|
|
2282
2282
|
SWIGINTERN VALUE
|
2283
2283
|
_wrap_new_feature_node(int argc, VALUE *argv, VALUE self) {
|
2284
2284
|
feature_node *result = 0 ;
|
2285
|
-
|
2285
|
+
|
2286
2286
|
if ((argc < 0) || (argc > 0)) {
|
2287
2287
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2288
2288
|
}
|
@@ -2309,19 +2309,19 @@ _wrap_problem_l_set(int argc, VALUE *argv, VALUE self) {
|
|
2309
2309
|
int res1 = 0 ;
|
2310
2310
|
int val2 ;
|
2311
2311
|
int ecode2 = 0 ;
|
2312
|
-
|
2312
|
+
|
2313
2313
|
if ((argc < 1) || (argc > 1)) {
|
2314
2314
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2315
2315
|
}
|
2316
2316
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_problem, 0 | 0 );
|
2317
2317
|
if (!SWIG_IsOK(res1)) {
|
2318
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem *","l", 1, self ));
|
2318
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem *","l", 1, self ));
|
2319
2319
|
}
|
2320
2320
|
arg1 = reinterpret_cast< problem * >(argp1);
|
2321
2321
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
2322
2322
|
if (!SWIG_IsOK(ecode2)) {
|
2323
2323
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","l", 2, argv[0] ));
|
2324
|
-
}
|
2324
|
+
}
|
2325
2325
|
arg2 = static_cast< int >(val2);
|
2326
2326
|
if (arg1) (arg1)->l = arg2;
|
2327
2327
|
return Qnil;
|
@@ -2337,13 +2337,13 @@ _wrap_problem_l_get(int argc, VALUE *argv, VALUE self) {
|
|
2337
2337
|
int res1 = 0 ;
|
2338
2338
|
int result;
|
2339
2339
|
VALUE vresult = Qnil;
|
2340
|
-
|
2340
|
+
|
2341
2341
|
if ((argc < 0) || (argc > 0)) {
|
2342
2342
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2343
2343
|
}
|
2344
2344
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_problem, 0 | 0 );
|
2345
2345
|
if (!SWIG_IsOK(res1)) {
|
2346
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem *","l", 1, self ));
|
2346
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem *","l", 1, self ));
|
2347
2347
|
}
|
2348
2348
|
arg1 = reinterpret_cast< problem * >(argp1);
|
2349
2349
|
result = (int) ((arg1)->l);
|
@@ -2362,19 +2362,19 @@ _wrap_problem_n_set(int argc, VALUE *argv, VALUE self) {
|
|
2362
2362
|
int res1 = 0 ;
|
2363
2363
|
int val2 ;
|
2364
2364
|
int ecode2 = 0 ;
|
2365
|
-
|
2365
|
+
|
2366
2366
|
if ((argc < 1) || (argc > 1)) {
|
2367
2367
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2368
2368
|
}
|
2369
2369
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_problem, 0 | 0 );
|
2370
2370
|
if (!SWIG_IsOK(res1)) {
|
2371
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem *","n", 1, self ));
|
2371
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem *","n", 1, self ));
|
2372
2372
|
}
|
2373
2373
|
arg1 = reinterpret_cast< problem * >(argp1);
|
2374
2374
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
2375
2375
|
if (!SWIG_IsOK(ecode2)) {
|
2376
2376
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","n", 2, argv[0] ));
|
2377
|
-
}
|
2377
|
+
}
|
2378
2378
|
arg2 = static_cast< int >(val2);
|
2379
2379
|
if (arg1) (arg1)->n = arg2;
|
2380
2380
|
return Qnil;
|
@@ -2390,13 +2390,13 @@ _wrap_problem_n_get(int argc, VALUE *argv, VALUE self) {
|
|
2390
2390
|
int res1 = 0 ;
|
2391
2391
|
int result;
|
2392
2392
|
VALUE vresult = Qnil;
|
2393
|
-
|
2393
|
+
|
2394
2394
|
if ((argc < 0) || (argc > 0)) {
|
2395
2395
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2396
2396
|
}
|
2397
2397
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_problem, 0 | 0 );
|
2398
2398
|
if (!SWIG_IsOK(res1)) {
|
2399
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem *","n", 1, self ));
|
2399
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem *","n", 1, self ));
|
2400
2400
|
}
|
2401
2401
|
arg1 = reinterpret_cast< problem * >(argp1);
|
2402
2402
|
result = (int) ((arg1)->n);
|
@@ -2415,18 +2415,18 @@ _wrap_problem_y_set(int argc, VALUE *argv, VALUE self) {
|
|
2415
2415
|
int res1 = 0 ;
|
2416
2416
|
void *argp2 = 0 ;
|
2417
2417
|
int res2 = 0 ;
|
2418
|
-
|
2418
|
+
|
2419
2419
|
if ((argc < 1) || (argc > 1)) {
|
2420
2420
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2421
2421
|
}
|
2422
2422
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_problem, 0 | 0 );
|
2423
2423
|
if (!SWIG_IsOK(res1)) {
|
2424
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem *","y", 1, self ));
|
2424
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem *","y", 1, self ));
|
2425
2425
|
}
|
2426
2426
|
arg1 = reinterpret_cast< problem * >(argp1);
|
2427
2427
|
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_double, SWIG_POINTER_DISOWN | 0 );
|
2428
2428
|
if (!SWIG_IsOK(res2)) {
|
2429
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "double *","y", 2, argv[0] ));
|
2429
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "double *","y", 2, argv[0] ));
|
2430
2430
|
}
|
2431
2431
|
arg2 = reinterpret_cast< double * >(argp2);
|
2432
2432
|
if (arg1) (arg1)->y = arg2;
|
@@ -2443,13 +2443,13 @@ _wrap_problem_y_get(int argc, VALUE *argv, VALUE self) {
|
|
2443
2443
|
int res1 = 0 ;
|
2444
2444
|
double *result = 0 ;
|
2445
2445
|
VALUE vresult = Qnil;
|
2446
|
-
|
2446
|
+
|
2447
2447
|
if ((argc < 0) || (argc > 0)) {
|
2448
2448
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2449
2449
|
}
|
2450
2450
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_problem, 0 | 0 );
|
2451
2451
|
if (!SWIG_IsOK(res1)) {
|
2452
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem *","y", 1, self ));
|
2452
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem *","y", 1, self ));
|
2453
2453
|
}
|
2454
2454
|
arg1 = reinterpret_cast< problem * >(argp1);
|
2455
2455
|
result = (double *) ((arg1)->y);
|
@@ -2468,18 +2468,18 @@ _wrap_problem_x_set(int argc, VALUE *argv, VALUE self) {
|
|
2468
2468
|
int res1 = 0 ;
|
2469
2469
|
void *argp2 = 0 ;
|
2470
2470
|
int res2 = 0 ;
|
2471
|
-
|
2471
|
+
|
2472
2472
|
if ((argc < 1) || (argc > 1)) {
|
2473
2473
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2474
2474
|
}
|
2475
2475
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_problem, 0 | 0 );
|
2476
2476
|
if (!SWIG_IsOK(res1)) {
|
2477
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem *","x", 1, self ));
|
2477
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem *","x", 1, self ));
|
2478
2478
|
}
|
2479
2479
|
arg1 = reinterpret_cast< problem * >(argp1);
|
2480
2480
|
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_p_feature_node, 0 | 0 );
|
2481
2481
|
if (!SWIG_IsOK(res2)) {
|
2482
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "feature_node **","x", 2, argv[0] ));
|
2482
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "feature_node **","x", 2, argv[0] ));
|
2483
2483
|
}
|
2484
2484
|
arg2 = reinterpret_cast< feature_node ** >(argp2);
|
2485
2485
|
if (arg1) (arg1)->x = arg2;
|
@@ -2496,13 +2496,13 @@ _wrap_problem_x_get(int argc, VALUE *argv, VALUE self) {
|
|
2496
2496
|
int res1 = 0 ;
|
2497
2497
|
feature_node **result = 0 ;
|
2498
2498
|
VALUE vresult = Qnil;
|
2499
|
-
|
2499
|
+
|
2500
2500
|
if ((argc < 0) || (argc > 0)) {
|
2501
2501
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2502
2502
|
}
|
2503
2503
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_problem, 0 | 0 );
|
2504
2504
|
if (!SWIG_IsOK(res1)) {
|
2505
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem *","x", 1, self ));
|
2505
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem *","x", 1, self ));
|
2506
2506
|
}
|
2507
2507
|
arg1 = reinterpret_cast< problem * >(argp1);
|
2508
2508
|
result = (feature_node **) ((arg1)->x);
|
@@ -2521,19 +2521,19 @@ _wrap_problem_bias_set(int argc, VALUE *argv, VALUE self) {
|
|
2521
2521
|
int res1 = 0 ;
|
2522
2522
|
double val2 ;
|
2523
2523
|
int ecode2 = 0 ;
|
2524
|
-
|
2524
|
+
|
2525
2525
|
if ((argc < 1) || (argc > 1)) {
|
2526
2526
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2527
2527
|
}
|
2528
2528
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_problem, 0 | 0 );
|
2529
2529
|
if (!SWIG_IsOK(res1)) {
|
2530
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem *","bias", 1, self ));
|
2530
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem *","bias", 1, self ));
|
2531
2531
|
}
|
2532
2532
|
arg1 = reinterpret_cast< problem * >(argp1);
|
2533
2533
|
ecode2 = SWIG_AsVal_double(argv[0], &val2);
|
2534
2534
|
if (!SWIG_IsOK(ecode2)) {
|
2535
2535
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","bias", 2, argv[0] ));
|
2536
|
-
}
|
2536
|
+
}
|
2537
2537
|
arg2 = static_cast< double >(val2);
|
2538
2538
|
if (arg1) (arg1)->bias = arg2;
|
2539
2539
|
return Qnil;
|
@@ -2549,13 +2549,13 @@ _wrap_problem_bias_get(int argc, VALUE *argv, VALUE self) {
|
|
2549
2549
|
int res1 = 0 ;
|
2550
2550
|
double result;
|
2551
2551
|
VALUE vresult = Qnil;
|
2552
|
-
|
2552
|
+
|
2553
2553
|
if ((argc < 0) || (argc > 0)) {
|
2554
2554
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2555
2555
|
}
|
2556
2556
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_problem, 0 | 0 );
|
2557
2557
|
if (!SWIG_IsOK(res1)) {
|
2558
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem *","bias", 1, self ));
|
2558
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem *","bias", 1, self ));
|
2559
2559
|
}
|
2560
2560
|
arg1 = reinterpret_cast< problem * >(argp1);
|
2561
2561
|
result = (double) ((arg1)->bias);
|
@@ -2573,20 +2573,20 @@ _wrap_problem_allocate(VALUE self) {
|
|
2573
2573
|
SWIGINTERN VALUE
|
2574
2574
|
_wrap_problem_allocate(int argc, VALUE *argv, VALUE self) {
|
2575
2575
|
#endif
|
2576
|
-
|
2577
|
-
|
2576
|
+
|
2577
|
+
|
2578
2578
|
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_problem);
|
2579
2579
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
2580
2580
|
rb_obj_call_init(vresult, argc, argv);
|
2581
2581
|
#endif
|
2582
2582
|
return vresult;
|
2583
2583
|
}
|
2584
|
-
|
2584
|
+
|
2585
2585
|
|
2586
2586
|
SWIGINTERN VALUE
|
2587
2587
|
_wrap_new_problem(int argc, VALUE *argv, VALUE self) {
|
2588
2588
|
problem *result = 0 ;
|
2589
|
-
|
2589
|
+
|
2590
2590
|
if ((argc < 0) || (argc > 0)) {
|
2591
2591
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2592
2592
|
}
|
@@ -2613,19 +2613,19 @@ _wrap_parameter_solver_type_set(int argc, VALUE *argv, VALUE self) {
|
|
2613
2613
|
int res1 = 0 ;
|
2614
2614
|
int val2 ;
|
2615
2615
|
int ecode2 = 0 ;
|
2616
|
-
|
2616
|
+
|
2617
2617
|
if ((argc < 1) || (argc > 1)) {
|
2618
2618
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2619
2619
|
}
|
2620
2620
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_parameter, 0 | 0 );
|
2621
2621
|
if (!SWIG_IsOK(res1)) {
|
2622
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","solver_type", 1, self ));
|
2622
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","solver_type", 1, self ));
|
2623
2623
|
}
|
2624
2624
|
arg1 = reinterpret_cast< parameter * >(argp1);
|
2625
2625
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
2626
2626
|
if (!SWIG_IsOK(ecode2)) {
|
2627
2627
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","solver_type", 2, argv[0] ));
|
2628
|
-
}
|
2628
|
+
}
|
2629
2629
|
arg2 = static_cast< int >(val2);
|
2630
2630
|
if (arg1) (arg1)->solver_type = arg2;
|
2631
2631
|
return Qnil;
|
@@ -2641,13 +2641,13 @@ _wrap_parameter_solver_type_get(int argc, VALUE *argv, VALUE self) {
|
|
2641
2641
|
int res1 = 0 ;
|
2642
2642
|
int result;
|
2643
2643
|
VALUE vresult = Qnil;
|
2644
|
-
|
2644
|
+
|
2645
2645
|
if ((argc < 0) || (argc > 0)) {
|
2646
2646
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2647
2647
|
}
|
2648
2648
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_parameter, 0 | 0 );
|
2649
2649
|
if (!SWIG_IsOK(res1)) {
|
2650
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","solver_type", 1, self ));
|
2650
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","solver_type", 1, self ));
|
2651
2651
|
}
|
2652
2652
|
arg1 = reinterpret_cast< parameter * >(argp1);
|
2653
2653
|
result = (int) ((arg1)->solver_type);
|
@@ -2666,19 +2666,19 @@ _wrap_parameter_eps_set(int argc, VALUE *argv, VALUE self) {
|
|
2666
2666
|
int res1 = 0 ;
|
2667
2667
|
double val2 ;
|
2668
2668
|
int ecode2 = 0 ;
|
2669
|
-
|
2669
|
+
|
2670
2670
|
if ((argc < 1) || (argc > 1)) {
|
2671
2671
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2672
2672
|
}
|
2673
2673
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_parameter, 0 | 0 );
|
2674
2674
|
if (!SWIG_IsOK(res1)) {
|
2675
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","eps", 1, self ));
|
2675
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","eps", 1, self ));
|
2676
2676
|
}
|
2677
2677
|
arg1 = reinterpret_cast< parameter * >(argp1);
|
2678
2678
|
ecode2 = SWIG_AsVal_double(argv[0], &val2);
|
2679
2679
|
if (!SWIG_IsOK(ecode2)) {
|
2680
2680
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","eps", 2, argv[0] ));
|
2681
|
-
}
|
2681
|
+
}
|
2682
2682
|
arg2 = static_cast< double >(val2);
|
2683
2683
|
if (arg1) (arg1)->eps = arg2;
|
2684
2684
|
return Qnil;
|
@@ -2694,13 +2694,13 @@ _wrap_parameter_eps_get(int argc, VALUE *argv, VALUE self) {
|
|
2694
2694
|
int res1 = 0 ;
|
2695
2695
|
double result;
|
2696
2696
|
VALUE vresult = Qnil;
|
2697
|
-
|
2697
|
+
|
2698
2698
|
if ((argc < 0) || (argc > 0)) {
|
2699
2699
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2700
2700
|
}
|
2701
2701
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_parameter, 0 | 0 );
|
2702
2702
|
if (!SWIG_IsOK(res1)) {
|
2703
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","eps", 1, self ));
|
2703
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","eps", 1, self ));
|
2704
2704
|
}
|
2705
2705
|
arg1 = reinterpret_cast< parameter * >(argp1);
|
2706
2706
|
result = (double) ((arg1)->eps);
|
@@ -2719,19 +2719,19 @@ _wrap_parameter_C_set(int argc, VALUE *argv, VALUE self) {
|
|
2719
2719
|
int res1 = 0 ;
|
2720
2720
|
double val2 ;
|
2721
2721
|
int ecode2 = 0 ;
|
2722
|
-
|
2722
|
+
|
2723
2723
|
if ((argc < 1) || (argc > 1)) {
|
2724
2724
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2725
2725
|
}
|
2726
2726
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_parameter, 0 | 0 );
|
2727
2727
|
if (!SWIG_IsOK(res1)) {
|
2728
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","C", 1, self ));
|
2728
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","C", 1, self ));
|
2729
2729
|
}
|
2730
2730
|
arg1 = reinterpret_cast< parameter * >(argp1);
|
2731
2731
|
ecode2 = SWIG_AsVal_double(argv[0], &val2);
|
2732
2732
|
if (!SWIG_IsOK(ecode2)) {
|
2733
2733
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","C", 2, argv[0] ));
|
2734
|
-
}
|
2734
|
+
}
|
2735
2735
|
arg2 = static_cast< double >(val2);
|
2736
2736
|
if (arg1) (arg1)->C = arg2;
|
2737
2737
|
return Qnil;
|
@@ -2747,13 +2747,13 @@ _wrap_parameter_C_get(int argc, VALUE *argv, VALUE self) {
|
|
2747
2747
|
int res1 = 0 ;
|
2748
2748
|
double result;
|
2749
2749
|
VALUE vresult = Qnil;
|
2750
|
-
|
2750
|
+
|
2751
2751
|
if ((argc < 0) || (argc > 0)) {
|
2752
2752
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2753
2753
|
}
|
2754
2754
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_parameter, 0 | 0 );
|
2755
2755
|
if (!SWIG_IsOK(res1)) {
|
2756
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","C", 1, self ));
|
2756
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","C", 1, self ));
|
2757
2757
|
}
|
2758
2758
|
arg1 = reinterpret_cast< parameter * >(argp1);
|
2759
2759
|
result = (double) ((arg1)->C);
|
@@ -2772,19 +2772,19 @@ _wrap_parameter_nr_weight_set(int argc, VALUE *argv, VALUE self) {
|
|
2772
2772
|
int res1 = 0 ;
|
2773
2773
|
int val2 ;
|
2774
2774
|
int ecode2 = 0 ;
|
2775
|
-
|
2775
|
+
|
2776
2776
|
if ((argc < 1) || (argc > 1)) {
|
2777
2777
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2778
2778
|
}
|
2779
2779
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_parameter, 0 | 0 );
|
2780
2780
|
if (!SWIG_IsOK(res1)) {
|
2781
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","nr_weight", 1, self ));
|
2781
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","nr_weight", 1, self ));
|
2782
2782
|
}
|
2783
2783
|
arg1 = reinterpret_cast< parameter * >(argp1);
|
2784
2784
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
2785
2785
|
if (!SWIG_IsOK(ecode2)) {
|
2786
2786
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","nr_weight", 2, argv[0] ));
|
2787
|
-
}
|
2787
|
+
}
|
2788
2788
|
arg2 = static_cast< int >(val2);
|
2789
2789
|
if (arg1) (arg1)->nr_weight = arg2;
|
2790
2790
|
return Qnil;
|
@@ -2800,13 +2800,13 @@ _wrap_parameter_nr_weight_get(int argc, VALUE *argv, VALUE self) {
|
|
2800
2800
|
int res1 = 0 ;
|
2801
2801
|
int result;
|
2802
2802
|
VALUE vresult = Qnil;
|
2803
|
-
|
2803
|
+
|
2804
2804
|
if ((argc < 0) || (argc > 0)) {
|
2805
2805
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2806
2806
|
}
|
2807
2807
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_parameter, 0 | 0 );
|
2808
2808
|
if (!SWIG_IsOK(res1)) {
|
2809
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","nr_weight", 1, self ));
|
2809
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","nr_weight", 1, self ));
|
2810
2810
|
}
|
2811
2811
|
arg1 = reinterpret_cast< parameter * >(argp1);
|
2812
2812
|
result = (int) ((arg1)->nr_weight);
|
@@ -2825,18 +2825,18 @@ _wrap_parameter_weight_label_set(int argc, VALUE *argv, VALUE self) {
|
|
2825
2825
|
int res1 = 0 ;
|
2826
2826
|
void *argp2 = 0 ;
|
2827
2827
|
int res2 = 0 ;
|
2828
|
-
|
2828
|
+
|
2829
2829
|
if ((argc < 1) || (argc > 1)) {
|
2830
2830
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2831
2831
|
}
|
2832
2832
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_parameter, 0 | 0 );
|
2833
2833
|
if (!SWIG_IsOK(res1)) {
|
2834
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","weight_label", 1, self ));
|
2834
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","weight_label", 1, self ));
|
2835
2835
|
}
|
2836
2836
|
arg1 = reinterpret_cast< parameter * >(argp1);
|
2837
2837
|
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_int, SWIG_POINTER_DISOWN | 0 );
|
2838
2838
|
if (!SWIG_IsOK(res2)) {
|
2839
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","weight_label", 2, argv[0] ));
|
2839
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","weight_label", 2, argv[0] ));
|
2840
2840
|
}
|
2841
2841
|
arg2 = reinterpret_cast< int * >(argp2);
|
2842
2842
|
if (arg1) (arg1)->weight_label = arg2;
|
@@ -2853,13 +2853,13 @@ _wrap_parameter_weight_label_get(int argc, VALUE *argv, VALUE self) {
|
|
2853
2853
|
int res1 = 0 ;
|
2854
2854
|
int *result = 0 ;
|
2855
2855
|
VALUE vresult = Qnil;
|
2856
|
-
|
2856
|
+
|
2857
2857
|
if ((argc < 0) || (argc > 0)) {
|
2858
2858
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2859
2859
|
}
|
2860
2860
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_parameter, 0 | 0 );
|
2861
2861
|
if (!SWIG_IsOK(res1)) {
|
2862
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","weight_label", 1, self ));
|
2862
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","weight_label", 1, self ));
|
2863
2863
|
}
|
2864
2864
|
arg1 = reinterpret_cast< parameter * >(argp1);
|
2865
2865
|
result = (int *) ((arg1)->weight_label);
|
@@ -2878,18 +2878,18 @@ _wrap_parameter_weight_set(int argc, VALUE *argv, VALUE self) {
|
|
2878
2878
|
int res1 = 0 ;
|
2879
2879
|
void *argp2 = 0 ;
|
2880
2880
|
int res2 = 0 ;
|
2881
|
-
|
2881
|
+
|
2882
2882
|
if ((argc < 1) || (argc > 1)) {
|
2883
2883
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2884
2884
|
}
|
2885
2885
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_parameter, 0 | 0 );
|
2886
2886
|
if (!SWIG_IsOK(res1)) {
|
2887
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","weight", 1, self ));
|
2887
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","weight", 1, self ));
|
2888
2888
|
}
|
2889
2889
|
arg1 = reinterpret_cast< parameter * >(argp1);
|
2890
2890
|
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_double, SWIG_POINTER_DISOWN | 0 );
|
2891
2891
|
if (!SWIG_IsOK(res2)) {
|
2892
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "double *","weight", 2, argv[0] ));
|
2892
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "double *","weight", 2, argv[0] ));
|
2893
2893
|
}
|
2894
2894
|
arg2 = reinterpret_cast< double * >(argp2);
|
2895
2895
|
if (arg1) (arg1)->weight = arg2;
|
@@ -2906,13 +2906,13 @@ _wrap_parameter_weight_get(int argc, VALUE *argv, VALUE self) {
|
|
2906
2906
|
int res1 = 0 ;
|
2907
2907
|
double *result = 0 ;
|
2908
2908
|
VALUE vresult = Qnil;
|
2909
|
-
|
2909
|
+
|
2910
2910
|
if ((argc < 0) || (argc > 0)) {
|
2911
2911
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2912
2912
|
}
|
2913
2913
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_parameter, 0 | 0 );
|
2914
2914
|
if (!SWIG_IsOK(res1)) {
|
2915
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","weight", 1, self ));
|
2915
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","weight", 1, self ));
|
2916
2916
|
}
|
2917
2917
|
arg1 = reinterpret_cast< parameter * >(argp1);
|
2918
2918
|
result = (double *) ((arg1)->weight);
|
@@ -2931,19 +2931,19 @@ _wrap_parameter_p_set(int argc, VALUE *argv, VALUE self) {
|
|
2931
2931
|
int res1 = 0 ;
|
2932
2932
|
double val2 ;
|
2933
2933
|
int ecode2 = 0 ;
|
2934
|
-
|
2934
|
+
|
2935
2935
|
if ((argc < 1) || (argc > 1)) {
|
2936
2936
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2937
2937
|
}
|
2938
2938
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_parameter, 0 | 0 );
|
2939
2939
|
if (!SWIG_IsOK(res1)) {
|
2940
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","p", 1, self ));
|
2940
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","p", 1, self ));
|
2941
2941
|
}
|
2942
2942
|
arg1 = reinterpret_cast< parameter * >(argp1);
|
2943
2943
|
ecode2 = SWIG_AsVal_double(argv[0], &val2);
|
2944
2944
|
if (!SWIG_IsOK(ecode2)) {
|
2945
2945
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","p", 2, argv[0] ));
|
2946
|
-
}
|
2946
|
+
}
|
2947
2947
|
arg2 = static_cast< double >(val2);
|
2948
2948
|
if (arg1) (arg1)->p = arg2;
|
2949
2949
|
return Qnil;
|
@@ -2959,13 +2959,13 @@ _wrap_parameter_p_get(int argc, VALUE *argv, VALUE self) {
|
|
2959
2959
|
int res1 = 0 ;
|
2960
2960
|
double result;
|
2961
2961
|
VALUE vresult = Qnil;
|
2962
|
-
|
2962
|
+
|
2963
2963
|
if ((argc < 0) || (argc > 0)) {
|
2964
2964
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2965
2965
|
}
|
2966
2966
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_parameter, 0 | 0 );
|
2967
2967
|
if (!SWIG_IsOK(res1)) {
|
2968
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","p", 1, self ));
|
2968
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","p", 1, self ));
|
2969
2969
|
}
|
2970
2970
|
arg1 = reinterpret_cast< parameter * >(argp1);
|
2971
2971
|
result = (double) ((arg1)->p);
|
@@ -2984,18 +2984,18 @@ _wrap_parameter_init_sol_set(int argc, VALUE *argv, VALUE self) {
|
|
2984
2984
|
int res1 = 0 ;
|
2985
2985
|
void *argp2 = 0 ;
|
2986
2986
|
int res2 = 0 ;
|
2987
|
-
|
2987
|
+
|
2988
2988
|
if ((argc < 1) || (argc > 1)) {
|
2989
2989
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2990
2990
|
}
|
2991
2991
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_parameter, 0 | 0 );
|
2992
2992
|
if (!SWIG_IsOK(res1)) {
|
2993
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","init_sol", 1, self ));
|
2993
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","init_sol", 1, self ));
|
2994
2994
|
}
|
2995
2995
|
arg1 = reinterpret_cast< parameter * >(argp1);
|
2996
2996
|
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_double, SWIG_POINTER_DISOWN | 0 );
|
2997
2997
|
if (!SWIG_IsOK(res2)) {
|
2998
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "double *","init_sol", 2, argv[0] ));
|
2998
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "double *","init_sol", 2, argv[0] ));
|
2999
2999
|
}
|
3000
3000
|
arg2 = reinterpret_cast< double * >(argp2);
|
3001
3001
|
if (arg1) (arg1)->init_sol = arg2;
|
@@ -3012,13 +3012,13 @@ _wrap_parameter_init_sol_get(int argc, VALUE *argv, VALUE self) {
|
|
3012
3012
|
int res1 = 0 ;
|
3013
3013
|
double *result = 0 ;
|
3014
3014
|
VALUE vresult = Qnil;
|
3015
|
-
|
3015
|
+
|
3016
3016
|
if ((argc < 0) || (argc > 0)) {
|
3017
3017
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3018
3018
|
}
|
3019
3019
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_parameter, 0 | 0 );
|
3020
3020
|
if (!SWIG_IsOK(res1)) {
|
3021
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","init_sol", 1, self ));
|
3021
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","init_sol", 1, self ));
|
3022
3022
|
}
|
3023
3023
|
arg1 = reinterpret_cast< parameter * >(argp1);
|
3024
3024
|
result = (double *) ((arg1)->init_sol);
|
@@ -3036,20 +3036,20 @@ _wrap_parameter_allocate(VALUE self) {
|
|
3036
3036
|
SWIGINTERN VALUE
|
3037
3037
|
_wrap_parameter_allocate(int argc, VALUE *argv, VALUE self) {
|
3038
3038
|
#endif
|
3039
|
-
|
3040
|
-
|
3039
|
+
|
3040
|
+
|
3041
3041
|
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_parameter);
|
3042
3042
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
3043
3043
|
rb_obj_call_init(vresult, argc, argv);
|
3044
3044
|
#endif
|
3045
3045
|
return vresult;
|
3046
3046
|
}
|
3047
|
-
|
3047
|
+
|
3048
3048
|
|
3049
3049
|
SWIGINTERN VALUE
|
3050
3050
|
_wrap_new_parameter(int argc, VALUE *argv, VALUE self) {
|
3051
3051
|
parameter *result = 0 ;
|
3052
|
-
|
3052
|
+
|
3053
3053
|
if ((argc < 0) || (argc > 0)) {
|
3054
3054
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3055
3055
|
}
|
@@ -3076,18 +3076,18 @@ _wrap_model_param_set(int argc, VALUE *argv, VALUE self) {
|
|
3076
3076
|
int res1 = 0 ;
|
3077
3077
|
void *argp2 = 0 ;
|
3078
3078
|
int res2 = 0 ;
|
3079
|
-
|
3079
|
+
|
3080
3080
|
if ((argc < 1) || (argc > 1)) {
|
3081
3081
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3082
3082
|
}
|
3083
3083
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_model, 0 | 0 );
|
3084
3084
|
if (!SWIG_IsOK(res1)) {
|
3085
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","param", 1, self ));
|
3085
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","param", 1, self ));
|
3086
3086
|
}
|
3087
3087
|
arg1 = reinterpret_cast< model * >(argp1);
|
3088
3088
|
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_parameter, 0 | 0 );
|
3089
3089
|
if (!SWIG_IsOK(res2)) {
|
3090
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "parameter *","param", 2, argv[0] ));
|
3090
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "parameter *","param", 2, argv[0] ));
|
3091
3091
|
}
|
3092
3092
|
arg2 = reinterpret_cast< parameter * >(argp2);
|
3093
3093
|
if (arg1) (arg1)->param = *arg2;
|
@@ -3104,13 +3104,13 @@ _wrap_model_param_get(int argc, VALUE *argv, VALUE self) {
|
|
3104
3104
|
int res1 = 0 ;
|
3105
3105
|
parameter *result = 0 ;
|
3106
3106
|
VALUE vresult = Qnil;
|
3107
|
-
|
3107
|
+
|
3108
3108
|
if ((argc < 0) || (argc > 0)) {
|
3109
3109
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3110
3110
|
}
|
3111
3111
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_model, 0 | 0 );
|
3112
3112
|
if (!SWIG_IsOK(res1)) {
|
3113
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","param", 1, self ));
|
3113
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","param", 1, self ));
|
3114
3114
|
}
|
3115
3115
|
arg1 = reinterpret_cast< model * >(argp1);
|
3116
3116
|
result = (parameter *)& ((arg1)->param);
|
@@ -3129,19 +3129,19 @@ _wrap_model_nr_class_set(int argc, VALUE *argv, VALUE self) {
|
|
3129
3129
|
int res1 = 0 ;
|
3130
3130
|
int val2 ;
|
3131
3131
|
int ecode2 = 0 ;
|
3132
|
-
|
3132
|
+
|
3133
3133
|
if ((argc < 1) || (argc > 1)) {
|
3134
3134
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3135
3135
|
}
|
3136
3136
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_model, 0 | 0 );
|
3137
3137
|
if (!SWIG_IsOK(res1)) {
|
3138
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","nr_class", 1, self ));
|
3138
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","nr_class", 1, self ));
|
3139
3139
|
}
|
3140
3140
|
arg1 = reinterpret_cast< model * >(argp1);
|
3141
3141
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
3142
3142
|
if (!SWIG_IsOK(ecode2)) {
|
3143
3143
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","nr_class", 2, argv[0] ));
|
3144
|
-
}
|
3144
|
+
}
|
3145
3145
|
arg2 = static_cast< int >(val2);
|
3146
3146
|
if (arg1) (arg1)->nr_class = arg2;
|
3147
3147
|
return Qnil;
|
@@ -3157,13 +3157,13 @@ _wrap_model_nr_class_get(int argc, VALUE *argv, VALUE self) {
|
|
3157
3157
|
int res1 = 0 ;
|
3158
3158
|
int result;
|
3159
3159
|
VALUE vresult = Qnil;
|
3160
|
-
|
3160
|
+
|
3161
3161
|
if ((argc < 0) || (argc > 0)) {
|
3162
3162
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3163
3163
|
}
|
3164
3164
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_model, 0 | 0 );
|
3165
3165
|
if (!SWIG_IsOK(res1)) {
|
3166
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","nr_class", 1, self ));
|
3166
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","nr_class", 1, self ));
|
3167
3167
|
}
|
3168
3168
|
arg1 = reinterpret_cast< model * >(argp1);
|
3169
3169
|
result = (int) ((arg1)->nr_class);
|
@@ -3182,19 +3182,19 @@ _wrap_model_nr_feature_set(int argc, VALUE *argv, VALUE self) {
|
|
3182
3182
|
int res1 = 0 ;
|
3183
3183
|
int val2 ;
|
3184
3184
|
int ecode2 = 0 ;
|
3185
|
-
|
3185
|
+
|
3186
3186
|
if ((argc < 1) || (argc > 1)) {
|
3187
3187
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3188
3188
|
}
|
3189
3189
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_model, 0 | 0 );
|
3190
3190
|
if (!SWIG_IsOK(res1)) {
|
3191
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","nr_feature", 1, self ));
|
3191
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","nr_feature", 1, self ));
|
3192
3192
|
}
|
3193
3193
|
arg1 = reinterpret_cast< model * >(argp1);
|
3194
3194
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
3195
3195
|
if (!SWIG_IsOK(ecode2)) {
|
3196
3196
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","nr_feature", 2, argv[0] ));
|
3197
|
-
}
|
3197
|
+
}
|
3198
3198
|
arg2 = static_cast< int >(val2);
|
3199
3199
|
if (arg1) (arg1)->nr_feature = arg2;
|
3200
3200
|
return Qnil;
|
@@ -3210,13 +3210,13 @@ _wrap_model_nr_feature_get(int argc, VALUE *argv, VALUE self) {
|
|
3210
3210
|
int res1 = 0 ;
|
3211
3211
|
int result;
|
3212
3212
|
VALUE vresult = Qnil;
|
3213
|
-
|
3213
|
+
|
3214
3214
|
if ((argc < 0) || (argc > 0)) {
|
3215
3215
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3216
3216
|
}
|
3217
3217
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_model, 0 | 0 );
|
3218
3218
|
if (!SWIG_IsOK(res1)) {
|
3219
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","nr_feature", 1, self ));
|
3219
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","nr_feature", 1, self ));
|
3220
3220
|
}
|
3221
3221
|
arg1 = reinterpret_cast< model * >(argp1);
|
3222
3222
|
result = (int) ((arg1)->nr_feature);
|
@@ -3235,18 +3235,18 @@ _wrap_model_w_set(int argc, VALUE *argv, VALUE self) {
|
|
3235
3235
|
int res1 = 0 ;
|
3236
3236
|
void *argp2 = 0 ;
|
3237
3237
|
int res2 = 0 ;
|
3238
|
-
|
3238
|
+
|
3239
3239
|
if ((argc < 1) || (argc > 1)) {
|
3240
3240
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3241
3241
|
}
|
3242
3242
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_model, 0 | 0 );
|
3243
3243
|
if (!SWIG_IsOK(res1)) {
|
3244
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","w", 1, self ));
|
3244
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","w", 1, self ));
|
3245
3245
|
}
|
3246
3246
|
arg1 = reinterpret_cast< model * >(argp1);
|
3247
3247
|
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_double, SWIG_POINTER_DISOWN | 0 );
|
3248
3248
|
if (!SWIG_IsOK(res2)) {
|
3249
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "double *","w", 2, argv[0] ));
|
3249
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "double *","w", 2, argv[0] ));
|
3250
3250
|
}
|
3251
3251
|
arg2 = reinterpret_cast< double * >(argp2);
|
3252
3252
|
if (arg1) (arg1)->w = arg2;
|
@@ -3263,13 +3263,13 @@ _wrap_model_w_get(int argc, VALUE *argv, VALUE self) {
|
|
3263
3263
|
int res1 = 0 ;
|
3264
3264
|
double *result = 0 ;
|
3265
3265
|
VALUE vresult = Qnil;
|
3266
|
-
|
3266
|
+
|
3267
3267
|
if ((argc < 0) || (argc > 0)) {
|
3268
3268
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3269
3269
|
}
|
3270
3270
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_model, 0 | 0 );
|
3271
3271
|
if (!SWIG_IsOK(res1)) {
|
3272
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","w", 1, self ));
|
3272
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","w", 1, self ));
|
3273
3273
|
}
|
3274
3274
|
arg1 = reinterpret_cast< model * >(argp1);
|
3275
3275
|
result = (double *) ((arg1)->w);
|
@@ -3288,18 +3288,18 @@ _wrap_model_label_set(int argc, VALUE *argv, VALUE self) {
|
|
3288
3288
|
int res1 = 0 ;
|
3289
3289
|
void *argp2 = 0 ;
|
3290
3290
|
int res2 = 0 ;
|
3291
|
-
|
3291
|
+
|
3292
3292
|
if ((argc < 1) || (argc > 1)) {
|
3293
3293
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3294
3294
|
}
|
3295
3295
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_model, 0 | 0 );
|
3296
3296
|
if (!SWIG_IsOK(res1)) {
|
3297
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","label", 1, self ));
|
3297
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","label", 1, self ));
|
3298
3298
|
}
|
3299
3299
|
arg1 = reinterpret_cast< model * >(argp1);
|
3300
3300
|
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_int, SWIG_POINTER_DISOWN | 0 );
|
3301
3301
|
if (!SWIG_IsOK(res2)) {
|
3302
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","label", 2, argv[0] ));
|
3302
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","label", 2, argv[0] ));
|
3303
3303
|
}
|
3304
3304
|
arg2 = reinterpret_cast< int * >(argp2);
|
3305
3305
|
if (arg1) (arg1)->label = arg2;
|
@@ -3316,13 +3316,13 @@ _wrap_model_label_get(int argc, VALUE *argv, VALUE self) {
|
|
3316
3316
|
int res1 = 0 ;
|
3317
3317
|
int *result = 0 ;
|
3318
3318
|
VALUE vresult = Qnil;
|
3319
|
-
|
3319
|
+
|
3320
3320
|
if ((argc < 0) || (argc > 0)) {
|
3321
3321
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3322
3322
|
}
|
3323
3323
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_model, 0 | 0 );
|
3324
3324
|
if (!SWIG_IsOK(res1)) {
|
3325
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","label", 1, self ));
|
3325
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","label", 1, self ));
|
3326
3326
|
}
|
3327
3327
|
arg1 = reinterpret_cast< model * >(argp1);
|
3328
3328
|
result = (int *) ((arg1)->label);
|
@@ -3341,19 +3341,19 @@ _wrap_model_bias_set(int argc, VALUE *argv, VALUE self) {
|
|
3341
3341
|
int res1 = 0 ;
|
3342
3342
|
double val2 ;
|
3343
3343
|
int ecode2 = 0 ;
|
3344
|
-
|
3344
|
+
|
3345
3345
|
if ((argc < 1) || (argc > 1)) {
|
3346
3346
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3347
3347
|
}
|
3348
3348
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_model, 0 | 0 );
|
3349
3349
|
if (!SWIG_IsOK(res1)) {
|
3350
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","bias", 1, self ));
|
3350
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","bias", 1, self ));
|
3351
3351
|
}
|
3352
3352
|
arg1 = reinterpret_cast< model * >(argp1);
|
3353
3353
|
ecode2 = SWIG_AsVal_double(argv[0], &val2);
|
3354
3354
|
if (!SWIG_IsOK(ecode2)) {
|
3355
3355
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","bias", 2, argv[0] ));
|
3356
|
-
}
|
3356
|
+
}
|
3357
3357
|
arg2 = static_cast< double >(val2);
|
3358
3358
|
if (arg1) (arg1)->bias = arg2;
|
3359
3359
|
return Qnil;
|
@@ -3369,13 +3369,13 @@ _wrap_model_bias_get(int argc, VALUE *argv, VALUE self) {
|
|
3369
3369
|
int res1 = 0 ;
|
3370
3370
|
double result;
|
3371
3371
|
VALUE vresult = Qnil;
|
3372
|
-
|
3372
|
+
|
3373
3373
|
if ((argc < 0) || (argc > 0)) {
|
3374
3374
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3375
3375
|
}
|
3376
3376
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_model, 0 | 0 );
|
3377
3377
|
if (!SWIG_IsOK(res1)) {
|
3378
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","bias", 1, self ));
|
3378
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","bias", 1, self ));
|
3379
3379
|
}
|
3380
3380
|
arg1 = reinterpret_cast< model * >(argp1);
|
3381
3381
|
result = (double) ((arg1)->bias);
|
@@ -3393,20 +3393,20 @@ _wrap_model_allocate(VALUE self) {
|
|
3393
3393
|
SWIGINTERN VALUE
|
3394
3394
|
_wrap_model_allocate(int argc, VALUE *argv, VALUE self) {
|
3395
3395
|
#endif
|
3396
|
-
|
3397
|
-
|
3396
|
+
|
3397
|
+
|
3398
3398
|
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_model);
|
3399
3399
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
3400
3400
|
rb_obj_call_init(vresult, argc, argv);
|
3401
3401
|
#endif
|
3402
3402
|
return vresult;
|
3403
3403
|
}
|
3404
|
-
|
3404
|
+
|
3405
3405
|
|
3406
3406
|
SWIGINTERN VALUE
|
3407
3407
|
_wrap_new_model(int argc, VALUE *argv, VALUE self) {
|
3408
3408
|
model *result = 0 ;
|
3409
|
-
|
3409
|
+
|
3410
3410
|
if ((argc < 0) || (argc > 0)) {
|
3411
3411
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3412
3412
|
}
|
@@ -3433,18 +3433,18 @@ _wrap_train(int argc, VALUE *argv, VALUE self) {
|
|
3433
3433
|
int res2 = 0 ;
|
3434
3434
|
model *result = 0 ;
|
3435
3435
|
VALUE vresult = Qnil;
|
3436
|
-
|
3436
|
+
|
3437
3437
|
if ((argc < 2) || (argc > 2)) {
|
3438
3438
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3439
3439
|
}
|
3440
3440
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_problem, 0 | 0 );
|
3441
3441
|
if (!SWIG_IsOK(res1)) {
|
3442
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem const *","train", 1, argv[0] ));
|
3442
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem const *","train", 1, argv[0] ));
|
3443
3443
|
}
|
3444
3444
|
arg1 = reinterpret_cast< problem * >(argp1);
|
3445
3445
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_parameter, 0 | 0 );
|
3446
3446
|
if (!SWIG_IsOK(res2)) {
|
3447
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "parameter const *","train", 2, argv[1] ));
|
3447
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "parameter const *","train", 2, argv[1] ));
|
3448
3448
|
}
|
3449
3449
|
arg2 = reinterpret_cast< parameter * >(argp2);
|
3450
3450
|
result = (model *)train((problem const *)arg1,(parameter const *)arg2);
|
@@ -3469,28 +3469,28 @@ _wrap_cross_validation(int argc, VALUE *argv, VALUE self) {
|
|
3469
3469
|
int ecode3 = 0 ;
|
3470
3470
|
void *argp4 = 0 ;
|
3471
3471
|
int res4 = 0 ;
|
3472
|
-
|
3472
|
+
|
3473
3473
|
if ((argc < 4) || (argc > 4)) {
|
3474
3474
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
3475
3475
|
}
|
3476
3476
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_problem, 0 | 0 );
|
3477
3477
|
if (!SWIG_IsOK(res1)) {
|
3478
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem const *","cross_validation", 1, argv[0] ));
|
3478
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem const *","cross_validation", 1, argv[0] ));
|
3479
3479
|
}
|
3480
3480
|
arg1 = reinterpret_cast< problem * >(argp1);
|
3481
3481
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_parameter, 0 | 0 );
|
3482
3482
|
if (!SWIG_IsOK(res2)) {
|
3483
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "parameter const *","cross_validation", 2, argv[1] ));
|
3483
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "parameter const *","cross_validation", 2, argv[1] ));
|
3484
3484
|
}
|
3485
3485
|
arg2 = reinterpret_cast< parameter * >(argp2);
|
3486
3486
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
3487
3487
|
if (!SWIG_IsOK(ecode3)) {
|
3488
3488
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","cross_validation", 3, argv[2] ));
|
3489
|
-
}
|
3489
|
+
}
|
3490
3490
|
arg3 = static_cast< int >(val3);
|
3491
3491
|
res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_double, 0 | 0 );
|
3492
3492
|
if (!SWIG_IsOK(res4)) {
|
3493
|
-
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "double *","cross_validation", 4, argv[3] ));
|
3493
|
+
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "double *","cross_validation", 4, argv[3] ));
|
3494
3494
|
}
|
3495
3495
|
arg4 = reinterpret_cast< double * >(argp4);
|
3496
3496
|
cross_validation((problem const *)arg1,(parameter const *)arg2,arg3,arg4);
|
@@ -3523,43 +3523,43 @@ _wrap_find_parameter_C(int argc, VALUE *argv, VALUE self) {
|
|
3523
3523
|
int res6 = 0 ;
|
3524
3524
|
void *argp7 = 0 ;
|
3525
3525
|
int res7 = 0 ;
|
3526
|
-
|
3526
|
+
|
3527
3527
|
if ((argc < 7) || (argc > 7)) {
|
3528
3528
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 7)",argc); SWIG_fail;
|
3529
3529
|
}
|
3530
3530
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_problem, 0 | 0 );
|
3531
3531
|
if (!SWIG_IsOK(res1)) {
|
3532
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem const *","find_parameter_C", 1, argv[0] ));
|
3532
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem const *","find_parameter_C", 1, argv[0] ));
|
3533
3533
|
}
|
3534
3534
|
arg1 = reinterpret_cast< problem * >(argp1);
|
3535
3535
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_parameter, 0 | 0 );
|
3536
3536
|
if (!SWIG_IsOK(res2)) {
|
3537
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "parameter const *","find_parameter_C", 2, argv[1] ));
|
3537
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "parameter const *","find_parameter_C", 2, argv[1] ));
|
3538
3538
|
}
|
3539
3539
|
arg2 = reinterpret_cast< parameter * >(argp2);
|
3540
3540
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
3541
3541
|
if (!SWIG_IsOK(ecode3)) {
|
3542
3542
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","find_parameter_C", 3, argv[2] ));
|
3543
|
-
}
|
3543
|
+
}
|
3544
3544
|
arg3 = static_cast< int >(val3);
|
3545
3545
|
ecode4 = SWIG_AsVal_double(argv[3], &val4);
|
3546
3546
|
if (!SWIG_IsOK(ecode4)) {
|
3547
3547
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","find_parameter_C", 4, argv[3] ));
|
3548
|
-
}
|
3548
|
+
}
|
3549
3549
|
arg4 = static_cast< double >(val4);
|
3550
3550
|
ecode5 = SWIG_AsVal_double(argv[4], &val5);
|
3551
3551
|
if (!SWIG_IsOK(ecode5)) {
|
3552
3552
|
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","find_parameter_C", 5, argv[4] ));
|
3553
|
-
}
|
3553
|
+
}
|
3554
3554
|
arg5 = static_cast< double >(val5);
|
3555
3555
|
res6 = SWIG_ConvertPtr(argv[5], &argp6,SWIGTYPE_p_double, 0 | 0 );
|
3556
3556
|
if (!SWIG_IsOK(res6)) {
|
3557
|
-
SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "double *","find_parameter_C", 6, argv[5] ));
|
3557
|
+
SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "double *","find_parameter_C", 6, argv[5] ));
|
3558
3558
|
}
|
3559
3559
|
arg6 = reinterpret_cast< double * >(argp6);
|
3560
3560
|
res7 = SWIG_ConvertPtr(argv[6], &argp7,SWIGTYPE_p_double, 0 | 0 );
|
3561
3561
|
if (!SWIG_IsOK(res7)) {
|
3562
|
-
SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "double *","find_parameter_C", 7, argv[6] ));
|
3562
|
+
SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "double *","find_parameter_C", 7, argv[6] ));
|
3563
3563
|
}
|
3564
3564
|
arg7 = reinterpret_cast< double * >(argp7);
|
3565
3565
|
find_parameter_C((problem const *)arg1,(parameter const *)arg2,arg3,arg4,arg5,arg6,arg7);
|
@@ -3582,23 +3582,23 @@ _wrap_predict_values(int argc, VALUE *argv, VALUE self) {
|
|
3582
3582
|
int res3 = 0 ;
|
3583
3583
|
double result;
|
3584
3584
|
VALUE vresult = Qnil;
|
3585
|
-
|
3585
|
+
|
3586
3586
|
if ((argc < 3) || (argc > 3)) {
|
3587
3587
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
3588
3588
|
}
|
3589
3589
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_model, 0 | 0 );
|
3590
3590
|
if (!SWIG_IsOK(res1)) {
|
3591
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model const *","predict_values", 1, argv[0] ));
|
3591
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model const *","predict_values", 1, argv[0] ));
|
3592
3592
|
}
|
3593
3593
|
arg1 = reinterpret_cast< model * >(argp1);
|
3594
3594
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_feature_node, 0 | 0 );
|
3595
3595
|
if (!SWIG_IsOK(res2)) {
|
3596
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "feature_node const *","predict_values", 2, argv[1] ));
|
3596
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "feature_node const *","predict_values", 2, argv[1] ));
|
3597
3597
|
}
|
3598
3598
|
arg2 = reinterpret_cast< feature_node * >(argp2);
|
3599
3599
|
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_double, 0 | 0 );
|
3600
3600
|
if (!SWIG_IsOK(res3)) {
|
3601
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "double *","predict_values", 3, argv[2] ));
|
3601
|
+
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "double *","predict_values", 3, argv[2] ));
|
3602
3602
|
}
|
3603
3603
|
arg3 = reinterpret_cast< double * >(argp3);
|
3604
3604
|
result = (double)predict_values((model const *)arg1,(feature_node const *)arg2,arg3);
|
@@ -3619,18 +3619,18 @@ _wrap_predict(int argc, VALUE *argv, VALUE self) {
|
|
3619
3619
|
int res2 = 0 ;
|
3620
3620
|
double result;
|
3621
3621
|
VALUE vresult = Qnil;
|
3622
|
-
|
3622
|
+
|
3623
3623
|
if ((argc < 2) || (argc > 2)) {
|
3624
3624
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3625
3625
|
}
|
3626
3626
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_model, 0 | 0 );
|
3627
3627
|
if (!SWIG_IsOK(res1)) {
|
3628
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model const *","predict", 1, argv[0] ));
|
3628
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model const *","predict", 1, argv[0] ));
|
3629
3629
|
}
|
3630
3630
|
arg1 = reinterpret_cast< model * >(argp1);
|
3631
3631
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_feature_node, 0 | 0 );
|
3632
3632
|
if (!SWIG_IsOK(res2)) {
|
3633
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "feature_node const *","predict", 2, argv[1] ));
|
3633
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "feature_node const *","predict", 2, argv[1] ));
|
3634
3634
|
}
|
3635
3635
|
arg2 = reinterpret_cast< feature_node * >(argp2);
|
3636
3636
|
result = (double)predict((model const *)arg1,(feature_node const *)arg2);
|
@@ -3654,23 +3654,23 @@ _wrap_predict_probability(int argc, VALUE *argv, VALUE self) {
|
|
3654
3654
|
int res3 = 0 ;
|
3655
3655
|
double result;
|
3656
3656
|
VALUE vresult = Qnil;
|
3657
|
-
|
3657
|
+
|
3658
3658
|
if ((argc < 3) || (argc > 3)) {
|
3659
3659
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
3660
3660
|
}
|
3661
3661
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_model, 0 | 0 );
|
3662
3662
|
if (!SWIG_IsOK(res1)) {
|
3663
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model const *","predict_probability", 1, argv[0] ));
|
3663
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model const *","predict_probability", 1, argv[0] ));
|
3664
3664
|
}
|
3665
3665
|
arg1 = reinterpret_cast< model * >(argp1);
|
3666
3666
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_feature_node, 0 | 0 );
|
3667
3667
|
if (!SWIG_IsOK(res2)) {
|
3668
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "feature_node const *","predict_probability", 2, argv[1] ));
|
3668
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "feature_node const *","predict_probability", 2, argv[1] ));
|
3669
3669
|
}
|
3670
3670
|
arg2 = reinterpret_cast< feature_node * >(argp2);
|
3671
3671
|
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_double, 0 | 0 );
|
3672
3672
|
if (!SWIG_IsOK(res3)) {
|
3673
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "double *","predict_probability", 3, argv[2] ));
|
3673
|
+
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "double *","predict_probability", 3, argv[2] ));
|
3674
3674
|
}
|
3675
3675
|
arg3 = reinterpret_cast< double * >(argp3);
|
3676
3676
|
result = (double)predict_probability((model const *)arg1,(feature_node const *)arg2,arg3);
|
@@ -3692,7 +3692,7 @@ _wrap_save_model(int argc, VALUE *argv, VALUE self) {
|
|
3692
3692
|
int res2 = 0 ;
|
3693
3693
|
int result;
|
3694
3694
|
VALUE vresult = Qnil;
|
3695
|
-
|
3695
|
+
|
3696
3696
|
if ((argc < 2) || (argc > 2)) {
|
3697
3697
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3698
3698
|
}
|
@@ -3703,7 +3703,7 @@ _wrap_save_model(int argc, VALUE *argv, VALUE self) {
|
|
3703
3703
|
arg1 = reinterpret_cast< char * >(buf1);
|
3704
3704
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_model, 0 | 0 );
|
3705
3705
|
if (!SWIG_IsOK(res2)) {
|
3706
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "model const *","save_model", 2, argv[1] ));
|
3706
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "model const *","save_model", 2, argv[1] ));
|
3707
3707
|
}
|
3708
3708
|
arg2 = reinterpret_cast< model * >(argp2);
|
3709
3709
|
result = (int)save_model((char const *)arg1,(model const *)arg2);
|
@@ -3724,7 +3724,7 @@ _wrap_load_model(int argc, VALUE *argv, VALUE self) {
|
|
3724
3724
|
int alloc1 = 0 ;
|
3725
3725
|
model *result = 0 ;
|
3726
3726
|
VALUE vresult = Qnil;
|
3727
|
-
|
3727
|
+
|
3728
3728
|
if ((argc < 1) || (argc > 1)) {
|
3729
3729
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3730
3730
|
}
|
@@ -3750,13 +3750,13 @@ _wrap_get_nr_feature(int argc, VALUE *argv, VALUE self) {
|
|
3750
3750
|
int res1 = 0 ;
|
3751
3751
|
int result;
|
3752
3752
|
VALUE vresult = Qnil;
|
3753
|
-
|
3753
|
+
|
3754
3754
|
if ((argc < 1) || (argc > 1)) {
|
3755
3755
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3756
3756
|
}
|
3757
3757
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_model, 0 | 0 );
|
3758
3758
|
if (!SWIG_IsOK(res1)) {
|
3759
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model const *","get_nr_feature", 1, argv[0] ));
|
3759
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model const *","get_nr_feature", 1, argv[0] ));
|
3760
3760
|
}
|
3761
3761
|
arg1 = reinterpret_cast< model * >(argp1);
|
3762
3762
|
result = (int)get_nr_feature((model const *)arg1);
|
@@ -3774,13 +3774,13 @@ _wrap_get_nr_class(int argc, VALUE *argv, VALUE self) {
|
|
3774
3774
|
int res1 = 0 ;
|
3775
3775
|
int result;
|
3776
3776
|
VALUE vresult = Qnil;
|
3777
|
-
|
3777
|
+
|
3778
3778
|
if ((argc < 1) || (argc > 1)) {
|
3779
3779
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3780
3780
|
}
|
3781
3781
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_model, 0 | 0 );
|
3782
3782
|
if (!SWIG_IsOK(res1)) {
|
3783
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model const *","get_nr_class", 1, argv[0] ));
|
3783
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model const *","get_nr_class", 1, argv[0] ));
|
3784
3784
|
}
|
3785
3785
|
arg1 = reinterpret_cast< model * >(argp1);
|
3786
3786
|
result = (int)get_nr_class((model const *)arg1);
|
@@ -3799,18 +3799,18 @@ _wrap_get_labels(int argc, VALUE *argv, VALUE self) {
|
|
3799
3799
|
int res1 = 0 ;
|
3800
3800
|
void *argp2 = 0 ;
|
3801
3801
|
int res2 = 0 ;
|
3802
|
-
|
3802
|
+
|
3803
3803
|
if ((argc < 2) || (argc > 2)) {
|
3804
3804
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3805
3805
|
}
|
3806
3806
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_model, 0 | 0 );
|
3807
3807
|
if (!SWIG_IsOK(res1)) {
|
3808
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model const *","get_labels", 1, argv[0] ));
|
3808
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model const *","get_labels", 1, argv[0] ));
|
3809
3809
|
}
|
3810
3810
|
arg1 = reinterpret_cast< model * >(argp1);
|
3811
3811
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
|
3812
3812
|
if (!SWIG_IsOK(res2)) {
|
3813
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","get_labels", 2, argv[1] ));
|
3813
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","get_labels", 2, argv[1] ));
|
3814
3814
|
}
|
3815
3815
|
arg2 = reinterpret_cast< int * >(argp2);
|
3816
3816
|
get_labels((model const *)arg1,arg2);
|
@@ -3833,24 +3833,24 @@ _wrap_get_decfun_coef(int argc, VALUE *argv, VALUE self) {
|
|
3833
3833
|
int ecode3 = 0 ;
|
3834
3834
|
double result;
|
3835
3835
|
VALUE vresult = Qnil;
|
3836
|
-
|
3836
|
+
|
3837
3837
|
if ((argc < 3) || (argc > 3)) {
|
3838
3838
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
3839
3839
|
}
|
3840
3840
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_model, 0 | 0 );
|
3841
3841
|
if (!SWIG_IsOK(res1)) {
|
3842
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model const *","get_decfun_coef", 1, argv[0] ));
|
3842
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model const *","get_decfun_coef", 1, argv[0] ));
|
3843
3843
|
}
|
3844
3844
|
arg1 = reinterpret_cast< model * >(argp1);
|
3845
3845
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3846
3846
|
if (!SWIG_IsOK(ecode2)) {
|
3847
3847
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","get_decfun_coef", 2, argv[1] ));
|
3848
|
-
}
|
3848
|
+
}
|
3849
3849
|
arg2 = static_cast< int >(val2);
|
3850
3850
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
3851
3851
|
if (!SWIG_IsOK(ecode3)) {
|
3852
3852
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","get_decfun_coef", 3, argv[2] ));
|
3853
|
-
}
|
3853
|
+
}
|
3854
3854
|
arg3 = static_cast< int >(val3);
|
3855
3855
|
result = (double)get_decfun_coef((model const *)arg1,arg2,arg3);
|
3856
3856
|
vresult = SWIG_From_double(static_cast< double >(result));
|
@@ -3870,19 +3870,19 @@ _wrap_get_decfun_bias(int argc, VALUE *argv, VALUE self) {
|
|
3870
3870
|
int ecode2 = 0 ;
|
3871
3871
|
double result;
|
3872
3872
|
VALUE vresult = Qnil;
|
3873
|
-
|
3873
|
+
|
3874
3874
|
if ((argc < 2) || (argc > 2)) {
|
3875
3875
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3876
3876
|
}
|
3877
3877
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_model, 0 | 0 );
|
3878
3878
|
if (!SWIG_IsOK(res1)) {
|
3879
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model const *","get_decfun_bias", 1, argv[0] ));
|
3879
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model const *","get_decfun_bias", 1, argv[0] ));
|
3880
3880
|
}
|
3881
3881
|
arg1 = reinterpret_cast< model * >(argp1);
|
3882
3882
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3883
3883
|
if (!SWIG_IsOK(ecode2)) {
|
3884
3884
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","get_decfun_bias", 2, argv[1] ));
|
3885
|
-
}
|
3885
|
+
}
|
3886
3886
|
arg2 = static_cast< int >(val2);
|
3887
3887
|
result = (double)get_decfun_bias((model const *)arg1,arg2);
|
3888
3888
|
vresult = SWIG_From_double(static_cast< double >(result));
|
@@ -3897,13 +3897,13 @@ _wrap_free_model_content(int argc, VALUE *argv, VALUE self) {
|
|
3897
3897
|
model *arg1 = (model *) 0 ;
|
3898
3898
|
void *argp1 = 0 ;
|
3899
3899
|
int res1 = 0 ;
|
3900
|
-
|
3900
|
+
|
3901
3901
|
if ((argc < 1) || (argc > 1)) {
|
3902
3902
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3903
3903
|
}
|
3904
3904
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_model, 0 | 0 );
|
3905
3905
|
if (!SWIG_IsOK(res1)) {
|
3906
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","free_model_content", 1, argv[0] ));
|
3906
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model *","free_model_content", 1, argv[0] ));
|
3907
3907
|
}
|
3908
3908
|
arg1 = reinterpret_cast< model * >(argp1);
|
3909
3909
|
free_model_content(arg1);
|
@@ -3918,13 +3918,13 @@ _wrap_free_and_destroy_model(int argc, VALUE *argv, VALUE self) {
|
|
3918
3918
|
model **arg1 = (model **) 0 ;
|
3919
3919
|
void *argp1 = 0 ;
|
3920
3920
|
int res1 = 0 ;
|
3921
|
-
|
3921
|
+
|
3922
3922
|
if ((argc < 1) || (argc > 1)) {
|
3923
3923
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3924
3924
|
}
|
3925
3925
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_p_model, 0 | 0 );
|
3926
3926
|
if (!SWIG_IsOK(res1)) {
|
3927
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model **","free_and_destroy_model", 1, argv[0] ));
|
3927
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model **","free_and_destroy_model", 1, argv[0] ));
|
3928
3928
|
}
|
3929
3929
|
arg1 = reinterpret_cast< model ** >(argp1);
|
3930
3930
|
free_and_destroy_model(arg1);
|
@@ -3939,13 +3939,13 @@ _wrap_destroy_param(int argc, VALUE *argv, VALUE self) {
|
|
3939
3939
|
parameter *arg1 = (parameter *) 0 ;
|
3940
3940
|
void *argp1 = 0 ;
|
3941
3941
|
int res1 = 0 ;
|
3942
|
-
|
3942
|
+
|
3943
3943
|
if ((argc < 1) || (argc > 1)) {
|
3944
3944
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3945
3945
|
}
|
3946
3946
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_parameter, 0 | 0 );
|
3947
3947
|
if (!SWIG_IsOK(res1)) {
|
3948
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","destroy_param", 1, argv[0] ));
|
3948
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "parameter *","destroy_param", 1, argv[0] ));
|
3949
3949
|
}
|
3950
3950
|
arg1 = reinterpret_cast< parameter * >(argp1);
|
3951
3951
|
destroy_param(arg1);
|
@@ -3965,18 +3965,18 @@ _wrap_check_parameter(int argc, VALUE *argv, VALUE self) {
|
|
3965
3965
|
int res2 = 0 ;
|
3966
3966
|
char *result = 0 ;
|
3967
3967
|
VALUE vresult = Qnil;
|
3968
|
-
|
3968
|
+
|
3969
3969
|
if ((argc < 2) || (argc > 2)) {
|
3970
3970
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3971
3971
|
}
|
3972
3972
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_problem, 0 | 0 );
|
3973
3973
|
if (!SWIG_IsOK(res1)) {
|
3974
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem const *","check_parameter", 1, argv[0] ));
|
3974
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "problem const *","check_parameter", 1, argv[0] ));
|
3975
3975
|
}
|
3976
3976
|
arg1 = reinterpret_cast< problem * >(argp1);
|
3977
3977
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_parameter, 0 | 0 );
|
3978
3978
|
if (!SWIG_IsOK(res2)) {
|
3979
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "parameter const *","check_parameter", 2, argv[1] ));
|
3979
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "parameter const *","check_parameter", 2, argv[1] ));
|
3980
3980
|
}
|
3981
3981
|
arg2 = reinterpret_cast< parameter * >(argp2);
|
3982
3982
|
result = (char *)check_parameter((problem const *)arg1,(parameter const *)arg2);
|
@@ -3994,13 +3994,13 @@ _wrap_check_probability_model(int argc, VALUE *argv, VALUE self) {
|
|
3994
3994
|
int res1 = 0 ;
|
3995
3995
|
int result;
|
3996
3996
|
VALUE vresult = Qnil;
|
3997
|
-
|
3997
|
+
|
3998
3998
|
if ((argc < 1) || (argc > 1)) {
|
3999
3999
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4000
4000
|
}
|
4001
4001
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_model, 0 | 0 );
|
4002
4002
|
if (!SWIG_IsOK(res1)) {
|
4003
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model const *","check_probability_model", 1, argv[0] ));
|
4003
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model const *","check_probability_model", 1, argv[0] ));
|
4004
4004
|
}
|
4005
4005
|
arg1 = reinterpret_cast< model * >(argp1);
|
4006
4006
|
result = (int)check_probability_model((model const *)arg1);
|
@@ -4018,13 +4018,13 @@ _wrap_check_regression_model(int argc, VALUE *argv, VALUE self) {
|
|
4018
4018
|
int res1 = 0 ;
|
4019
4019
|
int result;
|
4020
4020
|
VALUE vresult = Qnil;
|
4021
|
-
|
4021
|
+
|
4022
4022
|
if ((argc < 1) || (argc > 1)) {
|
4023
4023
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4024
4024
|
}
|
4025
4025
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_model, 0 | 0 );
|
4026
4026
|
if (!SWIG_IsOK(res1)) {
|
4027
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model const *","check_regression_model", 1, argv[0] ));
|
4027
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "model const *","check_regression_model", 1, argv[0] ));
|
4028
4028
|
}
|
4029
4029
|
arg1 = reinterpret_cast< model * >(argp1);
|
4030
4030
|
result = (int)check_regression_model((model const *)arg1);
|
@@ -4038,14 +4038,14 @@ fail:
|
|
4038
4038
|
SWIGINTERN VALUE
|
4039
4039
|
_wrap_set_print_string_function(int argc, VALUE *argv, VALUE self) {
|
4040
4040
|
void (*arg1)(char const *) = (void (*)(char const *)) 0 ;
|
4041
|
-
|
4041
|
+
|
4042
4042
|
if ((argc < 1) || (argc > 1)) {
|
4043
4043
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4044
4044
|
}
|
4045
4045
|
{
|
4046
4046
|
int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg1), SWIGTYPE_p_f_p_q_const__char__void);
|
4047
4047
|
if (!SWIG_IsOK(res)) {
|
4048
|
-
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void (*)(char const *)","set_print_string_function", 1, argv[0] ));
|
4048
|
+
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void (*)(char const *)","set_print_string_function", 1, argv[0] ));
|
4049
4049
|
}
|
4050
4050
|
}
|
4051
4051
|
set_print_string_function(arg1);
|
@@ -4062,14 +4062,14 @@ _wrap_new_int(int argc, VALUE *argv, VALUE self) {
|
|
4062
4062
|
int ecode1 = 0 ;
|
4063
4063
|
int *result = 0 ;
|
4064
4064
|
VALUE vresult = Qnil;
|
4065
|
-
|
4065
|
+
|
4066
4066
|
if ((argc < 1) || (argc > 1)) {
|
4067
4067
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4068
4068
|
}
|
4069
4069
|
ecode1 = SWIG_AsVal_size_t(argv[0], &val1);
|
4070
4070
|
if (!SWIG_IsOK(ecode1)) {
|
4071
4071
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "size_t","new_int", 1, argv[0] ));
|
4072
|
-
}
|
4072
|
+
}
|
4073
4073
|
arg1 = static_cast< size_t >(val1);
|
4074
4074
|
result = (int *)new_int(arg1);
|
4075
4075
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
|
@@ -4084,13 +4084,13 @@ _wrap_delete_int(int argc, VALUE *argv, VALUE self) {
|
|
4084
4084
|
int *arg1 = (int *) 0 ;
|
4085
4085
|
void *argp1 = 0 ;
|
4086
4086
|
int res1 = 0 ;
|
4087
|
-
|
4087
|
+
|
4088
4088
|
if ((argc < 1) || (argc > 1)) {
|
4089
4089
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4090
4090
|
}
|
4091
4091
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_int, 0 | 0 );
|
4092
4092
|
if (!SWIG_IsOK(res1)) {
|
4093
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int *","delete_int", 1, argv[0] ));
|
4093
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int *","delete_int", 1, argv[0] ));
|
4094
4094
|
}
|
4095
4095
|
arg1 = reinterpret_cast< int * >(argp1);
|
4096
4096
|
delete_int(arg1);
|
@@ -4110,19 +4110,19 @@ _wrap_int_getitem(int argc, VALUE *argv, VALUE self) {
|
|
4110
4110
|
int ecode2 = 0 ;
|
4111
4111
|
int result;
|
4112
4112
|
VALUE vresult = Qnil;
|
4113
|
-
|
4113
|
+
|
4114
4114
|
if ((argc < 2) || (argc > 2)) {
|
4115
4115
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4116
4116
|
}
|
4117
4117
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_int, 0 | 0 );
|
4118
4118
|
if (!SWIG_IsOK(res1)) {
|
4119
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int *","int_getitem", 1, argv[0] ));
|
4119
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int *","int_getitem", 1, argv[0] ));
|
4120
4120
|
}
|
4121
4121
|
arg1 = reinterpret_cast< int * >(argp1);
|
4122
4122
|
ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
|
4123
4123
|
if (!SWIG_IsOK(ecode2)) {
|
4124
4124
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","int_getitem", 2, argv[1] ));
|
4125
|
-
}
|
4125
|
+
}
|
4126
4126
|
arg2 = static_cast< size_t >(val2);
|
4127
4127
|
result = (int)int_getitem(arg1,arg2);
|
4128
4128
|
vresult = SWIG_From_int(static_cast< int >(result));
|
@@ -4143,24 +4143,24 @@ _wrap_int_setitem(int argc, VALUE *argv, VALUE self) {
|
|
4143
4143
|
int ecode2 = 0 ;
|
4144
4144
|
int val3 ;
|
4145
4145
|
int ecode3 = 0 ;
|
4146
|
-
|
4146
|
+
|
4147
4147
|
if ((argc < 3) || (argc > 3)) {
|
4148
4148
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
4149
4149
|
}
|
4150
4150
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_int, 0 | 0 );
|
4151
4151
|
if (!SWIG_IsOK(res1)) {
|
4152
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int *","int_setitem", 1, argv[0] ));
|
4152
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int *","int_setitem", 1, argv[0] ));
|
4153
4153
|
}
|
4154
4154
|
arg1 = reinterpret_cast< int * >(argp1);
|
4155
4155
|
ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
|
4156
4156
|
if (!SWIG_IsOK(ecode2)) {
|
4157
4157
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","int_setitem", 2, argv[1] ));
|
4158
|
-
}
|
4158
|
+
}
|
4159
4159
|
arg2 = static_cast< size_t >(val2);
|
4160
4160
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
4161
4161
|
if (!SWIG_IsOK(ecode3)) {
|
4162
4162
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","int_setitem", 3, argv[2] ));
|
4163
|
-
}
|
4163
|
+
}
|
4164
4164
|
arg3 = static_cast< int >(val3);
|
4165
4165
|
int_setitem(arg1,arg2,arg3);
|
4166
4166
|
return Qnil;
|
@@ -4176,14 +4176,14 @@ _wrap_new_double(int argc, VALUE *argv, VALUE self) {
|
|
4176
4176
|
int ecode1 = 0 ;
|
4177
4177
|
double *result = 0 ;
|
4178
4178
|
VALUE vresult = Qnil;
|
4179
|
-
|
4179
|
+
|
4180
4180
|
if ((argc < 1) || (argc > 1)) {
|
4181
4181
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4182
4182
|
}
|
4183
4183
|
ecode1 = SWIG_AsVal_size_t(argv[0], &val1);
|
4184
4184
|
if (!SWIG_IsOK(ecode1)) {
|
4185
4185
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "size_t","new_double", 1, argv[0] ));
|
4186
|
-
}
|
4186
|
+
}
|
4187
4187
|
arg1 = static_cast< size_t >(val1);
|
4188
4188
|
result = (double *)new_double(arg1);
|
4189
4189
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0 );
|
@@ -4198,13 +4198,13 @@ _wrap_delete_double(int argc, VALUE *argv, VALUE self) {
|
|
4198
4198
|
double *arg1 = (double *) 0 ;
|
4199
4199
|
void *argp1 = 0 ;
|
4200
4200
|
int res1 = 0 ;
|
4201
|
-
|
4201
|
+
|
4202
4202
|
if ((argc < 1) || (argc > 1)) {
|
4203
4203
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4204
4204
|
}
|
4205
4205
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_double, 0 | 0 );
|
4206
4206
|
if (!SWIG_IsOK(res1)) {
|
4207
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "double *","delete_double", 1, argv[0] ));
|
4207
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "double *","delete_double", 1, argv[0] ));
|
4208
4208
|
}
|
4209
4209
|
arg1 = reinterpret_cast< double * >(argp1);
|
4210
4210
|
delete_double(arg1);
|
@@ -4224,19 +4224,19 @@ _wrap_double_getitem(int argc, VALUE *argv, VALUE self) {
|
|
4224
4224
|
int ecode2 = 0 ;
|
4225
4225
|
double result;
|
4226
4226
|
VALUE vresult = Qnil;
|
4227
|
-
|
4227
|
+
|
4228
4228
|
if ((argc < 2) || (argc > 2)) {
|
4229
4229
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4230
4230
|
}
|
4231
4231
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_double, 0 | 0 );
|
4232
4232
|
if (!SWIG_IsOK(res1)) {
|
4233
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "double *","double_getitem", 1, argv[0] ));
|
4233
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "double *","double_getitem", 1, argv[0] ));
|
4234
4234
|
}
|
4235
4235
|
arg1 = reinterpret_cast< double * >(argp1);
|
4236
4236
|
ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
|
4237
4237
|
if (!SWIG_IsOK(ecode2)) {
|
4238
4238
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","double_getitem", 2, argv[1] ));
|
4239
|
-
}
|
4239
|
+
}
|
4240
4240
|
arg2 = static_cast< size_t >(val2);
|
4241
4241
|
result = (double)double_getitem(arg1,arg2);
|
4242
4242
|
vresult = SWIG_From_double(static_cast< double >(result));
|
@@ -4257,24 +4257,24 @@ _wrap_double_setitem(int argc, VALUE *argv, VALUE self) {
|
|
4257
4257
|
int ecode2 = 0 ;
|
4258
4258
|
double val3 ;
|
4259
4259
|
int ecode3 = 0 ;
|
4260
|
-
|
4260
|
+
|
4261
4261
|
if ((argc < 3) || (argc > 3)) {
|
4262
4262
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
4263
4263
|
}
|
4264
4264
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_double, 0 | 0 );
|
4265
4265
|
if (!SWIG_IsOK(res1)) {
|
4266
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "double *","double_setitem", 1, argv[0] ));
|
4266
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "double *","double_setitem", 1, argv[0] ));
|
4267
4267
|
}
|
4268
4268
|
arg1 = reinterpret_cast< double * >(argp1);
|
4269
4269
|
ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
|
4270
4270
|
if (!SWIG_IsOK(ecode2)) {
|
4271
4271
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","double_setitem", 2, argv[1] ));
|
4272
|
-
}
|
4272
|
+
}
|
4273
4273
|
arg2 = static_cast< size_t >(val2);
|
4274
4274
|
ecode3 = SWIG_AsVal_double(argv[2], &val3);
|
4275
4275
|
if (!SWIG_IsOK(ecode3)) {
|
4276
4276
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","double_setitem", 3, argv[2] ));
|
4277
|
-
}
|
4277
|
+
}
|
4278
4278
|
arg3 = static_cast< double >(val3);
|
4279
4279
|
double_setitem(arg1,arg2,arg3);
|
4280
4280
|
return Qnil;
|
@@ -4290,14 +4290,14 @@ _wrap_feature_node_array(int argc, VALUE *argv, VALUE self) {
|
|
4290
4290
|
int ecode1 = 0 ;
|
4291
4291
|
feature_node *result = 0 ;
|
4292
4292
|
VALUE vresult = Qnil;
|
4293
|
-
|
4293
|
+
|
4294
4294
|
if ((argc < 1) || (argc > 1)) {
|
4295
4295
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4296
4296
|
}
|
4297
4297
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4298
4298
|
if (!SWIG_IsOK(ecode1)) {
|
4299
4299
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","feature_node_array", 1, argv[0] ));
|
4300
|
-
}
|
4300
|
+
}
|
4301
4301
|
arg1 = static_cast< int >(val1);
|
4302
4302
|
result = (feature_node *)feature_node_array(arg1);
|
4303
4303
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_feature_node, 0 | 0 );
|
@@ -4321,29 +4321,29 @@ _wrap_feature_node_array_set(int argc, VALUE *argv, VALUE self) {
|
|
4321
4321
|
int ecode3 = 0 ;
|
4322
4322
|
double val4 ;
|
4323
4323
|
int ecode4 = 0 ;
|
4324
|
-
|
4324
|
+
|
4325
4325
|
if ((argc < 4) || (argc > 4)) {
|
4326
4326
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
4327
4327
|
}
|
4328
4328
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_feature_node, 0 | 0 );
|
4329
4329
|
if (!SWIG_IsOK(res1)) {
|
4330
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "feature_node *","feature_node_array_set", 1, argv[0] ));
|
4330
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "feature_node *","feature_node_array_set", 1, argv[0] ));
|
4331
4331
|
}
|
4332
4332
|
arg1 = reinterpret_cast< feature_node * >(argp1);
|
4333
4333
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4334
4334
|
if (!SWIG_IsOK(ecode2)) {
|
4335
4335
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","feature_node_array_set", 2, argv[1] ));
|
4336
|
-
}
|
4336
|
+
}
|
4337
4337
|
arg2 = static_cast< int >(val2);
|
4338
4338
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
4339
4339
|
if (!SWIG_IsOK(ecode3)) {
|
4340
4340
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","feature_node_array_set", 3, argv[2] ));
|
4341
|
-
}
|
4341
|
+
}
|
4342
4342
|
arg3 = static_cast< int >(val3);
|
4343
4343
|
ecode4 = SWIG_AsVal_double(argv[3], &val4);
|
4344
4344
|
if (!SWIG_IsOK(ecode4)) {
|
4345
4345
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","feature_node_array_set", 4, argv[3] ));
|
4346
|
-
}
|
4346
|
+
}
|
4347
4347
|
arg4 = static_cast< double >(val4);
|
4348
4348
|
feature_node_array_set(arg1,arg2,arg3,arg4);
|
4349
4349
|
return Qnil;
|
@@ -4357,13 +4357,13 @@ _wrap_feature_node_array_destroy(int argc, VALUE *argv, VALUE self) {
|
|
4357
4357
|
feature_node *arg1 = (feature_node *) 0 ;
|
4358
4358
|
void *argp1 = 0 ;
|
4359
4359
|
int res1 = 0 ;
|
4360
|
-
|
4360
|
+
|
4361
4361
|
if ((argc < 1) || (argc > 1)) {
|
4362
4362
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4363
4363
|
}
|
4364
4364
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_feature_node, 0 | 0 );
|
4365
4365
|
if (!SWIG_IsOK(res1)) {
|
4366
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "feature_node *","feature_node_array_destroy", 1, argv[0] ));
|
4366
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "feature_node *","feature_node_array_destroy", 1, argv[0] ));
|
4367
4367
|
}
|
4368
4368
|
arg1 = reinterpret_cast< feature_node * >(argp1);
|
4369
4369
|
feature_node_array_destroy(arg1);
|
@@ -4380,14 +4380,14 @@ _wrap_feature_node_matrix(int argc, VALUE *argv, VALUE self) {
|
|
4380
4380
|
int ecode1 = 0 ;
|
4381
4381
|
feature_node **result = 0 ;
|
4382
4382
|
VALUE vresult = Qnil;
|
4383
|
-
|
4383
|
+
|
4384
4384
|
if ((argc < 1) || (argc > 1)) {
|
4385
4385
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4386
4386
|
}
|
4387
4387
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4388
4388
|
if (!SWIG_IsOK(ecode1)) {
|
4389
4389
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","feature_node_matrix", 1, argv[0] ));
|
4390
|
-
}
|
4390
|
+
}
|
4391
4391
|
arg1 = static_cast< int >(val1);
|
4392
4392
|
result = (feature_node **)feature_node_matrix(arg1);
|
4393
4393
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_feature_node, 0 | 0 );
|
@@ -4408,23 +4408,23 @@ _wrap_feature_node_matrix_set(int argc, VALUE *argv, VALUE self) {
|
|
4408
4408
|
int ecode2 = 0 ;
|
4409
4409
|
void *argp3 = 0 ;
|
4410
4410
|
int res3 = 0 ;
|
4411
|
-
|
4411
|
+
|
4412
4412
|
if ((argc < 3) || (argc > 3)) {
|
4413
4413
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
4414
4414
|
}
|
4415
4415
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_p_feature_node, 0 | 0 );
|
4416
4416
|
if (!SWIG_IsOK(res1)) {
|
4417
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "feature_node **","feature_node_matrix_set", 1, argv[0] ));
|
4417
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "feature_node **","feature_node_matrix_set", 1, argv[0] ));
|
4418
4418
|
}
|
4419
4419
|
arg1 = reinterpret_cast< feature_node ** >(argp1);
|
4420
4420
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4421
4421
|
if (!SWIG_IsOK(ecode2)) {
|
4422
4422
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","feature_node_matrix_set", 2, argv[1] ));
|
4423
|
-
}
|
4423
|
+
}
|
4424
4424
|
arg2 = static_cast< int >(val2);
|
4425
4425
|
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_feature_node, 0 | 0 );
|
4426
4426
|
if (!SWIG_IsOK(res3)) {
|
4427
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "feature_node *","feature_node_matrix_set", 3, argv[2] ));
|
4427
|
+
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "feature_node *","feature_node_matrix_set", 3, argv[2] ));
|
4428
4428
|
}
|
4429
4429
|
arg3 = reinterpret_cast< feature_node * >(argp3);
|
4430
4430
|
feature_node_matrix_set(arg1,arg2,arg3);
|
@@ -4439,13 +4439,13 @@ _wrap_feature_node_matrix_destroy(int argc, VALUE *argv, VALUE self) {
|
|
4439
4439
|
feature_node **arg1 = (feature_node **) 0 ;
|
4440
4440
|
void *argp1 = 0 ;
|
4441
4441
|
int res1 = 0 ;
|
4442
|
-
|
4442
|
+
|
4443
4443
|
if ((argc < 1) || (argc > 1)) {
|
4444
4444
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4445
4445
|
}
|
4446
4446
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_p_feature_node, 0 | 0 );
|
4447
4447
|
if (!SWIG_IsOK(res1)) {
|
4448
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "feature_node **","feature_node_matrix_destroy", 1, argv[0] ));
|
4448
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "feature_node **","feature_node_matrix_destroy", 1, argv[0] ));
|
4449
4449
|
}
|
4450
4450
|
arg1 = reinterpret_cast< feature_node ** >(argp1);
|
4451
4451
|
feature_node_matrix_destroy(arg1);
|
@@ -4461,7 +4461,7 @@ _wrap_print_string_stdout(int argc, VALUE *argv, VALUE self) {
|
|
4461
4461
|
int res1 ;
|
4462
4462
|
char *buf1 = 0 ;
|
4463
4463
|
int alloc1 = 0 ;
|
4464
|
-
|
4464
|
+
|
4465
4465
|
if ((argc < 1) || (argc > 1)) {
|
4466
4466
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4467
4467
|
}
|
@@ -4485,7 +4485,7 @@ _wrap_print_null(int argc, VALUE *argv, VALUE self) {
|
|
4485
4485
|
int res1 ;
|
4486
4486
|
char *buf1 = 0 ;
|
4487
4487
|
int alloc1 = 0 ;
|
4488
|
-
|
4488
|
+
|
4489
4489
|
if ((argc < 1) || (argc > 1)) {
|
4490
4490
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4491
4491
|
}
|
@@ -4583,18 +4583,18 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
4583
4583
|
|
4584
4584
|
/* -----------------------------------------------------------------------------
|
4585
4585
|
* Type initialization:
|
4586
|
-
* This problem is tough by the requirement that no dynamic
|
4587
|
-
* memory is used. Also, since swig_type_info structures store pointers to
|
4586
|
+
* This problem is tough by the requirement that no dynamic
|
4587
|
+
* memory is used. Also, since swig_type_info structures store pointers to
|
4588
4588
|
* swig_cast_info structures and swig_cast_info structures store pointers back
|
4589
|
-
* to swig_type_info structures, we need some lookup code at initialization.
|
4590
|
-
* The idea is that swig generates all the structures that are needed.
|
4591
|
-
* The runtime then collects these partially filled structures.
|
4592
|
-
* The SWIG_InitializeModule function takes these initial arrays out of
|
4589
|
+
* to swig_type_info structures, we need some lookup code at initialization.
|
4590
|
+
* The idea is that swig generates all the structures that are needed.
|
4591
|
+
* The runtime then collects these partially filled structures.
|
4592
|
+
* The SWIG_InitializeModule function takes these initial arrays out of
|
4593
4593
|
* swig_module, and does all the lookup, filling in the swig_module.types
|
4594
4594
|
* array with the correct data and linking the correct swig_cast_info
|
4595
4595
|
* structures together.
|
4596
4596
|
*
|
4597
|
-
* The generated swig_type_info structures are assigned staticly to an initial
|
4597
|
+
* The generated swig_type_info structures are assigned staticly to an initial
|
4598
4598
|
* array. We just loop through that array, and handle each type individually.
|
4599
4599
|
* First we lookup if this type has been already loaded, and if so, use the
|
4600
4600
|
* loaded structure instead of the generated one. Then we have to fill in the
|
@@ -4604,17 +4604,17 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
4604
4604
|
* a column is one of the swig_cast_info structures for that type.
|
4605
4605
|
* The cast_initial array is actually an array of arrays, because each row has
|
4606
4606
|
* a variable number of columns. So to actually build the cast linked list,
|
4607
|
-
* we find the array of casts associated with the type, and loop through it
|
4607
|
+
* we find the array of casts associated with the type, and loop through it
|
4608
4608
|
* adding the casts to the list. The one last trick we need to do is making
|
4609
4609
|
* sure the type pointer in the swig_cast_info struct is correct.
|
4610
4610
|
*
|
4611
|
-
* First off, we lookup the cast->type name to see if it is already loaded.
|
4611
|
+
* First off, we lookup the cast->type name to see if it is already loaded.
|
4612
4612
|
* There are three cases to handle:
|
4613
4613
|
* 1) If the cast->type has already been loaded AND the type we are adding
|
4614
4614
|
* casting info to has not been loaded (it is in this module), THEN we
|
4615
4615
|
* replace the cast->type pointer with the type pointer that has already
|
4616
4616
|
* been loaded.
|
4617
|
-
* 2) If BOTH types (the one we are adding casting info to, and the
|
4617
|
+
* 2) If BOTH types (the one we are adding casting info to, and the
|
4618
4618
|
* cast->type) are loaded, THEN the cast info has already been loaded by
|
4619
4619
|
* the previous module so we just ignore it.
|
4620
4620
|
* 3) Finally, if cast->type has not already been loaded, then we add that
|
@@ -4693,7 +4693,7 @@ SWIG_InitializeModule(void *clientdata) {
|
|
4693
4693
|
swig_type_info *type = 0;
|
4694
4694
|
swig_type_info *ret;
|
4695
4695
|
swig_cast_info *cast;
|
4696
|
-
|
4696
|
+
|
4697
4697
|
#ifdef SWIGRUNTIME_DEBUG
|
4698
4698
|
printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
|
4699
4699
|
#endif
|
@@ -4720,7 +4720,7 @@ SWIG_InitializeModule(void *clientdata) {
|
|
4720
4720
|
/* Insert casting types */
|
4721
4721
|
cast = swig_module.cast_initial[i];
|
4722
4722
|
while (cast->type) {
|
4723
|
-
|
4723
|
+
|
4724
4724
|
/* Don't need to add information already in the list */
|
4725
4725
|
ret = 0;
|
4726
4726
|
#ifdef SWIGRUNTIME_DEBUG
|
@@ -4826,17 +4826,17 @@ extern "C"
|
|
4826
4826
|
#endif
|
4827
4827
|
SWIGEXPORT void Init_liblinearswig(void) {
|
4828
4828
|
size_t i;
|
4829
|
-
|
4829
|
+
|
4830
4830
|
SWIG_InitRuntime();
|
4831
4831
|
mLiblinearswig = rb_define_module("Liblinearswig");
|
4832
|
-
|
4832
|
+
|
4833
4833
|
SWIG_InitializeModule(0);
|
4834
4834
|
for (i = 0; i < swig_module.size; i++) {
|
4835
4835
|
SWIG_define_class(swig_module.types[i]);
|
4836
4836
|
}
|
4837
|
-
|
4837
|
+
|
4838
4838
|
SWIG_RubyInitializeTrackings();
|
4839
|
-
|
4839
|
+
|
4840
4840
|
SwigClassFeature_node.klass = rb_define_class_under(mLiblinearswig, "Feature_node", rb_cObject);
|
4841
4841
|
SWIG_TypeClientData(SWIGTYPE_p_feature_node, (void *) &SwigClassFeature_node);
|
4842
4842
|
rb_define_alloc_func(SwigClassFeature_node.klass, _wrap_feature_node_allocate);
|
@@ -4848,7 +4848,7 @@ SWIGEXPORT void Init_liblinearswig(void) {
|
|
4848
4848
|
SwigClassFeature_node.mark = 0;
|
4849
4849
|
SwigClassFeature_node.destroy = (void (*)(void *)) free_feature_node;
|
4850
4850
|
SwigClassFeature_node.trackObjects = 0;
|
4851
|
-
|
4851
|
+
|
4852
4852
|
SwigClassProblem.klass = rb_define_class_under(mLiblinearswig, "Problem", rb_cObject);
|
4853
4853
|
SWIG_TypeClientData(SWIGTYPE_p_problem, (void *) &SwigClassProblem);
|
4854
4854
|
rb_define_alloc_func(SwigClassProblem.klass, _wrap_problem_allocate);
|
@@ -4877,6 +4877,7 @@ SWIGEXPORT void Init_liblinearswig(void) {
|
|
4877
4877
|
rb_define_const(mLiblinearswig, "L2R_L2LOSS_SVR", SWIG_From_int(static_cast< int >(L2R_L2LOSS_SVR)));
|
4878
4878
|
rb_define_const(mLiblinearswig, "L2R_L2LOSS_SVR_DUAL", SWIG_From_int(static_cast< int >(L2R_L2LOSS_SVR_DUAL)));
|
4879
4879
|
rb_define_const(mLiblinearswig, "L2R_L1LOSS_SVR_DUAL", SWIG_From_int(static_cast< int >(L2R_L1LOSS_SVR_DUAL)));
|
4880
|
+
rb_define_const(mLiblinearswig, "LIBLINEAR_VERSION", SWIG_From_int(static_cast< int >(LIBLINEAR_VERSION)));
|
4880
4881
|
|
4881
4882
|
SwigClassParameter.klass = rb_define_class_under(mLiblinearswig, "Parameter", rb_cObject);
|
4882
4883
|
SWIG_TypeClientData(SWIGTYPE_p_parameter, (void *) &SwigClassParameter);
|
@@ -4901,7 +4902,7 @@ SWIGEXPORT void Init_liblinearswig(void) {
|
|
4901
4902
|
SwigClassParameter.mark = 0;
|
4902
4903
|
SwigClassParameter.destroy = (void (*)(void *)) free_parameter;
|
4903
4904
|
SwigClassParameter.trackObjects = 0;
|
4904
|
-
|
4905
|
+
|
4905
4906
|
SwigClassModel.klass = rb_define_class_under(mLiblinearswig, "Model", rb_cObject);
|
4906
4907
|
SWIG_TypeClientData(SWIGTYPE_p_model, (void *) &SwigClassModel);
|
4907
4908
|
rb_define_alloc_func(SwigClassModel.klass, _wrap_model_allocate);
|
@@ -4960,4 +4961,3 @@ SWIGEXPORT void Init_liblinearswig(void) {
|
|
4960
4961
|
rb_define_module_function(mLiblinearswig, "enable_stdout", VALUEFUNC(_wrap_enable_stdout), -1);
|
4961
4962
|
rb_define_module_function(mLiblinearswig, "disable_stdout", VALUEFUNC(_wrap_disable_stdout), -1);
|
4962
4963
|
}
|
4963
|
-
|