rb-gsl 1.16.0 → 1.16.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. checksums.yaml +4 -4
  2. data/ChangeLog +6 -0
  3. data/README +11 -15
  4. data/Rakefile +6 -10
  5. data/ext/{alf.c → gsl/alf.c} +1 -1
  6. data/ext/{array.c → gsl/array.c} +4 -6
  7. data/ext/{array_complex.c → gsl/array_complex.c} +2 -3
  8. data/ext/{blas.c → gsl/blas.c} +2 -3
  9. data/ext/{blas1.c → gsl/blas1.c} +3 -4
  10. data/ext/{blas2.c → gsl/blas2.c} +3 -4
  11. data/ext/{blas3.c → gsl/blas3.c} +3 -4
  12. data/ext/{block.c → gsl/block.c} +11 -12
  13. data/ext/{block_source.c → gsl/block_source.c} +0 -0
  14. data/ext/{bspline.c → gsl/bspline.c} +1 -1
  15. data/ext/{bundle.c → gsl/bundle.c} +0 -0
  16. data/ext/{cdf.c → gsl/cdf.c} +3 -5
  17. data/ext/{cheb.c → gsl/cheb.c} +4 -4
  18. data/ext/{combination.c → gsl/combination.c} +2 -3
  19. data/ext/{common.c → gsl/common.c} +8 -10
  20. data/ext/{complex.c → gsl/complex.c} +3 -3
  21. data/ext/{const.c → gsl/const.c} +2 -3
  22. data/ext/{const_additional.c → gsl/const_additional.c} +2 -2
  23. data/ext/{cqp.c → gsl/cqp.c} +1 -1
  24. data/ext/{deriv.c → gsl/deriv.c} +3 -3
  25. data/ext/{dht.c → gsl/dht.c} +3 -3
  26. data/ext/{diff.c → gsl/diff.c} +3 -3
  27. data/ext/{dirac.c → gsl/dirac.c} +1 -1
  28. data/ext/{eigen.c → gsl/eigen.c} +16 -16
  29. data/ext/{error.c → gsl/error.c} +5 -5
  30. data/ext/gsl/extconf.rb +121 -0
  31. data/ext/{fcmp.c → gsl/fcmp.c} +0 -2
  32. data/ext/{fft.c → gsl/fft.c} +1 -2
  33. data/ext/{fit.c → gsl/fit.c} +1 -2
  34. data/ext/{fresnel.c → gsl/fresnel.c} +2 -2
  35. data/ext/{function.c → gsl/function.c} +3 -3
  36. data/ext/{geometry.c → gsl/geometry.c} +1 -1
  37. data/ext/{graph.c → gsl/graph.c} +2 -2
  38. data/ext/{gsl.c → gsl/gsl.c} +2 -10
  39. data/ext/{gsl_narray.c → gsl/gsl_narray.c} +2 -3
  40. data/ext/{histogram.c → gsl/histogram.c} +3 -4
  41. data/ext/{histogram2d.c → gsl/histogram2d.c} +3 -4
  42. data/ext/{histogram3d.c → gsl/histogram3d.c} +4 -4
  43. data/ext/{histogram3d_source.c → gsl/histogram3d_source.c} +1 -1
  44. data/ext/{histogram_find.c → gsl/histogram_find.c} +1 -1
  45. data/ext/{histogram_oper.c → gsl/histogram_oper.c} +0 -0
  46. data/ext/{ieee.c → gsl/ieee.c} +4 -8
  47. data/{include → ext/gsl/include}/rb_gsl.h +4 -19
  48. data/{include → ext/gsl/include}/rb_gsl_array.h +0 -14
  49. data/{include → ext/gsl/include}/rb_gsl_cheb.h +0 -2
  50. data/{include → ext/gsl/include}/rb_gsl_common.h +11 -15
  51. data/{include → ext/gsl/include}/rb_gsl_complex.h +1 -1
  52. data/{include → ext/gsl/include}/rb_gsl_const.h +1 -2
  53. data/ext/gsl/include/rb_gsl_dirac.h +6 -0
  54. data/{include → ext/gsl/include}/rb_gsl_eigen.h +1 -1
  55. data/{include → ext/gsl/include}/rb_gsl_fft.h +0 -10
  56. data/{include → ext/gsl/include}/rb_gsl_fit.h +0 -2
  57. data/{include → ext/gsl/include}/rb_gsl_function.h +0 -4
  58. data/{include → ext/gsl/include}/rb_gsl_graph.h +0 -2
  59. data/{include → ext/gsl/include}/rb_gsl_histogram.h +0 -0
  60. data/{include → ext/gsl/include}/rb_gsl_histogram3d.h +0 -0
  61. data/{include → ext/gsl/include}/rb_gsl_integration.h +1 -1
  62. data/{include → ext/gsl/include}/rb_gsl_interp.h +0 -5
  63. data/{include → ext/gsl/include}/rb_gsl_linalg.h +2 -5
  64. data/{include → ext/gsl/include}/rb_gsl_math.h +0 -2
  65. data/{include → ext/gsl/include}/rb_gsl_odeiv.h +0 -3
  66. data/{include → ext/gsl/include}/rb_gsl_poly.h +0 -4
  67. data/{include → ext/gsl/include}/rb_gsl_rational.h +0 -7
  68. data/{include → ext/gsl/include}/rb_gsl_rng.h +0 -1
  69. data/{include → ext/gsl/include}/rb_gsl_root.h +1 -1
  70. data/{include → ext/gsl/include}/rb_gsl_sf.h +0 -5
  71. data/{include → ext/gsl/include}/rb_gsl_statistics.h +1 -1
  72. data/{include → ext/gsl/include}/rb_gsl_tensor.h +0 -2
  73. data/{include → ext/gsl/include}/rb_gsl_with_narray.h +3 -1
  74. data/{include → ext/gsl/include}/templates_off.h +0 -0
  75. data/{include → ext/gsl/include}/templates_on.h +0 -0
  76. data/ext/{integration.c → gsl/integration.c} +4 -6
  77. data/ext/{interp.c → gsl/interp.c} +1 -6
  78. data/ext/{jacobi.c → gsl/jacobi.c} +1 -1
  79. data/ext/{linalg.c → gsl/linalg.c} +3 -4
  80. data/ext/{linalg_complex.c → gsl/linalg_complex.c} +3 -4
  81. data/ext/{math.c → gsl/math.c} +2 -3
  82. data/ext/{matrix.c → gsl/matrix.c} +9 -10
  83. data/ext/{matrix_complex.c → gsl/matrix_complex.c} +2 -3
  84. data/ext/{matrix_double.c → gsl/matrix_double.c} +5 -5
  85. data/ext/{matrix_int.c → gsl/matrix_int.c} +4 -4
  86. data/ext/{matrix_source.c → gsl/matrix_source.c} +2 -6
  87. data/ext/{min.c → gsl/min.c} +2 -2
  88. data/ext/{monte.c → gsl/monte.c} +3 -3
  89. data/ext/{multifit.c → gsl/multifit.c} +4 -4
  90. data/ext/{multimin.c → gsl/multimin.c} +5 -5
  91. data/ext/{multimin_fsdf.c → gsl/multimin_fsdf.c} +1 -1
  92. data/ext/{multiroots.c → gsl/multiroots.c} +6 -6
  93. data/ext/{multiset.c → gsl/multiset.c} +1 -1
  94. data/ext/{ndlinear.c → gsl/ndlinear.c} +1 -1
  95. data/ext/{nmf.c → gsl/nmf.c} +0 -0
  96. data/ext/{nmf_wrap.c → gsl/nmf_wrap.c} +0 -0
  97. data/ext/{ntuple.c → gsl/ntuple.c} +6 -6
  98. data/ext/{odeiv.c → gsl/odeiv.c} +4 -8
  99. data/ext/{ool.c → gsl/ool.c} +2 -2
  100. data/ext/{oper_complex_source.c → gsl/oper_complex_source.c} +2 -4
  101. data/ext/{permutation.c → gsl/permutation.c} +2 -2
  102. data/ext/{poly.c → gsl/poly.c} +8 -8
  103. data/ext/{poly2.c → gsl/poly2.c} +4 -4
  104. data/ext/{poly_source.c → gsl/poly_source.c} +7 -11
  105. data/ext/{qrng.c → gsl/qrng.c} +3 -3
  106. data/ext/{randist.c → gsl/randist.c} +4 -4
  107. data/ext/{rational.c → gsl/rational.c} +3 -3
  108. data/ext/{rng.c → gsl/rng.c} +1 -2
  109. data/ext/{root.c → gsl/root.c} +4 -5
  110. data/ext/{sf.c → gsl/sf.c} +2 -2
  111. data/ext/{sf_airy.c → gsl/sf_airy.c} +2 -2
  112. data/ext/{sf_bessel.c → gsl/sf_bessel.c} +1 -1
  113. data/ext/{sf_clausen.c → gsl/sf_clausen.c} +1 -1
  114. data/ext/{sf_coulomb.c → gsl/sf_coulomb.c} +1 -1
  115. data/ext/{sf_coupling.c → gsl/sf_coupling.c} +1 -1
  116. data/ext/{sf_dawson.c → gsl/sf_dawson.c} +1 -1
  117. data/ext/{sf_debye.c → gsl/sf_debye.c} +1 -1
  118. data/ext/{sf_dilog.c → gsl/sf_dilog.c} +1 -1
  119. data/ext/{sf_elementary.c → gsl/sf_elementary.c} +1 -1
  120. data/ext/{sf_ellint.c → gsl/sf_ellint.c} +1 -1
  121. data/ext/{sf_elljac.c → gsl/sf_elljac.c} +1 -1
  122. data/ext/{sf_erfc.c → gsl/sf_erfc.c} +1 -1
  123. data/ext/{sf_exp.c → gsl/sf_exp.c} +1 -1
  124. data/ext/{sf_expint.c → gsl/sf_expint.c} +1 -1
  125. data/ext/{sf_fermi_dirac.c → gsl/sf_fermi_dirac.c} +1 -1
  126. data/ext/{sf_gamma.c → gsl/sf_gamma.c} +1 -1
  127. data/ext/{sf_gegenbauer.c → gsl/sf_gegenbauer.c} +1 -1
  128. data/ext/{sf_hyperg.c → gsl/sf_hyperg.c} +1 -1
  129. data/ext/{sf_laguerre.c → gsl/sf_laguerre.c} +1 -1
  130. data/ext/{sf_lambert.c → gsl/sf_lambert.c} +1 -1
  131. data/ext/{sf_legendre.c → gsl/sf_legendre.c} +1 -1
  132. data/ext/{sf_log.c → gsl/sf_log.c} +1 -1
  133. data/ext/{sf_mathieu.c → gsl/sf_mathieu.c} +1 -1
  134. data/ext/{sf_power.c → gsl/sf_power.c} +1 -1
  135. data/ext/{sf_psi.c → gsl/sf_psi.c} +1 -1
  136. data/ext/{sf_synchrotron.c → gsl/sf_synchrotron.c} +1 -1
  137. data/ext/{sf_transport.c → gsl/sf_transport.c} +1 -1
  138. data/ext/{sf_trigonometric.c → gsl/sf_trigonometric.c} +1 -1
  139. data/ext/{sf_zeta.c → gsl/sf_zeta.c} +1 -1
  140. data/ext/{signal.c → gsl/signal.c} +2 -3
  141. data/ext/{siman.c → gsl/siman.c} +9 -9
  142. data/ext/{sort.c → gsl/sort.c} +4 -4
  143. data/ext/{spline.c → gsl/spline.c} +3 -3
  144. data/ext/{stats.c → gsl/stats.c} +3 -3
  145. data/ext/{sum.c → gsl/sum.c} +2 -2
  146. data/ext/{tamu_anova.c → gsl/tamu_anova.c} +1 -1
  147. data/ext/{tensor.c → gsl/tensor.c} +6 -7
  148. data/ext/{tensor_source.c → gsl/tensor_source.c} +3 -4
  149. data/ext/{vector.c → gsl/vector.c} +9 -10
  150. data/ext/{vector_complex.c → gsl/vector_complex.c} +3 -3
  151. data/ext/{vector_double.c → gsl/vector_double.c} +5 -6
  152. data/ext/{vector_int.c → gsl/vector_int.c} +4 -4
  153. data/ext/{vector_source.c → gsl/vector_source.c} +1 -5
  154. data/ext/{wavelet.c → gsl/wavelet.c} +3 -4
  155. data/lib/gsl.rb +13 -3
  156. data/lib/gsl/gnuplot.rb +1 -1
  157. data/lib/gsl/version.rb +5 -0
  158. data/lib/rbgsl.rb +1 -3
  159. data/rdoc/index.rdoc +0 -9
  160. metadata +199 -160
  161. data/VERSION +0 -1
  162. data/ext/extconf.rb +0 -309
  163. data/include/rb_gsl_config.h +0 -71
  164. data/include/rb_gsl_dirac.h +0 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 390f296a40336202ec7753c5a6fb0d7297f38d8f
