gsl-nmatrix 1.15.3.1 → 1.15.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b43626870a83e8a7e0a04eab2af96b707a851b8f
4
- data.tar.gz: ff6e9590f00392fd65f76842b5a9543967d83749
3
+ metadata.gz: 0dca883ff7ceb319a18bcbfbb6a819f416b2b44c
4
+ data.tar.gz: d441687dadfcdf98abe7da7ad1428ba807ca5044
5
5
  SHA512:
6
- metadata.gz: cec8f3f95384e69c663b7cedd7af90069c8a5d398f372f0c298fe83de4ffd5ad98d65cf7be8564d6cc5d206aa05b8b5cd99bcae9b37f6424ab40be3aa14428d7
7
- data.tar.gz: 800da140e98f0a93786e16855123441e029af93ca2b823c95ffea316e24cc66a65d936c6f6733610b02d20ac0a70b24f3dfb1462259d5a3ab92a521851a5c3e1
6
+ metadata.gz: f9c39fb7329ac385334f93824d0757e92695087c0d7ba301db565c8abbac473b08fe5d47fb432608acb64da2b3f9509db83744869d805fe98118b847593026f2
7
+ data.tar.gz: 281f387bd3bf7f59fa6f4534f491bcbe8915fe860a29fdf8206623d968ae85ac69627c0bf9979ac57e4214393beb114bbb3bb2b3603f7cd281f8cbc6df1d5376
data/.gitignore CHANGED
@@ -12,3 +12,8 @@ include/rb_gsl_config.h
12
12
  lib/gsl.rb
13
13
  lib/rbgsl.rb
14
14
  pkg/
15
+ .config
16
+ InstalledFiles
17
+
18
+ # Remove this ignore if contributors are having trouble matching dependency versions:
19
+ Gemfile.lock
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.15.3.1
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(forward));
911
- rb_define_const(mgsl_fft, "FORWARD", INT2FIX(forward));
912
- rb_define_const(mgsl_fft, "Backward", INT2FIX(backward));
913
- rb_define_const(mgsl_fft, "BACKWARD", INT2FIX(backward));
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",
@@ -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
@@ -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(forward));
156
- rb_define_const(klass, "Forward", INT2FIX(forward));
157
- rb_define_const(klass, "BACKWARD", INT2FIX(backward));
158
- rb_define_const(klass, "Backward", INT2FIX(backward));
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 = forward;
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 = forward;
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;
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
 
18
18
  gem.required_ruby_version = '>= 1.8.1'
19
19
 
20
- gem.add_dependency 'nmatrix', '>=0.1.0.rc5'
20
+ gem.add_dependency 'nmatrix', '~>0.1.rc1', '>=0.1.0.rc5'
21
21
 
22
22
  gem.has_rdoc = true
23
23
  gem.rdoc_options = [
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.1
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-08-01 00:00:00.000000000 Z
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