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
@@ -9,10 +9,9 @@
9
9
  WITHOUT ANY WARRANTY.
10
10
  */
11
11
 
12
- #include "rb_gsl_config.h"
13
- #include "rb_gsl_histogram.h"
14
- #include "rb_gsl_common.h"
15
- #include "rb_gsl_array.h"
12
+ #include "include/rb_gsl_histogram.h"
13
+ #include "include/rb_gsl_common.h"
14
+ #include "include/rb_gsl_array.h"
16
15
 
17
16
  VALUE cgsl_histogram2d;
18
17
  VALUE cgsl_histogram2d_view;
@@ -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"
12
- #include "rb_gsl_histogram.h"
13
- #include "rb_gsl_common.h"
14
- #include "rb_gsl_array.h"
11
+
12
+ #include "include/rb_gsl_histogram.h"
13
+ #include "include/rb_gsl_common.h"
14
+ #include "include/rb_gsl_array.h"
15
15
 
16
16
  static VALUE cgsl_histogram3d;
17
17
  static VALUE cgsl_histogram3d_view;
@@ -13,7 +13,7 @@
13
13
  This source code is created modifying gsl-1.5/histogram/ *2d.c
14
14
  */
15
15
 
16
- #include "rb_gsl_histogram.h"
16
+ #include "include/rb_gsl_histogram.h"
17
17
 
18
18
  mygsl_histogram3d* mygsl_histogram3d_alloc(const size_t nx, const size_t ny,
19
19
  const size_t nz)
@@ -17,7 +17,7 @@
17
17
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
18
  */
19
19
 
20
- #include "rb_gsl_histogram.h"
20
+ #include "include/rb_gsl_histogram.h"
21
21
  /* determines whether to optimize for linear ranges */
22
22
  #define LINEAR_OPT 1
23
23
 
@@ -9,7 +9,7 @@
9
9
  WITHOUT ANY WARRANTY.
10
10
  */
11
11
 
12
- #include "rb_gsl.h"
12
+ #include "include/rb_gsl.h"
13
13
 
14
14
  static VALUE rb_gsl_ieee_env_setup(VALUE obj)