4
- data.tar.gz: 6a416565afd532aa2dc4283e66b6318dc22b7a82
3
+ metadata.gz: 3baea03d526d67dd34354f8c5247ca9f322f1ebe
4
+ data.tar.gz: 9bb134da00e571869b96733c7da83c11283c1249
5
5
  SHA512:
6
- metadata.gz: 3205453428edcb4b7887861b7c489005cb6f0f77662d30f5b683ce3b71d13a2c41fc930aefc66f041b815cecf9bd84946b692d7fa0ba5f530b11426a69cfe4b7
7
- data.tar.gz: f4fb5ea3bf5325179f10fc139de01958cc2af2de5e244a49e048551c74b63d7d594031460155f38181136c267afc25d38ff9a99532f045e4547ea9f5b6cc2278
6
+ metadata.gz: f10075bbb641ff8048087e0eb61d84b810f105ae2594dddf960fe81592cb98aff8b8d81f15376fc6f87a15005ecd875652a102faa396cf5bea2658f58c9dd3c4
7
+ data.tar.gz: 13da69c705a085b5f66c847771727c03f3e24eedb36ade6b11c033e207147ae218ee0be7b8b19f84b2f82c0ee152705845d25da35a0716836a1d70f687cdc549
data/ChangeLog CHANGED
@@ -1,3 +1,9 @@
1
+ Thu Apr 24 16:35:40 CET 2014
2
+ * Ruby/GSL 1.16.0.1
3
+ * Extensive cleanup.
4
+ * Fixed linking problems.
5
+ * Required Ruby version >= 1.8.7.
6
+
1
7
  Fri Jan 24 14:46:30 CET 2014
