gsl-nmatrix 1.15.3.1 → 1.15.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +5 -0
- data/VERSION +1 -1
- data/ext/fft.c +4 -4
- data/ext/porting.h +25 -0
- data/ext/wavelet.c +6 -6
- data/gsl.gemspec +1 -1
- metadata +9 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0dca883ff7ceb319a18bcbfbb6a819f416b2b44c
|
4
|
+
data.tar.gz: d441687dadfcdf98abe7da7ad1428ba807ca5044
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9c39fb7329ac385334f93824d0757e92695087c0d7ba301db565c8abbac473b08fe5d47fb432608acb64da2b3f9509db83744869d805fe98118b847593026f2
|
7
|
+
data.tar.gz: 281f387bd3bf7f59fa6f4534f491bcbe8915fe860a29fdf8206623d968ae85ac69627c0bf9979ac57e4214393beb114bbb3bb2b3603f7cd281f8cbc6df1d5376
|
data/.gitignore
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.15.3.
|
1
|
+
1.15.3.2
|
data/ext/fft.c
CHANGED
@@ -907,10 +907,10 @@ void Init_gsl_fft(VALUE module)
|
|
907
907
|
|
908
908
|
/*****/
|
909
909
|
|
910
|
-
rb_define_const(mgsl_fft, "Forward", INT2FIX(
|
911
|
-
rb_define_const(mgsl_fft, "FORWARD", INT2FIX(
|
912
|
-
rb_define_const(mgsl_fft, "Backward", INT2FIX(
|
913
|
-
rb_define_const(mgsl_fft, "BACKWARD", INT2FIX(
|
910
|
+
rb_define_const(mgsl_fft, "Forward", INT2FIX(gsl_fft_forward));
|
911
|
+
rb_define_const(mgsl_fft, "FORWARD", INT2FIX(gsl_fft_forward));
|
912
|
+
rb_define_const(mgsl_fft, "Backward", INT2FIX(gsl_fft_backward));
|
913
|
+
rb_define_const(mgsl_fft, "BACKWARD", INT2FIX(gsl_fft_backward));
|
914
914
|
|
915
915
|
/* Transforms for complex vectors */
|
916
916
|
rb_define_method(cgsl_vector_complex, "radix2_forward",
|
data/ext/porting.h
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
/*
|
2
|
+
porting.h
|
3
|
+
Ruby/GSL: Ruby extension library for GSL (GNU Scientific Library)
|
4
|
+
(C) Copyright 2001-2004 by Yoshiki Tsunesada
|
5
|
+
|
6
|
+
Ruby/GSL is free software: you can redistribute it and/or modify it
|
7
|
+
under the terms of the GNU General Public License.
|
8
|
+
This library is distributed in the hope that it will be useful, but
|
9
|
+
WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
MERCHANTABILITY or POLYNESS FOR A PARTICULAR PURPOSE.
|
11
|
+
*/
|
12
|
+
|
13
|
+
#ifndef ___RB_GSL_PORTING_H___
|
14
|
+
#define ___RB_GSL_PORTING_H___
|
15
|
+
|
16
|
+
#include "ruby.h"
|
17
|
+
|
18
|
+
#if RUBY_API_VERSION_MAJOR > 2 || (RUBY_API_VERSION_MAJOR == 2 && RUBY_API_VERSION_MINOR >= 1)
|
19
|
+
// Ruby < v2.1
|
20
|
+
|
21
|
+
#define rb_obj_reveal(instance, klass_value) RBASIC(instance)->klass = klass_value
|
22
|
+
|
23
|
+
#endif // Ruby < v2.1
|
24
|
+
|
25
|
+
#endif
|
data/ext/wavelet.c
CHANGED
@@ -152,10 +152,10 @@ static void rb_gsl_wavelet_define_const(VALUE klass)
|
|
152
152
|
rb_define_const(klass, "BSPLINE", INT2FIX(GSL_WAVELET_BSPLINE));
|
153
153
|
rb_define_const(klass, "BSPLINE_CENTERED", INT2FIX(GSL_WAVELET_BSPLINE_CENTERED));
|
154
154
|
/*****/
|
155
|
-
rb_define_const(klass, "FORWARD", INT2FIX(
|
156
|
-
rb_define_const(klass, "Forward", INT2FIX(
|
157
|
-
rb_define_const(klass, "BACKWARD", INT2FIX(
|
158
|
-
rb_define_const(klass, "Backward", INT2FIX(
|
155
|
+
rb_define_const(klass, "FORWARD", INT2FIX(gsl_wavelet_forward));
|
156
|
+
rb_define_const(klass, "Forward", INT2FIX(gsl_wavelet_forward));
|
157
|
+
rb_define_const(klass, "BACKWARD", INT2FIX(gsl_wavelet_backward));
|
158
|
+
rb_define_const(klass, "Backward", INT2FIX(gsl_wavelet_backward));
|
159
159
|
}
|
160
160
|
|
161
161
|
static VALUE rb_gsl_wavelet_name(VALUE ww)
|
@@ -191,7 +191,7 @@ static VALUE rb_gsl_wavelet_transform0(int argc, VALUE *argv, VALUE obj,
|
|
191
191
|
{
|
192
192
|
gsl_wavelet *w = NULL;
|
193
193
|
gsl_vector *v = NULL, *vnew;
|
194
|
-
gsl_wavelet_direction dir =
|
194
|
+
gsl_wavelet_direction dir = gsl_wavelet_forward;
|
195
195
|
gsl_wavelet_workspace *work = NULL;
|
196
196
|
int itmp, flag = 0;
|
197
197
|
// local variable "status" declared and set, but never used
|
@@ -531,7 +531,7 @@ static VALUE rb_gsl_wavelet2d(int argc, VALUE *argv, VALUE obj,
|
|
531
531
|
{
|
532
532
|
gsl_wavelet *w = NULL;
|
533
533
|
gsl_matrix *m = NULL, *mnew;
|
534
|
-
gsl_wavelet_direction dir =
|
534
|
+
gsl_wavelet_direction dir = gsl_wavelet_forward;
|
535
535
|
gsl_wavelet_workspace *work = NULL;
|
536
536
|
VALUE ary, ret;
|
537
537
|
int itmp, flag = 0;
|
data/gsl.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gsl-nmatrix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.15.3.
|
4
|
+
version: 1.15.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshiki Tsunesada
|
@@ -11,12 +11,15 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2014-
|
14
|
+
date: 2014-09-14 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: nmatrix
|
18
18
|
requirement: !ruby/object:Gem::Requirement
|
19
19
|
requirements:
|
20
|
+
- - "~>"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.1.rc1
|
20
23
|
- - ">="
|
21
24
|
- !ruby/object:Gem::Version
|
22
25
|
version: 0.1.0.rc5
|
@@ -24,6 +27,9 @@ dependencies:
|
|
24
27
|
prerelease: false
|
25
28
|
version_requirements: !ruby/object:Gem::Requirement
|
26
29
|
requirements:
|
30
|
+
- - "~>"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.1.rc1
|
27
33
|
- - ">="
|
28
34
|
- !ruby/object:Gem::Version
|
29
35
|
version: 0.1.0.rc5
|
@@ -465,6 +471,7 @@ files:
|
|
465
471
|
- ext/poly.c
|
466
472
|
- ext/poly2.c
|
467
473
|
- ext/poly_source.c
|
474
|
+
- ext/porting.h
|
468
475
|
- ext/qrng.c
|
469
476
|
- ext/randist.c
|
470
477
|
- ext/rational.c
|