15
15
  {
@@ -19,15 +19,15 @@ static VALUE rb_gsl_ieee_env_setup(VALUE obj)
19
19
 
20
20
  static VALUE rb_gsl_ieee_fprintf_double(int argc, VALUE *argv, VALUE obj)
21
21
  {
22
- #ifdef RUBY_1_9_LATER
22
+ #ifdef HAVE_RUBY_IO_H
23
23
  rb_io_t *fptr = NULL;
24
- double ftmp;
25
24
  #else
26
25
  OpenFile *fptr = NULL;
27
26
  #endif
28
27
  FILE *fp = NULL;
29
28
  int flag = 0;
30
29
  VALUE vtmp;
30
+ double ftmp;
31
31
 
32
32
  switch (argc) {
33
33
  case 2:
@@ -39,7 +39,7 @@ static VALUE rb_gsl_ieee_fprintf_double(int argc, VALUE *argv, VALUE obj)
39
39
  case T_FILE:
40
40
  GetOpenFile(argv[0], fptr);
41
41
  rb_io_check_writable(fptr);
42
- #ifdef RUBY_1_9_LATER
42
+ #ifdef HAVE_RUBY_IO_H
43
43
  fp = rb_io_stdio_file(fptr);
44
44
  #else
45
45
  fp = GetWriteFile(fptr);
@@ -61,12 +61,8 @@ static VALUE rb_gsl_ieee_fprintf_double(int argc, VALUE *argv, VALUE obj)
61
61
  if (TYPE(vtmp) != T_FLOAT)
62
62
  rb_raise(rb_eTypeError, "wrong argument type %s (Float expected)",
63
63
  rb_class2name(CLASS_OF(vtmp)));
64
- #ifdef RUBY_1_9_LATER
65
64
  ftmp = RFLOAT_VALUE(vtmp);
66
65
  gsl_ieee_fprintf_double(fp, &ftmp);
67
- #else
68
- gsl_ieee_fprintf_double(fp, &(RFLOAT(vtmp)->value));
69
- #endif
70
66
  if (fp == stdout) fprintf(stdout, "\n");
71
67
  if (flag == 1) fclose(fp);
72
68
  return obj;
@@ -12,40 +12,25 @@
12
12
  #ifndef ___RB_GSL_H___
13
13
  #define ___RB_GSL_H___
14
14
 
15
- #include <stdio.h>
16
15
  #include <string.h>
17
- #include <ctype.h>
18
16
  #include <stdlib.h>
19
17
  #include <gsl/gsl_mode.h>
20
- #include "rb_gsl_common.h"
21
- #include "rb_gsl_math.h"
22
- #include "rb_gsl_complex.h"
23
- #include "rb_gsl_array.h"
24
- #include "rb_gsl_function.h"
25
18
  #include "rb_gsl_poly.h"
26
- #include "rb_gsl_sf.h"
27
19
  #include "rb_gsl_linalg.h"
20
+ #include "rb_gsl_math.h"
21
+ #include "rb_gsl_root.h"
22
+ #include "rb_gsl_histogram.h"
23
+ #include "rb_gsl_sf.h"
28
24
  #include "rb_gsl_eigen.h"
29
25
  #include "rb_gsl_fft.h"
30
26
  #include "rb_gsl_integration.h"
31
27
  #include "rb_gsl_rng.h"
32
28
  #include "rb_gsl_statistics.h"
33
- #include "rb_gsl_histogram.h"
34
29
  #include "rb_gsl_odeiv.h"
35
30
  #include "rb_gsl_interp.h"
36
31
  #include "rb_gsl_cheb.h"
37
- #include "rb_gsl_root.h"
38
32
  #include "rb_gsl_fit.h"
39
33
  #include "rb_gsl_const.h"
40
- #include "rb_gsl_config.h"
41
-
42
-
43
- #include "ruby.h"
44
- #ifdef RUBY_1_9_LATER
45
- #include "ruby/io.h"
46
- #else
47
- #include "rubyio.h"
48
- #endif
49
34
 
50
35
  void Init_gsl_error(VALUE module);
51
36
  void Init_gsl_math(VALUE module);
@@ -13,15 +13,10 @@
13
13
  #define ___RB_GSL_ARRAY_H___
14
14
 
15
15
  #include <math.h>
16
- #include <gsl/gsl_errno.h>
17
- #include <gsl/gsl_complex.h>
18
16
  #include <gsl/gsl_block.h>
19
- #include <gsl/gsl_vector.h>
20
17
  #include <gsl/gsl_vector_complex.h>
21
18
  #include <gsl/gsl_vector_complex_double.h>
22
- #include <gsl/gsl_matrix.h>
23
19
  #include <gsl/gsl_matrix_complex_double.h>
24
- #include <gsl/gsl_permutation.h>
25
20
  #include <gsl/gsl_combination.h>
26
21
  #include <gsl/gsl_sort.h>
27
22
  #include <gsl/gsl_sort_vector.h>
@@ -29,15 +24,6 @@
29
24
  #include <gsl/gsl_eigen.h>
30
25
  #include <gsl/gsl_odeiv.h>
31
26
  #include <gsl/gsl_blas.h>
32
- #include "rb_gsl_config.h"
33
-
34
- #include "ruby.h"
35
- #ifdef RUBY_1_9_LATER
36
- #include "ruby/io.h"
37
- #else
38
- #include "rubyio.h"
39
- #endif
40
-
41
27
  #include "rb_gsl_common.h"
42
28
 
43
29
  typedef gsl_permutation gsl_index;
@@ -13,9 +13,7 @@
13
13
  #ifndef ___RB_GSL_CHEB_H___
14
14
  #define ___RB_GSL_CHEB_H___
15
15
 
16
- #include "rb_gsl.h"
17
16
  #include "rb_gsl_function.h"
18
- #include <gsl/gsl_math.h>
19
17
  #include <gsl/gsl_chebyshev.h>
20
18
 
21
19
  #endif
@@ -12,21 +12,22 @@
12
12
  #ifndef ___RB_GSL_COMMON_H___
13
13
  #define ___RB_GSL_COMMON_H___
14
14
 
15
- #include "rb_gsl_config.h"
16
- #include "ruby.h"
15
+ #include <ruby.h>
16
+ #ifdef HAVE_RUBY_IO_H
17
+ #include <ruby/io.h>
18
+ #else
19
+ #include <rubyio.h>
20
+ #endif
21
+
17
22
  #include <ctype.h>
18
23
  #include <gsl/gsl_errno.h>
19
24
  #include <gsl/gsl_version.h>
20
25
  #include <gsl/gsl_math.h>
21
26
  #include <gsl/gsl_complex.h>
22
- #include <gsl/gsl_vector.h>
23
27
  #include <gsl/gsl_matrix.h>
24
28
  #include <gsl/gsl_permutation.h>
25
29
  #include <gsl/gsl_ieee_utils.h>
26
- #ifdef HAVE_NARRAY_H
27
- #include "narray.h"
28
30
  #include "rb_gsl_with_narray.h"
29
- #endif
30
31
 
31
32
  EXTERN ID rb_gsl_id_beg, rb_gsl_id_end, rb_gsl_id_excl, rb_gsl_id_to_a;
32
33
 
@@ -316,17 +317,12 @@ VALUE rb_gsl_obj_read_only(int argc, VALUE *argv, VALUE obj);
316
317
  int str_tail_grep(const char *s0, const char *s1);
317
318
  int str_head_grep(const char *s0, const char *s1);
318
319
 
319
- #ifdef RUBY_1_8_LATER
320
- #define RB_GSL_MAKE_PROC rb_block_proc()
321
- #define STR2CHARPTR StringValuePtr
322
- #else
323
- #define RB_GSL_MAKE_PROC rb_f_lambda()
324
- #define STR2CHARPTR STR2CSTR
320
+ #ifndef STR2CSTR
321
+ #define STR2CSTR StringValuePtr
325
322
  #endif
326
323
 
327
- // Added 2010/Sep/29
328
- #ifdef RUBY_1_9_2_LATER
329
- #define STR2CSTR StringValuePtr
324
+ #ifndef RCLASS_SUPER
325
+ #define RCLASS_SUPER(cls) RCLASS(cls)->super
330
326
  #endif
331
327
 
332
328
  void make_graphcommand(char *command, VALUE hash);
@@ -14,7 +14,7 @@
14
14
  #define ___RB_GSL_COMPLEX_H___
15
15
 
16
16
  #include <math.h>
17
- #include "ruby.h"
17
+ #include <ruby.h>
18
18
  #include <gsl/gsl_complex.h>
19
19
  #include <gsl/gsl_complex_math.h>
20
20
 
@@ -13,9 +13,8 @@
13
13
  #ifndef ___RB_GSL_CONST_H___
14
14
  #define ___RB_GSL_CONST_H___
15
15
 
16
- #include "ruby.h"
17
16
  #include "rb_gsl.h"
18
- #ifdef GSL_CONST_OLD
17
+ #ifndef GSL_1_4_LATER
19
18
  #include <gsl/gsl_const_mks.h>
20
19
  #include <gsl/gsl_const_cgs.h>
21
20
  #else
@@ -0,0 +1,6 @@
1
+ #ifndef ___RB_GSL_DIRAC_H___
2
+ #define ___RB_GSL_DIRAC_H___
3
+
4
+ #include "rb_gsl.h"
5
+
6
+ #endif
@@ -12,6 +12,6 @@
12
12
  #ifndef ___RB_GSL_EIGEN_H___
13
13
  #define ___RB_GSL_EIGEN_H___
14
14
 
15
- #include "gsl/gsl_eigen.h"
15
+ #include <gsl/gsl_eigen.h>
16
16
 
17
17
  #endif
@@ -13,21 +13,11 @@
13
13
  #ifndef ___RB_GSL_FFT_H___
14
14
  #define ___RB_GSL_FFT_H___
15
15
 
16
-
17
- #include <stdio.h>
18
- #include <math.h>
19
- #include "ruby.h"
20
- #include <gsl/gsl_vector.h>
21
- #include <gsl/gsl_errno.h>
22
16
  #include <gsl/gsl_fft.h>
23
17
  #include <gsl/gsl_fft_complex.h>
24
18
  #include <gsl/gsl_fft_real.h>
25
19
  #include <gsl/gsl_fft_halfcomplex.h>
26
- #include "rb_gsl_array.h"
27
20
  #include "rb_gsl.h"
28
-
29
- #include "rb_gsl_complex.h"
30
- #include "rb_gsl_array.h"
31
21
  #ifdef HAVE_NARRAY_H
32
22
  #include "narray.h"
33
23
  #endif
@@ -13,8 +13,6 @@
13
13
  #ifndef ___RB_GSL_FIT_H___
14
14
  #define ___RB_GSL_FIT_H___
15
15
 
16
- #include "ruby.h"
17
- #include <gsl/gsl_blas.h>
18
16
  #include <gsl/gsl_fit.h>
19
17
  #include <gsl/gsl_multifit.h>
20
18
  #include <gsl/gsl_multifit_nlin.h>
@@ -13,10 +13,6 @@
13
13
  #ifndef ___RB_GSL_FUNCTION_H___
14
14
  #define ___RB_GSL_FUNCTION_H___
15
15
 
16
- #include "ruby.h"
17
- #include <gsl/gsl_vector.h>
18
- #include <gsl/gsl_integration.h>
19
- #include <gsl/gsl_math.h>
20
16
  #include "rb_gsl.h"
21
17
 
22
18
  EXTERN VALUE cgsl_function;
@@ -14,8 +14,6 @@
14
14
  #define ___RB_GSL_GRAPH_H___
15
15
 
16
16
  #include "rb_gsl.h"
17
- #include "rb_gsl_array.h"
18
- #include "rb_gsl_common.h"
19
17
 
20
18
  typedef struct __rb_gsl_plot {
21
19
  VALUE xdata, ydata;
@@ -12,6 +12,6 @@
12
12
  #ifndef ___RB_GSL_INTEGRATION_H___
13
13
  #define ___RB_GSL_INTEGRATION_H___
14
14
 
15
- #include "gsl/gsl_integration.h"
15
+ #include <gsl/gsl_integration.h>
16
16
 
17
17
  #endif
@@ -13,14 +13,9 @@
13
13
  #ifndef ___RB_GSL_INTERP_H___
14
14
  #define ___RB_GSL_INTERP_H___
15
15
 
16
- #include "ruby.h"
17
16
  #include "rb_gsl.h"
18
17
  #include <gsl/gsl_interp.h>
19
18
  #include <gsl/gsl_spline.h>
20
- #ifdef HAVE_NARRAY_H
21
- #include "narray.h"
22
- #endif
23
-
24
19
 
25
20
  typedef struct {
26
21
  gsl_interp *p;
@@ -12,12 +12,9 @@
12
12
  #ifndef ___RB_GSL_LINALG_H___
13
13
  #define ___RB_GSL_LINALG_H___
14
14
 
15
- #include "gsl/gsl_linalg.h"
16
- #include "gsl/gsl_math.h"
17
-
18
- #ifdef HAVE_NARRAY_H
15
+ #include <gsl/gsl_linalg.h>
16
+ #include <gsl/gsl_math.h>
19
17
  #include "rb_gsl_with_narray.h"
20
- #endif
21
18
 
22
19
  VALUE rb_gsl_linalg_complex_LU_decomp(int argc, VALUE *argv, VALUE obj);
23
20
  VALUE rb_gsl_linalg_complex_LU_decomp2(int argc, VALUE *argv, VALUE obj);
@@ -13,8 +13,6 @@
13
13
  #ifndef ___RB_GSL_MATH_H___
14
14
  #define ___RB_GSL_MATH_H___
15
15
 
16
- #include "ruby.h"
17
- #include <gsl/gsl_math.h>
18
16
  #include "rb_gsl.h"
19
17
 
20
18
  #ifndef GSL_1_3_LATER
@@ -13,9 +13,6 @@
13
13
  #ifndef ___RB_GSL_ODEIV_H___
14
14
  #define ___RB_GSL_ODEIV_H___
15
15
 
16
- #include "ruby.h"
17
- #include <gsl/gsl_odeiv.h>
18
16
  #include "rb_gsl.h"
19
- #include "rb_gsl_array.h"
20
17
 
21
18
  #endif
@@ -13,11 +13,7 @@
13
13
  #ifndef ___RB_GSL_POLY_H___
14
14
  #define ___RB_GSL_POLY_H___
15
15
 
16
- #include "ruby.h"
17
- #include <gsl/gsl_vector.h>
18
16
  #include <gsl/gsl_poly.h>
19
- #include <gsl/gsl_complex.h>
20
- #include <gsl/gsl_complex_math.h>
21
17
  #include "rb_gsl_complex.h"
22
18
  #include "rb_gsl_array.h"
23
19
 
@@ -13,13 +13,6 @@
13
13
  #ifndef ___RB_GSL_RATIONAL_H___
14
14
  #define ___RB_GSL_RATIONAL_H___
15
15
 
16
- #include "ruby.h"
17
- #include <gsl/gsl_vector.h>
18
- #include <gsl/gsl_poly.h>
19
- #include <gsl/gsl_complex.h>
20
- #include <gsl/gsl_complex_math.h>
21
- #include "rb_gsl_complex.h"
22
- #include "rb_gsl_array.h"
23
16
  #include "rb_gsl_poly.h"
24
17
 
25
18
  typedef struct ___gsl_rational
@@ -12,7 +12,6 @@
12
12
  #ifndef ___RB_GSL_RNG_H___
13
13
  #define ___RB_GSL_RNG_H___
14
14
 
15
- #include "ruby.h"
16
15
  #include <gsl/gsl_rng.h>
17
16
  #include "rb_gsl.h"
18
17
 
@@ -13,9 +13,9 @@
13
13
  #define ___RB_GSL_ROOT_H___
14
14
 
15
15
  #include <gsl/gsl_errno.h>
16
- #include <gsl/gsl_math.h>
17
16
  #include <gsl/gsl_roots.h>
18
17
  #include "rb_gsl.h"
18
+
19
19
  EXTERN VALUE cgsl_fsolver;
20
20
  EXTERN VALUE cgsl_fdfsolver;
21
21