2
8
  * Ruby/GSL 1.16.0
3
9
  * GSL-1.16 support.
data/README CHANGED
@@ -1,32 +1,28 @@
1
- =begin
2
1
  == Description
2
+
3
3
  Ruby/GSL, a ruby interface to GSL (GNU Scientific library)
4
4
 
5
5
  == Installation
6
- (0) Make sure the command "gsl-config" is in search path.
7
- (1) % ruby setup.rb config
8
- (2) % ruby setup.rb setup
9
- (3) % ruby setup.rb install (as root)
10
6
 
11
- See also html/index.html.
7
+ See http://blackwinter.github.io/rb-gsl/.
12
8
 
13
9
  == Reference
14
10
 
15
- See ((<URL:http://rb-gsl.rubyforge.org/ref.html>)).
11
+ See http://blackwinter.github.io/rb-gsl/rdoc/ref_rdoc.
16
12
 
17
13
  == Licence
14
+
18
15
  Ruby/GSL is free software: you can redistribute it and/or modify it
19
16
  under the terms of the GNU General Public License.
20
17
  This library is distributed in the hope that it will be useful, but
21
18
  WITHOUT ANY WARRANTY.
22
19
 
23
- == Bug Report
24
- Any bug reports are welcome.
25
- If you encounter bugs in Ruby/GSL, please e-mail to me, or
26
- submit reports from http://rubyforge.org/projects/rb-gsl/.
20
+ == Bug Reports
21
+
22
+ Any bug reports are welcome. If you encounter bugs in Ruby/GSL, please
23
+ report them on GitHub: https://github.com/blackwinter/rb-gsl/issues.
27
24
 
28
- == Author
29
- Yoshiki Tsunesada
30
- y-tsunesada at mm dot em-net dot ne dot jp
25
+ == Authors
31
26
 
32
- =end
27
+ * Yoshiki Tsunesada <y-tsunesada at mm dot em-net dot ne dot jp> (Original author)
28
+ * Jens Wille <mailto:jens.wille@gmail.com>
data/Rakefile CHANGED
@@ -1,4 +1,4 @@
1
- RB_GSL_VERSION = File.readlines('VERSION')[0].chomp
1
+ require File.expand_path(%q{../lib/gsl/version}, __FILE__)
2
2
 
3
3
  begin
4
4
  require 'hen'
@@ -8,7 +8,7 @@ begin
8
8
  Hen.lay! {{
9
9
  :gem => {
10
10
  :name => %q{rb-gsl},
11
- :version => RB_GSL_VERSION,
11
+ :version => GSL::RB_GSL_VERSION,
12
12
  :summary => %Q{Ruby interface to the GNU Scientific Library #{note}},
13
13
  :description => %Q{Ruby/GSL is a Ruby interface to the GNU Scientific Library, for numerical computing with Ruby #{note}},
14
14
  :authors => ['Yoshiki Tsunesada', 'David MacMahon', 'Jens Wille'],
@@ -19,20 +19,16 @@ begin
19
19
  :requirements => ['GSL (http://www.gnu.org/software/gsl/)'],
20
20
  :require_paths => %w[lib lib/gsl lib/ool ext],
21
21
 
22
- :extra_files => FileList['examples/**/*', 'include/*', 'rdoc/*'].to_a,
22
+ :extra_files => FileList['examples/**/*', 'rdoc/*'].to_a,
23
23
 
24
- :extension => {
25
- :lib_dir => 'lib',
26
- :ext_dir => 'ext',
27
- :cross_compile => false
28
- },
24
+ :extension => { :cross_compile => false },
29
25
 
30
- :required_ruby_version => '>= 1.8.1'
26
+ :required_ruby_version => '>= 1.8.7'
31
27
  },
32
28
  :rdoc => {
33
29
  :title => 'Ruby/GSL{version: (v%s)}',
34
30
  :rdoc_files => FileList['rdoc/*'].to_a,
35
- :exclude => %w[ext include lib],
31
+ :exclude => %w[ext lib],
36
32
  :main => 'rdoc/index.rdoc'
37
33
  },
38
34
  :test => {
@@ -3,7 +3,7 @@
3
3
  * Based on ALF-0.1
4
4
  */
5
5
  #ifdef HAVE_ALF_ALF_H
6
- #include "rb_gsl.h"
6
+ #include "include/rb_gsl.h"
7
7
 
8
8
  static VALUE cWspace;
9
9
  static VALUE rb_alf_alloc(VALUE klass, VALUE lmax)
@@ -9,13 +9,11 @@
9
9
  WITHOUT ANY WARRANTY.
10
10
  */
11
11
 
12
- #include "rb_gsl_config.h"
13
-
14
- #include "rb_gsl_common.h"
15
- #include "rb_gsl_array.h"
16
- #include "rb_gsl_complex.h"
12
+ #include "include/rb_gsl_common.h"
13
+ #include "include/rb_gsl_array.h"
14
+ #include "include/rb_gsl_complex.h"
17
15
  #ifdef HAVE_NARRAY_H
18
- #include "rb_gsl_with_narray.h"
16
+ #include "include/rb_gsl_with_narray.h"
19
17
  #endif
20
18
 
21
19
  /* global variables */
@@ -8,10 +8,9 @@
8
8
  This library is distributed in the hope that it will be useful, but
9
9
  WITHOUT ANY WARRANTY.
10
10
  */
11
- #include "rb_gsl_config.h"
12
11
 
13
- #include "rb_gsl_complex.h"
14
- #include "rb_gsl_array.h"
12
+ #include "include/rb_gsl_complex.h"
13
+ #include "include/rb_gsl_array.h"
15
14
 
16
15
  enum {
17
16
  GSL_COMPLEX_ADD,
@@ -8,11 +8,10 @@
8
8
  This library is distributed in the hope that it will be useful, but
9
9
  WITHOUT ANY WARRANTY.
10
10
  */
11
- #include "rb_gsl_config.h"
12
11
 
13
12
  #include <gsl/gsl_blas.h>
14
- #include "rb_gsl_common.h"
15
- #include "rb_gsl_array.h"
13
+ #include "include/rb_gsl_common.h"
14
+ #include "include/rb_gsl_array.h"
16
15
 
17
16
  void Init_gsl_blas1(VALUE module);
18
17
  void Init_gsl_blas2(VALUE module);
@@ -8,12 +8,11 @@
8
8
  This library is distributed in the hope that it will be useful, but
9
9
  WITHOUT ANY WARRANTY.
10
10
  */
11
- #include "rb_gsl_config.h"
12
11
 
13
12
  #include <gsl/gsl_blas.h>
14
- #include "rb_gsl_complex.h"
15
- #include "rb_gsl_array.h"
16
- #include "rb_gsl_common.h"
13
+ #include "include/rb_gsl_complex.h"
14
+ #include "include/rb_gsl_array.h"
15
+ #include "include/rb_gsl_common.h"
17
16
 
18
17
  static int get_vector1(int argc, VALUE *argv, VALUE obj, gsl_vector **x);
19
18
  static int get_vector_complex1(int argc, VALUE *argv, VALUE obj, gsl_vector_complex **x);
@@ -8,12 +8,11 @@
8
8
  This library is distributed in the hope that it will be useful, but
9
9
  WITHOUT ANY WARRANTY.
10
10
  */
11
- #include "rb_gsl_config.h"
12
11
 
13
12
  #include <gsl/gsl_blas.h>
14
- #include "rb_gsl_common.h"
15
- #include "rb_gsl_complex.h"
16
- #include "rb_gsl_array.h"
13
+ #include "include/rb_gsl_common.h"
14
+ #include "include/rb_gsl_complex.h"
15
+ #include "include/rb_gsl_array.h"
17
16
 
18
17
  static void define_const(VALUE module);
19
18
 
@@ -8,12 +8,11 @@
8
8
  This library is distributed in the hope that it will be useful, but
9
9
  WITHOUT ANY WARRANTY.
10
10
  */
11
- #include "rb_gsl_config.h"
12
11
 
13
12
  #include <gsl/gsl_blas.h>
14
- #include "rb_gsl_common.h"
15
- #include "rb_gsl_complex.h"
16
- #include "rb_gsl_array.h"
13
+ #include "include/rb_gsl_common.h"
14
+ #include "include/rb_gsl_complex.h"
15
+ #include "include/rb_gsl_array.h"
17
16
 
18
17
  static VALUE rb_gsl_blas_dgemm(int argc, VALUE *argv, VALUE obj)
19
18
  {
@@ -14,31 +14,30 @@
14
14
  which are provided by the GSL source.
15
15
  */
16
16
 
17
- #include "rb_gsl_config.h"
18
- #include "rb_gsl_array.h"
19
- #include "rb_gsl_histogram.h"
20
- #include "rb_gsl_complex.h"
21
- #include "rb_gsl_poly.h"
17
+ #include "include/rb_gsl_array.h"
18
+ #include "include/rb_gsl_histogram.h"
19
+ #include "include/rb_gsl_complex.h"
20
+ #include "include/rb_gsl_poly.h"
22
21
 
23
22
  #ifdef HAVE_NARRAY_H
24
- #include "rb_gsl_with_narray.h"
23
+ #include "include/rb_gsl_with_narray.h"
25
24
  #endif
26
25
 
27
26
  #define BASE_DOUBLE
28
- #include "templates_on.h"
27
+ #include "include/templates_on.h"
29
28
  #include "block_source.c"
30
- #include "templates_off.h"
29
+ #include "include/templates_off.h"
31
30
  #undef BASE_DOUBLE
32
31
 
33
32
  #define BASE_INT
34
- #include "templates_on.h"
33
+ #include "include/templates_on.h"
35
34
  #include "block_source.c"
36
- #include "templates_off.h"
35
+ #include "include/templates_off.h"
37
36
  #undef BASE_INT
38
37
 
39
38
  #define BASE_UCHAR
40
- #include "templates_on.h"
39
+ #include "include/templates_on.h"
41
40
  #include "block_source.c"
42
- #include "templates_off.h"
41
+ #include "include/templates_off.h"
43
42
  #undef BASE_UCHAR
44
43
 
@@ -1,5 +1,5 @@
1
1
 
2
- #include "rb_gsl.h"
2
+ #include "include/rb_gsl.h"
3
3
  #ifdef GSL_1_9_LATER
4
4
  #include "gsl/gsl_bspline.h"
5
5
 
File without changes
@@ -9,12 +9,10 @@
9
9
  WITHOUT ANY WARRANTY.
10
10
  */
11
11
 
12
- #include "rb_gsl_config.h"
13
-
14
12
  #ifdef GSL_1_4_LATER
15
- #include "rb_gsl_array.h"
16
- #include "rb_gsl_common.h"
17
- #include "rb_gsl_rng.h"
13
+ #include "include/rb_gsl_array.h"
14
+ #include "include/rb_gsl_common.h"
15
+ #include "include/rb_gsl_rng.h"
18
16
  #include <gsl/gsl_randist.h>
19
17
  #include <gsl/gsl_cdf.h>
20
18
 
@@ -9,10 +9,10 @@
9
9
  WITHOUT ANY WARRANTY.
10
10
  */
11
11
 
12
- #include "rb_gsl.h"
13
- #include "rb_gsl_common.h"
14
- #include "rb_gsl_array.h"
15
- #include "rb_gsl_function.h"
12
+ #include "include/rb_gsl.h"
13
+ #include "include/rb_gsl_common.h"
14
+ #include "include/rb_gsl_array.h"
15
+ #include "include/rb_gsl_function.h"
16
16
  #include <gsl/gsl_math.h>
17
17
  #include <gsl/gsl_chebyshev.h>
18
18
  #ifdef HAVE_NARRAY_H
@@ -9,10 +9,9 @@
9
9
  WITHOUT ANY WARRANTY.
10
10
  */
11
11
 
12
- #include "rb_gsl_config.h"
13
12
  #ifdef GSL_1_1_LATER
14
- #include "rb_gsl_common.h"
15
- #include "rb_gsl_array.h"
13
+ #include "include/rb_gsl_common.h"
14
+ #include "include/rb_gsl_array.h"
16
15
 
17
16
  static VALUE cgsl_combination_data;
18
17
 
@@ -9,16 +9,14 @@
9
9
  WITHOUT ANY WARRANTY.
10
10
  */
11
11
 
12
- #include "rb_gsl_config.h"
13
-
14
- #include "rb_gsl_array.h"
15
- #include "rb_gsl_histogram.h"
12
+ #include "include/rb_gsl_array.h"
13
+ #include "include/rb_gsl_histogram.h"
16
14
  #include <string.h>
17
15
  #include <ctype.h>
18
16
 
19
17
  FILE* rb_gsl_open_writefile(VALUE io, int *flag)
20
18
  {
21
- #ifdef RUBY_1_9_LATER
19
+ #ifdef HAVE_RUBY_IO_H
22
20
  rb_io_t *fptr = NULL;
23
21
  #else
24
22
  OpenFile *fptr = NULL;
@@ -34,14 +32,14 @@ FILE* rb_gsl_open_writefile(VALUE io, int *flag)
34
32
  case T_FILE:
35
33
  GetOpenFile(io, fptr);
36
34
  /*
37
- #ifdef RUBY_1_9_LATER
35
+ #ifdef HAVE_RUBY_IO_H
38
36
  name = STR2CSTR(fptr->pathv);
39
37
  #else
40
38
  name = fptr->path;
41
39
  #endif
42
40
  */
43
41
  rb_io_check_writable(fptr);
44
- #ifdef RUBY_1_9_LATER
42
+ #ifdef HAVE_RUBY_IO_H
45
43
  fp = rb_io_stdio_file(fptr);
46
44
  #else
47
45
  fp = GetWriteFile(fptr);
@@ -59,7 +57,7 @@ FILE* rb_gsl_open_writefile(VALUE io, int *flag)
59
57
 
60
58
  FILE* rb_gsl_open_readfile(VALUE io, int *flag)
61
59
  {
62
- #ifdef RUBY_1_9_LATER
60
+ #ifdef HAVE_RUBY_IO_H
63
61
  rb_io_t *fptr = NULL;
64
62
  #else
65
63
  OpenFile *fptr = NULL;
@@ -75,14 +73,14 @@ FILE* rb_gsl_open_readfile(VALUE io, int *flag)
75
73
  case T_FILE:
76
74
  GetOpenFile(io, fptr);
77
75
  /*
78
- #ifdef RUBY_1_9_LATER
76
+ #ifdef HAVE_RUBY_IO_H
79
77
  name = STR2CSTR(fptr->pathv);
80
78
  #else
81
79
  name = fptr->path;
82
80
  #endif
83
81
  */
84
82
  rb_io_check_readable(fptr);
85
- #ifdef RUBY_1_9_LATER
83
+ #ifdef HAVE_RUBY_IO_H
86
84
  fp = rb_io_stdio_file(fptr);
87
85
  #else
88
86
  fp = fptr->f;
@@ -9,9 +9,9 @@
9
9
  WITHOUT ANY WARRANTY; without even the implied warranty of
10
10
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
11
  */
12
- #include "rb_gsl_config.h"
13
- #include "rb_gsl_complex.h"
14
- #include "rb_gsl_array.h"
12
+
13
+ #include "include/rb_gsl_complex.h"
14
+ #include "include/rb_gsl_array.h"
15
15
 
16
16
  VALUE cgsl_complex;
17
17
 
@@ -9,15 +9,14 @@
9
9
  WITHOUT ANY WARRANTY.
10
10
  */
11
11
 
12
- #include "rb_gsl_config.h"
13
- #include "rb_gsl_const.h"
12
+ #include "include/rb_gsl_const.h"
14
13
 
15
14
  static void rb_gsl_const_mks(VALUE module);
16
15
  static void rb_gsl_const_cgs(VALUE module);
17
16
  static void rb_gsl_const_num(VALUE module);
18
17
  void Init_gsl_const_additional(VALUE mmks, VALUE mcgs, VALUE mnum);
19
18
 
20
- #ifdef GSL_CONST_OLD
19
+ #ifndef GSL_1_4_LATER
21
20
  static void rb_gsl_const_mks(VALUE module)
22
21
  {
23
22
  rb_define_const(module, "SPEED_OF_LIGHT",
@@ -8,8 +8,8 @@
8
8
  This library is distributed in the hope that it will be useful, but
9
9
  WITHOUT ANY WARRANTY.
10
10
  */
11
- #include "rb_gsl_config.h"
12
- #include "rb_gsl_const.h"
11
+
12
+ #include "include/rb_gsl_const.h"
13
13
 
14
14
  #ifndef GSL_1_4_9_LATER
15
15
  #define MKS_STEFAN_BOLTZMANN_CONSTANT (5.6703993443638e-08)
@@ -1,6 +1,6 @@
1
1
  #ifdef HAVE_GSL_GSL_CQP_H
2
2
 
3
- #include "rb_gsl.h"
3
+ #include "include/rb_gsl.h"
4
4
  #include "gsl/gsl_cqp.h"
5
5
 
6
6
  static const gsl_cqpminimizer_type* type_by_string(VALUE t);
@@ -8,10 +8,10 @@
8
8
  This library is distributed in the hope that it will be useful, but
9
9
  WITHOUT ANY WARRANTY.
10
10
  */
11
- #include "rb_gsl_config.h"
11
+
12
12
  #ifdef GSL_1_4_9_LATER
13
- #include "rb_gsl_common.h"
14
- #include "rb_gsl_function.h"
13
+ #include "include/rb_gsl_common.h"
14
+ #include "include/rb_gsl_function.h"
15
15
  #include <gsl/gsl_math.h>
16
16
  #include <gsl/gsl_deriv.h>
17
17
  #define RB_GSL_DERIV_H_DEFAULT (1e-8)