rb-gsl 1.16.0.4 → 1.16.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (307) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +12 -0
  3. data/.travis.yml +24 -0
  4. data/AUTHORS +6 -0
  5. data/COPYING +341 -339
  6. data/ChangeLog +608 -587
  7. data/Gemfile +4 -0
  8. data/README.md +77 -0
  9. data/Rakefile +14 -33
  10. data/THANKS +1 -1
  11. data/examples/blas/blas.rb +1 -1
  12. data/examples/bspline.rb +3 -3
  13. data/examples/complex/functions.rb +4 -4
  14. data/examples/complex/mul.rb +1 -1
  15. data/examples/const/physconst.rb +4 -4
  16. data/examples/const/travel.rb +4 -4
  17. data/examples/eigen/nonsymmv.rb +1 -1
  18. data/examples/eigen/qhoscillator.rb +3 -3
  19. data/examples/fft/radix2.rb +1 -1
  20. data/examples/fft/real-halfcomplex.rb +3 -3
  21. data/examples/fft/real-halfcomplex2.rb +3 -3
  22. data/examples/fit/expfit.rb +1 -1
  23. data/examples/fit/multifit.rb +1 -1
  24. data/examples/fit/ndlinear.rb +44 -44
  25. data/examples/fit/nonlinearfit.rb +1 -1
  26. data/examples/fit/wlinear.rb +3 -3
  27. data/examples/function/function.rb +1 -1
  28. data/examples/function/min.rb +1 -1
  29. data/examples/function/synchrotron.rb +2 -2
  30. data/examples/gallery/koch.rb +1 -1
  31. data/examples/histogram/cauchy.rb +2 -2
  32. data/examples/histogram/exponential.rb +1 -1
  33. data/examples/histogram/histo3d.rb +1 -1
  34. data/examples/histogram/histogram-pdf.rb +2 -2
  35. data/examples/histogram/xexp.rb +1 -1
  36. data/examples/integration/ahmed.rb +2 -2
  37. data/examples/integration/cosmology.rb +7 -7
  38. data/examples/integration/friedmann.rb +4 -4
  39. data/examples/integration/qng.rb +1 -1
  40. data/examples/interp/demo.rb +2 -2
  41. data/examples/linalg/LQ_solve.rb +1 -1
  42. data/examples/linalg/LU.rb +1 -1
  43. data/examples/linalg/LU2.rb +1 -1
  44. data/examples/linalg/LU_narray.rb +1 -1
  45. data/examples/linalg/PTLQ.rb +1 -1
  46. data/examples/linalg/QRPT.rb +1 -1
  47. data/examples/linalg/chol.rb +1 -1
  48. data/examples/linalg/chol_narray.rb +1 -1
  49. data/examples/linalg/complex.rb +1 -1
  50. data/examples/math/elementary.rb +1 -1
  51. data/examples/math/functions.rb +1 -1
  52. data/examples/math/inf_nan.rb +1 -1
  53. data/examples/math/minmax.rb +1 -1
  54. data/examples/math/power.rb +1 -1
  55. data/examples/math/test.rb +1 -1
  56. data/examples/min.rb +1 -1
  57. data/examples/multimin/bundle.rb +1 -1
  58. data/examples/multimin/cqp.rb +17 -17
  59. data/examples/multiroot/fsolver3.rb +1 -1
  60. data/examples/odeiv/binarysystem.rb +12 -12
  61. data/examples/odeiv/demo.rb +3 -3
  62. data/examples/odeiv/frei1.rb +7 -7
  63. data/examples/odeiv/frei2.rb +4 -4
  64. data/examples/odeiv/oscillator.rb +1 -1
  65. data/examples/odeiv/sedov.rb +3 -3
  66. data/examples/odeiv/whitedwarf.rb +11 -11
  67. data/examples/permutation/ex1.rb +2 -2
  68. data/examples/permutation/permutation.rb +1 -1
  69. data/examples/poly/demo.rb +1 -1
  70. data/examples/random/diffusion.rb +1 -1
  71. data/examples/random/generator.rb +2 -2
  72. data/examples/random/randomwalk.rb +3 -3
  73. data/examples/random/rng.rb +1 -1
  74. data/examples/roots/bisection.rb +1 -1
  75. data/examples/roots/brent.rb +1 -1
  76. data/examples/roots/demo.rb +1 -1
  77. data/examples/roots/newton.rb +2 -2
  78. data/examples/roots/recombination.gp +0 -1
  79. data/examples/sf/hyperg.rb +1 -1
  80. data/examples/sf/sphbessel.rb +1 -1
  81. data/examples/sort/sort.rb +1 -1
  82. data/examples/tamu_anova.rb +4 -4
  83. data/examples/vector/add.rb +1 -1
  84. data/examples/vector/decimate.rb +1 -1
  85. data/examples/vector/gnuplot.rb +8 -8
  86. data/examples/vector/vector.rb +2 -2
  87. data/examples/wavelet/wavelet1.rb +1 -1
  88. data/ext/{gsl → gsl_native}/alf.c +9 -9
  89. data/ext/{gsl → gsl_native}/array.c +64 -151
  90. data/ext/{gsl → gsl_native}/array_complex.c +61 -63
  91. data/ext/{gsl → gsl_native}/blas.c +0 -0
  92. data/ext/{gsl → gsl_native}/blas1.c +32 -32
  93. data/ext/{gsl → gsl_native}/blas2.c +54 -58
  94. data/ext/{gsl → gsl_native}/blas3.c +54 -54
  95. data/ext/{gsl → gsl_native}/block.c +3 -6
  96. data/ext/{gsl/block_source.c → gsl_native/block_source.h} +109 -111
  97. data/ext/gsl_native/bspline.c +122 -0
  98. data/ext/{gsl → gsl_native}/bundle.c +0 -0
  99. data/ext/{gsl → gsl_native}/cdf.c +76 -88
  100. data/ext/{gsl → gsl_native}/cheb.c +74 -85
  101. data/ext/{gsl → gsl_native}/combination.c +9 -16
  102. data/ext/{gsl → gsl_native}/common.c +7 -37
  103. data/ext/{gsl → gsl_native}/complex.c +113 -115
  104. data/ext/gsl_native/const.c +331 -0
  105. data/ext/{gsl → gsl_native}/const_additional.c +12 -33
  106. data/ext/gsl_native/cqp.c +283 -0
  107. data/ext/{gsl → gsl_native}/deriv.c +22 -30
  108. data/ext/{gsl → gsl_native}/dht.c +20 -28
  109. data/ext/{gsl → gsl_native}/diff.c +23 -25
  110. data/ext/{gsl → gsl_native}/dirac.c +44 -45
  111. data/ext/{gsl → gsl_native}/eigen.c +1031 -1082
  112. data/ext/{gsl → gsl_native}/error.c +13 -13
  113. data/ext/{gsl → gsl_native}/extconf.rb +5 -13
  114. data/ext/{gsl → gsl_native}/fft.c +192 -198
  115. data/ext/{gsl → gsl_native}/fit.c +16 -16
  116. data/ext/gsl_native/fresnel.c +312 -0
  117. data/ext/{gsl → gsl_native}/function.c +29 -35
  118. data/ext/{gsl → gsl_native}/geometry.c +15 -15
  119. data/ext/{gsl → gsl_native}/graph.c +37 -87
  120. data/ext/{gsl → gsl_native}/gsl.c +10 -23
  121. data/ext/{gsl → gsl_native}/gsl_narray.c +15 -24
  122. data/ext/{gsl → gsl_native}/histogram.c +123 -150
  123. data/ext/{gsl → gsl_native}/histogram2d.c +71 -96
  124. data/ext/{gsl → gsl_native}/histogram3d.c +72 -72
  125. data/ext/{gsl → gsl_native}/histogram3d_source.c +195 -196
  126. data/ext/{gsl → gsl_native}/histogram_find.c +31 -33
  127. data/ext/{gsl → gsl_native}/histogram_oper.c +43 -52
  128. data/ext/{gsl → gsl_native}/ieee.c +7 -15
  129. data/ext/{gsl → gsl_native}/include/rb_gsl.h +0 -7
  130. data/ext/{gsl → gsl_native}/include/rb_gsl_array.h +15 -25
  131. data/ext/{gsl → gsl_native}/include/rb_gsl_cheb.h +0 -0
  132. data/ext/{gsl → gsl_native}/include/rb_gsl_common.h +44 -52
  133. data/ext/{gsl → gsl_native}/include/rb_gsl_complex.h +0 -0
  134. data/ext/{gsl → gsl_native}/include/rb_gsl_const.h +0 -5
  135. data/ext/{gsl → gsl_native}/include/rb_gsl_dirac.h +0 -0
  136. data/ext/{gsl → gsl_native}/include/rb_gsl_eigen.h +0 -0
  137. data/ext/{gsl → gsl_native}/include/rb_gsl_fft.h +0 -3
  138. data/ext/{gsl → gsl_native}/include/rb_gsl_fit.h +0 -0
  139. data/ext/{gsl → gsl_native}/include/rb_gsl_function.h +0 -0
  140. data/ext/{gsl → gsl_native}/include/rb_gsl_graph.h +2 -2
  141. data/ext/{gsl → gsl_native}/include/rb_gsl_histogram.h +8 -8
  142. data/ext/{gsl → gsl_native}/include/rb_gsl_histogram3d.h +50 -50
  143. data/ext/{gsl → gsl_native}/include/rb_gsl_integration.h +0 -0
  144. data/ext/{gsl → gsl_native}/include/rb_gsl_interp.h +0 -0
  145. data/ext/{gsl → gsl_native}/include/rb_gsl_linalg.h +0 -1
  146. data/ext/{gsl → gsl_native}/include/rb_gsl_math.h +0 -4
  147. data/ext/{gsl → gsl_native}/include/rb_gsl_odeiv.h +0 -0
  148. data/ext/{gsl → gsl_native}/include/rb_gsl_poly.h +3 -3
  149. data/ext/{gsl → gsl_native}/include/rb_gsl_rational.h +1 -1
  150. data/ext/{gsl → gsl_native}/include/rb_gsl_rng.h +0 -0
  151. data/ext/{gsl → gsl_native}/include/rb_gsl_root.h +0 -0
  152. data/ext/{gsl → gsl_native}/include/rb_gsl_sf.h +39 -43
  153. data/ext/{gsl → gsl_native}/include/rb_gsl_statistics.h +0 -0
  154. data/ext/{gsl → gsl_native}/include/rb_gsl_tensor.h +0 -0
  155. data/ext/{gsl → gsl_native}/include/rb_gsl_with_narray.h +0 -0
  156. data/ext/{gsl → gsl_native}/include/templates_off.h +0 -0
  157. data/ext/{gsl → gsl_native}/include/templates_on.h +1 -1
  158. data/ext/{gsl → gsl_native}/integration.c +160 -183
  159. data/ext/{gsl → gsl_native}/interp.c +23 -31
  160. data/ext/gsl_native/jacobi.c +733 -0
  161. data/ext/{gsl → gsl_native}/linalg.c +448 -576
  162. data/ext/{gsl → gsl_native}/linalg_complex.c +84 -98
  163. data/ext/{gsl → gsl_native}/math.c +45 -63
  164. data/ext/{gsl → gsl_native}/matrix.c +4 -6
  165. data/ext/{gsl → gsl_native}/matrix_complex.c +111 -114
  166. data/ext/{gsl → gsl_native}/matrix_double.c +74 -77
  167. data/ext/{gsl → gsl_native}/matrix_int.c +49 -50
  168. data/ext/{gsl/matrix_source.c → gsl_native/matrix_source.h} +280 -302
  169. data/ext/{gsl → gsl_native}/min.c +43 -74
  170. data/ext/{gsl → gsl_native}/monte.c +45 -59
  171. data/ext/{gsl → gsl_native}/multifit.c +138 -147
  172. data/ext/{gsl → gsl_native}/multimin.c +55 -83
  173. data/ext/{gsl → gsl_native}/multimin_fsdf.c +15 -15
  174. data/ext/{gsl → gsl_native}/multiroots.c +61 -64
  175. data/ext/{gsl → gsl_native}/multiset.c +3 -7
  176. data/ext/{gsl → gsl_native}/ndlinear.c +320 -321
  177. data/ext/{gsl → gsl_native}/nmf.c +11 -11
  178. data/ext/{gsl → gsl_native}/nmf_wrap.c +1 -1
  179. data/ext/{gsl → gsl_native}/ntuple.c +13 -13
  180. data/ext/{gsl → gsl_native}/odeiv.c +95 -106
  181. data/ext/gsl_native/ool.c +879 -0
  182. data/ext/{gsl → gsl_native}/permutation.c +36 -34
  183. data/ext/{gsl → gsl_native}/poly.c +2 -5
  184. data/ext/{gsl → gsl_native}/poly2.c +6 -6
  185. data/ext/{gsl/poly_source.c → gsl_native/poly_source.h} +232 -275
  186. data/ext/{gsl → gsl_native}/qrng.c +6 -17
  187. data/ext/{gsl → gsl_native}/randist.c +218 -243
  188. data/ext/{gsl → gsl_native}/rational.c +9 -9
  189. data/ext/{gsl → gsl_native}/rng.c +29 -45
  190. data/ext/{gsl → gsl_native}/root.c +43 -43
  191. data/ext/{gsl → gsl_native}/sf.c +163 -197
  192. data/ext/{gsl → gsl_native}/sf_airy.c +0 -0
  193. data/ext/{gsl → gsl_native}/sf_bessel.c +6 -6
  194. data/ext/{gsl → gsl_native}/sf_clausen.c +0 -0
  195. data/ext/{gsl → gsl_native}/sf_coulomb.c +39 -39
  196. data/ext/{gsl → gsl_native}/sf_coupling.c +29 -29
  197. data/ext/{gsl → gsl_native}/sf_dawson.c +0 -0
  198. data/ext/{gsl → gsl_native}/sf_debye.c +0 -9
  199. data/ext/{gsl → gsl_native}/sf_dilog.c +0 -0
  200. data/ext/{gsl → gsl_native}/sf_elementary.c +2 -2
  201. data/ext/{gsl → gsl_native}/sf_ellint.c +42 -42
  202. data/ext/{gsl → gsl_native}/sf_elljac.c +2 -2
  203. data/ext/{gsl → gsl_native}/sf_erfc.c +0 -4
  204. data/ext/{gsl → gsl_native}/sf_exp.c +2 -2
  205. data/ext/{gsl → gsl_native}/sf_expint.c +1 -11
  206. data/ext/{gsl → gsl_native}/sf_fermi_dirac.c +0 -0
  207. data/ext/{gsl → gsl_native}/sf_gamma.c +1 -5
  208. data/ext/{gsl → gsl_native}/sf_gegenbauer.c +0 -0
  209. data/ext/{gsl → gsl_native}/sf_hyperg.c +0 -0
  210. data/ext/{gsl → gsl_native}/sf_laguerre.c +3 -3
  211. data/ext/{gsl → gsl_native}/sf_lambert.c +0 -0
  212. data/ext/{gsl → gsl_native}/sf_legendre.c +0 -0
  213. data/ext/{gsl → gsl_native}/sf_log.c +3 -3
  214. data/ext/gsl_native/sf_mathieu.c +235 -0
  215. data/ext/{gsl → gsl_native}/sf_power.c +0 -0
  216. data/ext/{gsl → gsl_native}/sf_psi.c +2 -11
  217. data/ext/{gsl → gsl_native}/sf_synchrotron.c +0 -0
  218. data/ext/{gsl → gsl_native}/sf_transport.c +0 -0
  219. data/ext/{gsl → gsl_native}/sf_trigonometric.c +3 -3
  220. data/ext/{gsl → gsl_native}/sf_zeta.c +0 -4
  221. data/ext/{gsl → gsl_native}/signal.c +60 -64
  222. data/ext/{gsl → gsl_native}/siman.c +36 -40
  223. data/ext/{gsl → gsl_native}/sort.c +3 -4
  224. data/ext/{gsl → gsl_native}/spline.c +25 -43
  225. data/ext/{gsl → gsl_native}/stats.c +102 -115
  226. data/ext/{gsl → gsl_native}/sum.c +32 -32
  227. data/ext/{gsl → gsl_native}/tamu_anova.c +0 -0
  228. data/ext/{gsl → gsl_native}/tensor.c +2 -4
  229. data/ext/{gsl/tensor_source.c → gsl_native/tensor_source.h} +144 -144
  230. data/ext/{gsl → gsl_native}/vector.c +2 -4
  231. data/ext/{gsl → gsl_native}/vector_complex.c +165 -171
  232. data/ext/{gsl → gsl_native}/vector_double.c +167 -174
  233. data/ext/{gsl → gsl_native}/vector_int.c +23 -25
  234. data/ext/{gsl/vector_source.c → gsl_native/vector_source.h} +400 -414
  235. data/ext/{gsl → gsl_native}/wavelet.c +215 -236
  236. data/lib/gsl.rb +1 -7
  237. data/lib/gsl/gnuplot.rb +2 -2
  238. data/lib/gsl/version.rb +1 -3
  239. data/rb-gsl.gemspec +29 -0
  240. data/rdoc/blas.rdoc +3 -3
  241. data/rdoc/bspline.rdoc +7 -7
  242. data/rdoc/cheb.rdoc +8 -8
  243. data/rdoc/cholesky_complex.rdoc +1 -1
  244. data/rdoc/combi.rdoc +9 -9
  245. data/rdoc/complex.rdoc +11 -11
  246. data/rdoc/const.rdoc +20 -20
  247. data/rdoc/dht.rdoc +6 -6
  248. data/rdoc/diff.rdoc +6 -6
  249. data/rdoc/ehandling.rdoc +3 -3
  250. data/rdoc/eigen.rdoc +11 -11
  251. data/rdoc/fft.rdoc +26 -26
  252. data/rdoc/fit.rdoc +18 -18
  253. data/rdoc/graph.rdoc +2 -2
  254. data/rdoc/hist.rdoc +16 -16
  255. data/rdoc/hist2d.rdoc +4 -4
  256. data/rdoc/hist3d.rdoc +3 -3
  257. data/rdoc/integration.rdoc +16 -16
  258. data/rdoc/interp.rdoc +11 -11
  259. data/rdoc/intro.rdoc +3 -3
  260. data/rdoc/linalg.rdoc +20 -20
  261. data/rdoc/linalg_complex.rdoc +1 -1
  262. data/rdoc/math.rdoc +13 -13
  263. data/rdoc/matrix.rdoc +22 -22
  264. data/rdoc/min.rdoc +9 -9
  265. data/rdoc/monte.rdoc +3 -3
  266. data/rdoc/multimin.rdoc +12 -12
  267. data/rdoc/multiroot.rdoc +12 -12
  268. data/rdoc/narray.rdoc +9 -9
  269. data/rdoc/ndlinear.rdoc +4 -4
  270. data/rdoc/nonlinearfit.rdoc +17 -17
  271. data/rdoc/ntuple.rdoc +5 -5
  272. data/rdoc/odeiv.rdoc +12 -12
  273. data/rdoc/perm.rdoc +11 -11
  274. data/rdoc/poly.rdoc +17 -17
  275. data/rdoc/qrng.rdoc +9 -9
  276. data/rdoc/randist.rdoc +10 -10
  277. data/rdoc/ref.rdoc +49 -49
  278. data/rdoc/rng.rdoc +9 -9
  279. data/rdoc/roots.rdoc +12 -12
  280. data/rdoc/sf.rdoc +35 -35
  281. data/rdoc/siman.rdoc +3 -3
  282. data/rdoc/sort.rdoc +6 -6
  283. data/rdoc/start.rdoc +2 -2
  284. data/rdoc/stats.rdoc +13 -13
  285. data/rdoc/sum.rdoc +4 -4
  286. data/rdoc/tensor.rdoc +3 -3
  287. data/rdoc/tut.rdoc +1 -1
  288. data/rdoc/use.rdoc +3 -3
  289. data/rdoc/vector.rdoc +28 -28
  290. data/rdoc/vector_complex.rdoc +6 -6
  291. data/rdoc/wavelet.rdoc +8 -8
  292. data/test/gsl/blas_test.rb +1 -1
  293. data/test/gsl/index_test.rb +61 -0
  294. data/test/gsl/matrix_test.rb +21 -0
  295. data/uncrustify.cfg +1693 -0
  296. metadata +212 -243
  297. data/README +0 -28
  298. data/ext/gsl/bspline.c +0 -130
  299. data/ext/gsl/const.c +0 -672
  300. data/ext/gsl/cqp.c +0 -283
  301. data/ext/gsl/fcmp.c +0 -64
  302. data/ext/gsl/fresnel.c +0 -312
  303. data/ext/gsl/jacobi.c +0 -739
  304. data/ext/gsl/ool.c +0 -879
  305. data/ext/gsl/oper_complex_source.c +0 -251
  306. data/ext/gsl/sf_mathieu.c +0 -238
  307. data/rdoc/index.rdoc +0 -50
@@ -12,22 +12,16 @@
12
12
  #include "include/rb_gsl_array.h"
13
13
  #include "include/rb_gsl_common.h"
14
14
 
15
- #ifdef GSL_1_6_LATER
16
15
  #include <gsl/gsl_wavelet.h>
17
16
  #include <gsl/gsl_wavelet2d.h>
18
- #endif
19
-
20
- #ifdef HAVE_NARRAY_H
21
- #include "narray.h"
22
- #endif
23
17
 
24
18
  #ifndef CHECK_WAVELET
25
- #define CHECK_WAVELET(x) if(!rb_obj_is_kind_of(x,cgsl_wavelet))\
19
+ #define CHECK_WAVELET(x) if(!rb_obj_is_kind_of(x,cgsl_wavelet)) \
26
20
  rb_raise(rb_eTypeError, "wrong argument type (Wavelet expected)");
27
21
  #endif
28
22
 
29
23
  #ifndef CHECK_WORKSPACE
30
- #define CHECK_WORKSPACE(x) if(!rb_obj_is_kind_of(x,cgsl_wavelet_workspace))\
24
+ #define CHECK_WORKSPACE(x) if(!rb_obj_is_kind_of(x,cgsl_wavelet_workspace)) \
31
25
  rb_raise(rb_eTypeError, "wrong argument type (Wavelet::Workspace expected)");
32
26
  #endif
33
27
 
@@ -47,14 +41,11 @@ enum {
47
41
  GSL_WAVELET_BSPLINE_CENTERED,
48
42
  };
49
43
 
50
- #ifdef GSL_1_6_LATER
51
44
  static const gsl_wavelet_type* rb_gsl_wavelet_get_type(VALUE t);
52
45
  static VALUE cgsl_wavelet_workspace;
53
- #endif
54
46
 
55
47
  static VALUE rb_gsl_wavelet_new(VALUE klass, VALUE t, VALUE m)
56
48
  {
57
- #ifdef GSL_1_6_LATER
58
49
  const gsl_wavelet_type *T;
59
50
  size_t member;
60
51
  gsl_wavelet *w = NULL;
@@ -64,13 +55,8 @@ static VALUE rb_gsl_wavelet_new(VALUE klass, VALUE t, VALUE m)
64
55
  w = gsl_wavelet_alloc(T, member);
65
56
  if (w == NULL) rb_raise(rb_eNoMemError, "gsl_wavelet_alloc failed");
66
57
  return Data_Wrap_Struct(klass, 0, gsl_wavelet_free, w);
67
- #else
68
- rb_raise(rb_eNotImpError, "Wavelet transforms not supported in GSL-%s, use GSL-1.6 or later", GSL_VERSION);
69
- return Qnil;
70
- #endif
71
58
  }
72
59
 
73
- #ifdef GSL_1_6_LATER
74
60
  static const gsl_wavelet_type* rb_gsl_wavelet_get_type_str(char *name);
75
61
  static const gsl_wavelet_type* rb_gsl_wavelet_get_type_int(int t);
76
62
  static const gsl_wavelet_type* rb_gsl_wavelet_get_type(VALUE t)
@@ -84,9 +70,9 @@ static const gsl_wavelet_type* rb_gsl_wavelet_get_type(VALUE t)
84
70
  T = rb_gsl_wavelet_get_type_int(FIX2INT(t));
85
71
  break;
86
72
  default:
87
- rb_raise(rb_eTypeError,
88
- "wrong type of argument %s (String or Fixnum expected)",
89
- rb_class2name(CLASS_OF(t)));
73
+ rb_raise(rb_eTypeError,
74
+ "wrong type of argument %s (String or Fixnum expected)",
75
+ rb_class2name(CLASS_OF(t)));
90
76
  break;
91
77
  }
92
78
  return T;
@@ -174,19 +160,19 @@ static VALUE rb_gsl_wavelet_workspace_new(VALUE klass, VALUE nn)
174
160
  }
175
161
 
176
162
  static VALUE rb_gsl_wavelet2d_trans(int argc, VALUE *argv, VALUE obj,
177
- int (*trans)(const gsl_wavelet *,
178
- gsl_matrix *,
179
- gsl_wavelet_workspace *),
180
- int sss);
163
+ int (*trans)(const gsl_wavelet *,
164
+ gsl_matrix *,
165
+ gsl_wavelet_workspace *),
166
+ int sss);
181
167
  static VALUE rb_gsl_wavelet2d(int argc, VALUE *argv, VALUE obj,
182
- int (*trans)(const gsl_wavelet *,
183
- gsl_matrix *,
184
- gsl_wavelet_direction,
185
- gsl_wavelet_workspace *),
186
- int sss);
168
+ int (*trans)(const gsl_wavelet *,
169
+ gsl_matrix *,
170
+ gsl_wavelet_direction,
171
+ gsl_wavelet_workspace *),
172
+ int sss);
187
173
 
188
174
  static VALUE rb_gsl_wavelet_transform0(int argc, VALUE *argv, VALUE obj,
189
- int sss)
175
+ int sss)
190
176
  {
191
177
  gsl_wavelet *w = NULL;
192
178
  gsl_vector *v = NULL, *vnew;
@@ -212,7 +198,7 @@ static VALUE rb_gsl_wavelet_transform0(int argc, VALUE *argv, VALUE obj,
212
198
 
213
199
  if (MATRIX_P(argv[1])) {
214
200
  return rb_gsl_wavelet2d(argc, argv, obj,
215
- gsl_wavelet2d_transform_matrix, sss);
201
+ gsl_wavelet2d_transform_matrix, sss);
216
202
  }
217
203
  if (VECTOR_P(argv[1])) {
218
204
  Data_Get_Struct(argv[0], gsl_wavelet, w);
@@ -237,10 +223,9 @@ static VALUE rb_gsl_wavelet_transform0(int argc, VALUE *argv, VALUE obj,
237
223
  break;
238
224
  default:
239
225
  if (argc < 1) rb_raise(rb_eArgError, "too few arguments");
240
-
241
226
  if (MATRIX_P(argv[0])) {
242
227
  return rb_gsl_wavelet2d(argc, argv, obj,
243
- gsl_wavelet2d_transform_matrix, sss);
228
+ gsl_wavelet2d_transform_matrix, sss);
244
229
  }
245
230
  if (VECTOR_P(obj)) {
246
231
  CHECK_WAVELET(argv[0]);
@@ -312,7 +297,7 @@ static VALUE rb_gsl_wavelet_transform0(int argc, VALUE *argv, VALUE obj,
312
297
  break;
313
298
  }
314
299
  if (naflag == 0) {
315
- if (sss == RB_GSL_DWT_COPY) {
300
+ if (sss == RB_GSL_DWT_COPY) {
316
301
  vnew = gsl_vector_alloc(v->size);
317
302
  gsl_vector_memcpy(vnew, v);
318
303
  ary = Data_Wrap_Struct(cgsl_vector, 0, gsl_vector_free, vnew);
@@ -349,10 +334,10 @@ static VALUE rb_gsl_wavelet_transform2(int argc, VALUE *argv, VALUE obj)
349
334
  }
350
335
 
351
336
  static VALUE rb_gsl_wavelet_trans(int argc, VALUE *argv, VALUE obj,
352
- int (*trans)(const gsl_wavelet *,
353
- double *, size_t, size_t,
354
- gsl_wavelet_workspace *),
355
- int sss)
337
+ int (*trans)(const gsl_wavelet *,
338
+ double *, size_t, size_t,
339
+ gsl_wavelet_workspace *),
340
+ int sss)
356
341
  {
357
342
  gsl_wavelet *w = NULL;
358
343
  gsl_vector *v = NULL, *vnew;
@@ -375,11 +360,11 @@ static VALUE rb_gsl_wavelet_trans(int argc, VALUE *argv, VALUE obj,
375
360
 
376
361
  if (MATRIX_P(argv[1])) {
377
362
  if (trans == gsl_wavelet_transform_forward) {
378
- return rb_gsl_wavelet2d_trans(argc, argv, obj,
379
- gsl_wavelet2d_transform_matrix_forward, sss);
363
+ return rb_gsl_wavelet2d_trans(argc, argv, obj,
364
+ gsl_wavelet2d_transform_matrix_forward, sss);
380
365
  } else {
381
- return rb_gsl_wavelet2d_trans(argc, argv, obj,
382
- gsl_wavelet2d_transform_matrix_inverse, sss);
366
+ return rb_gsl_wavelet2d_trans(argc, argv, obj,
367
+ gsl_wavelet2d_transform_matrix_inverse, sss);
383
368
  }
384
369
  }
385
370
  if (VECTOR_P(argv[1])) {
@@ -405,14 +390,13 @@ static VALUE rb_gsl_wavelet_trans(int argc, VALUE *argv, VALUE obj,
405
390
  break;
406
391
  default:
407
392
  if (argc < 1) rb_raise(rb_eArgError, "too few arguments");
408
-
409
393
  if (MATRIX_P(argv[0])) {
410
394
  if (trans == gsl_wavelet_transform_forward) {
411
- return rb_gsl_wavelet2d_trans(argc, argv, obj,
412
- gsl_wavelet2d_transform_matrix_forward, sss);
395
+ return rb_gsl_wavelet2d_trans(argc, argv, obj,
396
+ gsl_wavelet2d_transform_matrix_forward, sss);
413
397
  } else {
414
- return rb_gsl_wavelet2d_trans(argc, argv, obj,
415
- gsl_wavelet2d_transform_matrix_inverse, sss);
398
+ return rb_gsl_wavelet2d_trans(argc, argv, obj,
399
+ gsl_wavelet2d_transform_matrix_inverse, sss);
416
400
  }
417
401
  }
418
402
  if (VECTOR_P(obj)) {
@@ -500,33 +484,33 @@ static VALUE rb_gsl_wavelet_trans(int argc, VALUE *argv, VALUE obj,
500
484
  static VALUE rb_gsl_wavelet_transform_forward(int argc, VALUE *argv, VALUE obj)
501
485
  {
502
486
  return rb_gsl_wavelet_trans(argc, argv, obj, gsl_wavelet_transform_forward,
503
- RB_GSL_DWT_COPY);
487
+ RB_GSL_DWT_COPY);
504
488
  }
505
489
 
506
490
  static VALUE rb_gsl_wavelet_transform_inverse(int argc, VALUE *argv, VALUE obj)
507
491
  {
508
492
  return rb_gsl_wavelet_trans(argc, argv, obj, gsl_wavelet_transform_inverse,
509
- RB_GSL_DWT_COPY);
493
+ RB_GSL_DWT_COPY);
510
494
  }
511
495
 
512
496
  static VALUE rb_gsl_wavelet_transform_forward2(int argc, VALUE *argv, VALUE obj)
513
497
  {
514
498
  return rb_gsl_wavelet_trans(argc, argv, obj, gsl_wavelet_transform_forward,
515
- RB_GSL_DWT_INPLACE);
499
+ RB_GSL_DWT_INPLACE);
516
500
  }
517
501
 
518
502
  static VALUE rb_gsl_wavelet_transform_inverse2(int argc, VALUE *argv, VALUE obj)
519
503
  {
520
504
  return rb_gsl_wavelet_trans(argc, argv, obj, gsl_wavelet_transform_inverse,
521
- RB_GSL_DWT_INPLACE);
505
+ RB_GSL_DWT_INPLACE);
522
506
  }
523
507
 
524
508
  static VALUE rb_gsl_wavelet2d(int argc, VALUE *argv, VALUE obj,
525
- int (*trans)(const gsl_wavelet *,
526
- gsl_matrix *,
527
- gsl_wavelet_direction,
528
- gsl_wavelet_workspace *),
529
- int sss)
509
+ int (*trans)(const gsl_wavelet *,
510
+ gsl_matrix *,
511
+ gsl_wavelet_direction,
512
+ gsl_wavelet_workspace *),
513
+ int sss)
530
514
  {
531
515
  gsl_wavelet *w = NULL;
532
516
  gsl_matrix *m = NULL, *mnew;
@@ -605,20 +589,20 @@ static VALUE rb_gsl_wavelet2d(int argc, VALUE *argv, VALUE obj,
605
589
  static VALUE rb_gsl_wavelet2d_transform_matrix(int argc, VALUE *argv, VALUE obj)
606
590
  {
607
591
  return rb_gsl_wavelet2d(argc, argv, obj, gsl_wavelet2d_transform_matrix,
608
- RB_GSL_DWT_COPY);
592
+ RB_GSL_DWT_COPY);
609
593
  }
610
594
 
611
595
  static VALUE rb_gsl_wavelet2d_transform_matrix2(int argc, VALUE *argv, VALUE obj)
612
596
  {
613
597
  return rb_gsl_wavelet2d(argc, argv, obj, gsl_wavelet2d_transform_matrix,
614
- RB_GSL_DWT_INPLACE);
598
+ RB_GSL_DWT_INPLACE);
615
599
  }
616
600
 
617
601
  static VALUE rb_gsl_wavelet2d_trans(int argc, VALUE *argv, VALUE obj,
618
- int (*trans)(const gsl_wavelet *,
619
- gsl_matrix *,
620
- gsl_wavelet_workspace *),
621
- int sss)
602
+ int (*trans)(const gsl_wavelet *,
603
+ gsl_matrix *,
604
+ gsl_wavelet_workspace *),
605
+ int sss)
622
606
  {
623
607
  gsl_wavelet *w = NULL;
624
608
  gsl_matrix *m = NULL, *mnew;
@@ -682,75 +666,73 @@ static VALUE rb_gsl_wavelet2d_trans(int argc, VALUE *argv, VALUE obj,
682
666
 
683
667
  static VALUE rb_gsl_wavelet2d_transform_matrix_forward(int argc, VALUE *argv, VALUE obj)
684
668
  {
685
- return rb_gsl_wavelet2d_trans(argc, argv, obj,
686
- gsl_wavelet2d_transform_matrix_forward,
687
- RB_GSL_DWT_COPY);
669
+ return rb_gsl_wavelet2d_trans(argc, argv, obj,
670
+ gsl_wavelet2d_transform_matrix_forward,
671
+ RB_GSL_DWT_COPY);
688
672
  }
689
673
 
690
674
  static VALUE rb_gsl_wavelet2d_transform_matrix_forward2(int argc, VALUE *argv, VALUE obj)
691
675
  {
692
- return rb_gsl_wavelet2d_trans(argc, argv, obj,
693
- gsl_wavelet2d_transform_matrix_forward,
694
- RB_GSL_DWT_INPLACE);
676
+ return rb_gsl_wavelet2d_trans(argc, argv, obj,
677
+ gsl_wavelet2d_transform_matrix_forward,
678
+ RB_GSL_DWT_INPLACE);
695
679
  }
696
680
 
697
681
  static VALUE rb_gsl_wavelet2d_transform_matrix_inverse(int argc, VALUE *argv, VALUE obj)
698
682
  {
699
- return rb_gsl_wavelet2d_trans(argc, argv, obj,
700
- gsl_wavelet2d_transform_matrix_inverse,
701
- RB_GSL_DWT_COPY);
683
+ return rb_gsl_wavelet2d_trans(argc, argv, obj,
684
+ gsl_wavelet2d_transform_matrix_inverse,
685
+ RB_GSL_DWT_COPY);
702
686
  }
703
687
 
704
688
  static VALUE rb_gsl_wavelet2d_transform_matrix_inverse2(int argc, VALUE *argv, VALUE obj)
705
689
  {
706
- return rb_gsl_wavelet2d_trans(argc, argv, obj,
707
- gsl_wavelet2d_transform_matrix_inverse,
708
- RB_GSL_DWT_INPLACE);
690
+ return rb_gsl_wavelet2d_trans(argc, argv, obj,
691
+ gsl_wavelet2d_transform_matrix_inverse,
692
+ RB_GSL_DWT_INPLACE);
709
693
  }
710
694
 
711
695
  /** nstransform **/
712
696
  static VALUE rb_gsl_wavelet2d_nstransform_matrix(int argc, VALUE *argv, VALUE obj)
713
697
  {
714
698
  return rb_gsl_wavelet2d(argc, argv, obj, gsl_wavelet2d_nstransform_matrix,
715
- RB_GSL_DWT_COPY);
699
+ RB_GSL_DWT_COPY);
716
700
  }
717
701
 
718
702
  static VALUE rb_gsl_wavelet2d_nstransform_matrix2(int argc, VALUE *argv, VALUE obj)
719
703
  {
720
704
  return rb_gsl_wavelet2d(argc, argv, obj, gsl_wavelet2d_nstransform_matrix,
721
- RB_GSL_DWT_INPLACE);
705
+ RB_GSL_DWT_INPLACE);
722
706
  }
723
707
 
724
708
  static VALUE rb_gsl_wavelet2d_nstransform_matrix_forward(int argc, VALUE *argv, VALUE obj)
725
709
  {
726
- return rb_gsl_wavelet2d_trans(argc, argv, obj,
727
- gsl_wavelet2d_nstransform_matrix_forward,
728
- RB_GSL_DWT_COPY);
710
+ return rb_gsl_wavelet2d_trans(argc, argv, obj,
711
+ gsl_wavelet2d_nstransform_matrix_forward,
712
+ RB_GSL_DWT_COPY);
729
713
  }
730
714
 
731
715
  static VALUE rb_gsl_wavelet2d_nstransform_matrix_forward2(int argc, VALUE *argv, VALUE obj)
732
716
  {
733
- return rb_gsl_wavelet2d_trans(argc, argv, obj,
734
- gsl_wavelet2d_nstransform_matrix_forward,
735
- RB_GSL_DWT_INPLACE);
717
+ return rb_gsl_wavelet2d_trans(argc, argv, obj,
718
+ gsl_wavelet2d_nstransform_matrix_forward,
719
+ RB_GSL_DWT_INPLACE);
736
720
  }
737
721
 
738
722
  static VALUE rb_gsl_wavelet2d_nstransform_matrix_inverse(int argc, VALUE *argv, VALUE obj)
739
723
  {
740
- return rb_gsl_wavelet2d_trans(argc, argv, obj,
741
- gsl_wavelet2d_nstransform_matrix_inverse,
742
- RB_GSL_DWT_COPY);
724
+ return rb_gsl_wavelet2d_trans(argc, argv, obj,
725
+ gsl_wavelet2d_nstransform_matrix_inverse,
726
+ RB_GSL_DWT_COPY);
743
727
  }
744
728
 
745
729
  static VALUE rb_gsl_wavelet2d_nstransform_matrix_inverse2(int argc, VALUE *argv, VALUE obj)
746
730
  {
747
- return rb_gsl_wavelet2d_trans(argc, argv, obj,
748
- gsl_wavelet2d_nstransform_matrix_inverse,
749
- RB_GSL_DWT_INPLACE);
731
+ return rb_gsl_wavelet2d_trans(argc, argv, obj,
732
+ gsl_wavelet2d_nstransform_matrix_inverse,
733
+ RB_GSL_DWT_INPLACE);
750
734
  }
751
735
 
752
- #endif
753
-
754
736
  void Init_wavelet(VALUE module)
755
737
  {
756
738
  VALUE cgsl_wavelet2d;
@@ -760,183 +742,180 @@ void Init_wavelet(VALUE module)
760
742
 
761
743
  rb_define_singleton_method(cgsl_wavelet, "alloc", rb_gsl_wavelet_new, 2);
762
744
 
763
- #ifdef GSL_1_6_LATER
764
745
  rb_gsl_wavelet_define_const(cgsl_wavelet);
765
746
  rb_define_method(cgsl_wavelet, "name", rb_gsl_wavelet_name, 0);
766
747
 
767
748
  cgsl_wavelet_workspace = rb_define_class_under(cgsl_wavelet, "Workspace", cGSL_Object);
768
- rb_define_singleton_method(cgsl_wavelet_workspace, "alloc",
769
- rb_gsl_wavelet_workspace_new, 1);
749
+ rb_define_singleton_method(cgsl_wavelet_workspace, "alloc",
750
+ rb_gsl_wavelet_workspace_new, 1);
770
751
 
771
752
  /*****/
772
753
 
773
- rb_define_singleton_method(cgsl_wavelet, "transform",
774
- rb_gsl_wavelet_transform, -1);
754
+ rb_define_singleton_method(cgsl_wavelet, "transform",
755
+ rb_gsl_wavelet_transform, -1);
775
756
  rb_define_method(cgsl_wavelet, "transform", rb_gsl_wavelet_transform, -1);
776
757
  rb_define_method(cgsl_vector, "wavelet_transform", rb_gsl_wavelet_transform, -1);
777
- rb_define_singleton_method(cgsl_wavelet, "transform!",
778
- rb_gsl_wavelet_transform2, -1);
758
+ rb_define_singleton_method(cgsl_wavelet, "transform!",
759
+ rb_gsl_wavelet_transform2, -1);
779
760
  rb_define_method(cgsl_wavelet, "transform!", rb_gsl_wavelet_transform2, -1);
780
761
  rb_define_method(cgsl_vector, "wavelet_transform!", rb_gsl_wavelet_transform2, -1);
781
762
 
782
763
  /**/
783
764
 
784
- rb_define_singleton_method(cgsl_wavelet, "transform_forward",
785
- rb_gsl_wavelet_transform_forward, -1);
786
- rb_define_method(cgsl_wavelet, "transform_forward",
787
- rb_gsl_wavelet_transform_forward, -1);
765
+ rb_define_singleton_method(cgsl_wavelet, "transform_forward",
766
+ rb_gsl_wavelet_transform_forward, -1);
767
+ rb_define_method(cgsl_wavelet, "transform_forward",
768
+ rb_gsl_wavelet_transform_forward, -1);
788
769
  rb_define_alias(cgsl_wavelet, "forward", "transform_forward");
789
- rb_define_method(cgsl_vector, "wavelet_transform_forward",
790
- rb_gsl_wavelet_transform_forward, -1);
770
+ rb_define_method(cgsl_vector, "wavelet_transform_forward",
771
+ rb_gsl_wavelet_transform_forward, -1);
791
772
 
792
- rb_define_singleton_method(cgsl_wavelet, "transform_inverse",
793
- rb_gsl_wavelet_transform_inverse, -1);
794
- rb_define_method(cgsl_wavelet, "transform_inverse",
795
- rb_gsl_wavelet_transform_inverse, -1);
773
+ rb_define_singleton_method(cgsl_wavelet, "transform_inverse",
774
+ rb_gsl_wavelet_transform_inverse, -1);
775
+ rb_define_method(cgsl_wavelet, "transform_inverse",
776
+ rb_gsl_wavelet_transform_inverse, -1);
796
777
  rb_define_alias(cgsl_wavelet, "inverse", "transform_inverse");
797
- rb_define_method(cgsl_vector, "wavelet_transform_inverse",
798
- rb_gsl_wavelet_transform_inverse, -1);
778
+ rb_define_method(cgsl_vector, "wavelet_transform_inverse",
779
+ rb_gsl_wavelet_transform_inverse, -1);
799
780
 
800
- rb_define_singleton_method(cgsl_wavelet, "transform_forward!",
801
- rb_gsl_wavelet_transform_forward2, -1);
802
- rb_define_method(cgsl_wavelet, "transform_forward!",
803
- rb_gsl_wavelet_transform_forward2, -1);
781
+ rb_define_singleton_method(cgsl_wavelet, "transform_forward!",
782
+ rb_gsl_wavelet_transform_forward2, -1);
783
+ rb_define_method(cgsl_wavelet, "transform_forward!",
784
+ rb_gsl_wavelet_transform_forward2, -1);
804
785
  rb_define_alias(cgsl_wavelet, "forward!", "transform_forward!");
805
- rb_define_method(cgsl_vector, "wavelet_transform_forward!",
806
- rb_gsl_wavelet_transform_forward2, -1);
786
+ rb_define_method(cgsl_vector, "wavelet_transform_forward!",
787
+ rb_gsl_wavelet_transform_forward2, -1);
807
788
 
808
- rb_define_singleton_method(cgsl_wavelet, "transform_inverse!",
809
- rb_gsl_wavelet_transform_inverse2, -1);
810
- rb_define_method(cgsl_wavelet, "transform_inverse!",
811
- rb_gsl_wavelet_transform_inverse2, -1);
789
+ rb_define_singleton_method(cgsl_wavelet, "transform_inverse!",
790
+ rb_gsl_wavelet_transform_inverse2, -1);
791
+ rb_define_method(cgsl_wavelet, "transform_inverse!",
792
+ rb_gsl_wavelet_transform_inverse2, -1);
812
793
  rb_define_alias(cgsl_wavelet, "inverse!", "transform_inverse!");
813
- rb_define_method(cgsl_vector, "wavelet_transform_inverse!",
814
- rb_gsl_wavelet_transform_inverse2, -1);
794
+ rb_define_method(cgsl_vector, "wavelet_transform_inverse!",
795
+ rb_gsl_wavelet_transform_inverse2, -1);
815
796
  /***** 2d *****/
816
- rb_define_singleton_method(cgsl_wavelet, "transform_matrix",
817
- rb_gsl_wavelet2d_transform_matrix, -1);
818
- rb_define_singleton_method(cgsl_wavelet2d, "transform",
819
- rb_gsl_wavelet2d_transform_matrix, -1);
797
+ rb_define_singleton_method(cgsl_wavelet, "transform_matrix",
798
+ rb_gsl_wavelet2d_transform_matrix, -1);
799
+ rb_define_singleton_method(cgsl_wavelet2d, "transform",
800
+ rb_gsl_wavelet2d_transform_matrix, -1);
820
801
  rb_define_method(cgsl_wavelet, "transform_matrix",
821
- rb_gsl_wavelet2d_transform_matrix, -1);
822
- rb_define_method(cgsl_wavelet2d, "transform",
823
- rb_gsl_wavelet2d_transform_matrix, -1);
824
- rb_define_method(cgsl_matrix, "wavelet_transform",
825
- rb_gsl_wavelet2d_transform_matrix, -1);
826
-
827
- rb_define_singleton_method(cgsl_wavelet, "transform_matrix!",
828
- rb_gsl_wavelet2d_transform_matrix2, -1);
829
- rb_define_singleton_method(cgsl_wavelet2d, "transform!",
830
- rb_gsl_wavelet2d_transform_matrix2, -1);
802
+ rb_gsl_wavelet2d_transform_matrix, -1);
803
+ rb_define_method(cgsl_wavelet2d, "transform",
804
+ rb_gsl_wavelet2d_transform_matrix, -1);
805
+ rb_define_method(cgsl_matrix, "wavelet_transform",
806
+ rb_gsl_wavelet2d_transform_matrix, -1);
807
+
808
+ rb_define_singleton_method(cgsl_wavelet, "transform_matrix!",
809
+ rb_gsl_wavelet2d_transform_matrix2, -1);
810
+ rb_define_singleton_method(cgsl_wavelet2d, "transform!",
811
+ rb_gsl_wavelet2d_transform_matrix2, -1);
831
812
  rb_define_method(cgsl_wavelet, "transform_matrix!",
832
- rb_gsl_wavelet2d_transform_matrix2, -1);
833
- rb_define_method(cgsl_wavelet2d, "transform!",
834
- rb_gsl_wavelet2d_transform_matrix2, -1);
835
- rb_define_method(cgsl_matrix, "wavelet_transform!",
836
- rb_gsl_wavelet2d_transform_matrix2, -1);
813
+ rb_gsl_wavelet2d_transform_matrix2, -1);
814
+ rb_define_method(cgsl_wavelet2d, "transform!",
815
+ rb_gsl_wavelet2d_transform_matrix2, -1);
816
+ rb_define_method(cgsl_matrix, "wavelet_transform!",
817
+ rb_gsl_wavelet2d_transform_matrix2, -1);
837
818
  /**/
838
819
 
839
- rb_define_singleton_method(cgsl_wavelet, "transform_matrix_forward",
840
- rb_gsl_wavelet2d_transform_matrix_forward, -1);
841
- rb_define_singleton_method(cgsl_wavelet2d, "transform_forward",
842
- rb_gsl_wavelet2d_transform_matrix_forward, -1);
843
- rb_define_method(cgsl_wavelet, "transform_matrix_forward",
844
- rb_gsl_wavelet2d_transform_matrix_forward, -1);
845
- rb_define_method(cgsl_wavelet2d, "transform_forward",
846
- rb_gsl_wavelet2d_transform_matrix_forward, -1);
847
- rb_define_method(cgsl_matrix, "wavelet_transform_forward",
848
- rb_gsl_wavelet2d_transform_matrix_forward, -1);
849
-
850
- rb_define_singleton_method(cgsl_wavelet, "transform_matrix_forward!",
851
- rb_gsl_wavelet2d_transform_matrix_forward2, -1);
852
- rb_define_singleton_method(cgsl_wavelet2d, "transform_forward!",
853
- rb_gsl_wavelet2d_transform_matrix_forward2, -1);
854
- rb_define_method(cgsl_wavelet, "transform_matrix_forward!",
855
- rb_gsl_wavelet2d_transform_matrix_forward2, -1);
856
- rb_define_method(cgsl_wavelet2d, "transform_forward!",
857
- rb_gsl_wavelet2d_transform_matrix_forward2, -1);
858
- rb_define_method(cgsl_matrix, "wavelet_transform_forward!",
859
- rb_gsl_wavelet2d_transform_matrix_forward2, -1);
860
-
861
- rb_define_singleton_method(cgsl_wavelet, "transform_matrix_inverse",
862
- rb_gsl_wavelet2d_transform_matrix_inverse, -1);
863
- rb_define_singleton_method(cgsl_wavelet2d, "transform_inverse",
864
- rb_gsl_wavelet2d_transform_matrix_inverse, -1);
865
- rb_define_method(cgsl_wavelet, "transform_matrix_inverse",
866
- rb_gsl_wavelet2d_transform_matrix_inverse, -1);
867
- rb_define_method(cgsl_wavelet2d, "transform_inverse",
868
- rb_gsl_wavelet2d_transform_matrix_inverse, -1);
869
- rb_define_method(cgsl_matrix, "wavelet_transform_inverse",
870
- rb_gsl_wavelet2d_transform_matrix_inverse, -1);
871
-
872
- rb_define_singleton_method(cgsl_wavelet, "transform_matrix_inverse!",
873
- rb_gsl_wavelet2d_transform_matrix_inverse2, -1);
874
- rb_define_singleton_method(cgsl_wavelet2d, "transform_inverse!",
875
- rb_gsl_wavelet2d_transform_matrix_inverse2, -1);
876
- rb_define_method(cgsl_wavelet, "transform_matrix_inverse!",
877
- rb_gsl_wavelet2d_transform_matrix_inverse2, -1);
878
- rb_define_method(cgsl_wavelet2d, "transform_inverse!",
879
- rb_gsl_wavelet2d_transform_matrix_inverse2, -1);
880
- rb_define_method(cgsl_matrix, "wavelet_transform_inverse!",
881
- rb_gsl_wavelet2d_transform_matrix_inverse2, -1);
820
+ rb_define_singleton_method(cgsl_wavelet, "transform_matrix_forward",
821
+ rb_gsl_wavelet2d_transform_matrix_forward, -1);
822
+ rb_define_singleton_method(cgsl_wavelet2d, "transform_forward",
823
+ rb_gsl_wavelet2d_transform_matrix_forward, -1);
824
+ rb_define_method(cgsl_wavelet, "transform_matrix_forward",
825
+ rb_gsl_wavelet2d_transform_matrix_forward, -1);
826
+ rb_define_method(cgsl_wavelet2d, "transform_forward",
827
+ rb_gsl_wavelet2d_transform_matrix_forward, -1);
828
+ rb_define_method(cgsl_matrix, "wavelet_transform_forward",
829
+ rb_gsl_wavelet2d_transform_matrix_forward, -1);
830
+
831
+ rb_define_singleton_method(cgsl_wavelet, "transform_matrix_forward!",
832
+ rb_gsl_wavelet2d_transform_matrix_forward2, -1);
833
+ rb_define_singleton_method(cgsl_wavelet2d, "transform_forward!",
834
+ rb_gsl_wavelet2d_transform_matrix_forward2, -1);
835
+ rb_define_method(cgsl_wavelet, "transform_matrix_forward!",
836
+ rb_gsl_wavelet2d_transform_matrix_forward2, -1);
837
+ rb_define_method(cgsl_wavelet2d, "transform_forward!",
838
+ rb_gsl_wavelet2d_transform_matrix_forward2, -1);
839
+ rb_define_method(cgsl_matrix, "wavelet_transform_forward!",
840
+ rb_gsl_wavelet2d_transform_matrix_forward2, -1);
841
+
842
+ rb_define_singleton_method(cgsl_wavelet, "transform_matrix_inverse",
843
+ rb_gsl_wavelet2d_transform_matrix_inverse, -1);
844
+ rb_define_singleton_method(cgsl_wavelet2d, "transform_inverse",
845
+ rb_gsl_wavelet2d_transform_matrix_inverse, -1);
846
+ rb_define_method(cgsl_wavelet, "transform_matrix_inverse",
847
+ rb_gsl_wavelet2d_transform_matrix_inverse, -1);
848
+ rb_define_method(cgsl_wavelet2d, "transform_inverse",
849
+ rb_gsl_wavelet2d_transform_matrix_inverse, -1);
850
+ rb_define_method(cgsl_matrix, "wavelet_transform_inverse",
851
+ rb_gsl_wavelet2d_transform_matrix_inverse, -1);
852
+
853
+ rb_define_singleton_method(cgsl_wavelet, "transform_matrix_inverse!",
854
+ rb_gsl_wavelet2d_transform_matrix_inverse2, -1);
855
+ rb_define_singleton_method(cgsl_wavelet2d, "transform_inverse!",
856
+ rb_gsl_wavelet2d_transform_matrix_inverse2, -1);
857
+ rb_define_method(cgsl_wavelet, "transform_matrix_inverse!",
858
+ rb_gsl_wavelet2d_transform_matrix_inverse2, -1);
859
+ rb_define_method(cgsl_wavelet2d, "transform_inverse!",
860
+ rb_gsl_wavelet2d_transform_matrix_inverse2, -1);
861
+ rb_define_method(cgsl_matrix, "wavelet_transform_inverse!",
862
+ rb_gsl_wavelet2d_transform_matrix_inverse2, -1);
882
863
 
883
864
  /** nstransform **/
884
- rb_define_singleton_method(cgsl_wavelet, "nstransform_matrix",
885
- rb_gsl_wavelet2d_nstransform_matrix, -1);
886
- rb_define_singleton_method(cgsl_wavelet2d, "nstransform",
887
- rb_gsl_wavelet2d_nstransform_matrix, -1);
888
- rb_define_method(cgsl_wavelet, "nstransform_matrix",
889
- rb_gsl_wavelet2d_nstransform_matrix, -1);
890
- rb_define_method(cgsl_wavelet2d, "nstransform",
891
- rb_gsl_wavelet2d_nstransform_matrix, -1);
892
-
893
- rb_define_singleton_method(cgsl_wavelet, "nstransform_matrix!",
894
- rb_gsl_wavelet2d_nstransform_matrix2, -1);
895
- rb_define_singleton_method(cgsl_wavelet2d, "nstransform!",
896
- rb_gsl_wavelet2d_nstransform_matrix2, -1);
897
- rb_define_method(cgsl_wavelet, "nstransform_matrix!",
898
- rb_gsl_wavelet2d_nstransform_matrix2, -1);
899
- rb_define_method(cgsl_wavelet2d, "nstransform!",
900
- rb_gsl_wavelet2d_nstransform_matrix2, -1);
865
+ rb_define_singleton_method(cgsl_wavelet, "nstransform_matrix",
866
+ rb_gsl_wavelet2d_nstransform_matrix, -1);
867
+ rb_define_singleton_method(cgsl_wavelet2d, "nstransform",
868
+ rb_gsl_wavelet2d_nstransform_matrix, -1);
869
+ rb_define_method(cgsl_wavelet, "nstransform_matrix",
870
+ rb_gsl_wavelet2d_nstransform_matrix, -1);
871
+ rb_define_method(cgsl_wavelet2d, "nstransform",
872
+ rb_gsl_wavelet2d_nstransform_matrix, -1);
873
+
874
+ rb_define_singleton_method(cgsl_wavelet, "nstransform_matrix!",
875
+ rb_gsl_wavelet2d_nstransform_matrix2, -1);
876
+ rb_define_singleton_method(cgsl_wavelet2d, "nstransform!",
877
+ rb_gsl_wavelet2d_nstransform_matrix2, -1);
878
+ rb_define_method(cgsl_wavelet, "nstransform_matrix!",
879
+ rb_gsl_wavelet2d_nstransform_matrix2, -1);
880
+ rb_define_method(cgsl_wavelet2d, "nstransform!",
881
+ rb_gsl_wavelet2d_nstransform_matrix2, -1);
901
882
  /**/
902
883
 
903
- rb_define_singleton_method(cgsl_wavelet, "nstransform_matrix_forward",
904
- rb_gsl_wavelet2d_nstransform_matrix_forward, -1);
905
- rb_define_singleton_method(cgsl_wavelet2d, "nstransform_forward",
906
- rb_gsl_wavelet2d_nstransform_matrix_forward, -1);
907
- rb_define_method(cgsl_wavelet, "nstransform_matrix_forward",
908
- rb_gsl_wavelet2d_nstransform_matrix_forward, -1);
909
- rb_define_method(cgsl_wavelet2d, "nstransform_forward",
910
- rb_gsl_wavelet2d_nstransform_matrix_forward, -1);
911
-
912
- rb_define_singleton_method(cgsl_wavelet, "nstransform_matrix_forward!",
913
- rb_gsl_wavelet2d_nstransform_matrix_forward2, -1);
914
- rb_define_singleton_method(cgsl_wavelet2d, "nstransform_forward!",
915
- rb_gsl_wavelet2d_nstransform_matrix_forward2, -1);
916
- rb_define_method(cgsl_wavelet, "nstransform_matrix_forward!",
917
- rb_gsl_wavelet2d_nstransform_matrix_forward2, -1);
918
- rb_define_method(cgsl_wavelet2d, "nstransform_forward!",
919
- rb_gsl_wavelet2d_nstransform_matrix_forward2, -1);
920
-
921
- rb_define_singleton_method(cgsl_wavelet, "nstransform_matrix_inverse",
922
- rb_gsl_wavelet2d_nstransform_matrix_inverse, -1);
923
- rb_define_singleton_method(cgsl_wavelet2d, "nstransform_inverse",
924
- rb_gsl_wavelet2d_nstransform_matrix_inverse, -1);
925
- rb_define_method(cgsl_wavelet, "nstransform_matrix_inverse",
926
- rb_gsl_wavelet2d_nstransform_matrix_inverse, -1);
927
- rb_define_method(cgsl_wavelet2d, "nstransform_inverse",
928
- rb_gsl_wavelet2d_nstransform_matrix_inverse, -1);
929
-
930
- rb_define_singleton_method(cgsl_wavelet, "nstransform_matrix_inverse!",
931
- rb_gsl_wavelet2d_nstransform_matrix_inverse2, -1);
932
- rb_define_singleton_method(cgsl_wavelet2d, "nstransform_inverse!",
933
- rb_gsl_wavelet2d_nstransform_matrix_inverse2, -1);
934
- rb_define_method(cgsl_wavelet, "nstransform_matrix_inverse!",
935
- rb_gsl_wavelet2d_nstransform_matrix_inverse2, -1);
936
- rb_define_method(cgsl_wavelet2d, "nstransform_inverse!",
937
- rb_gsl_wavelet2d_nstransform_matrix_inverse2, -1);
938
-
939
- #endif
884
+ rb_define_singleton_method(cgsl_wavelet, "nstransform_matrix_forward",
885
+ rb_gsl_wavelet2d_nstransform_matrix_forward, -1);
886
+ rb_define_singleton_method(cgsl_wavelet2d, "nstransform_forward",
887
+ rb_gsl_wavelet2d_nstransform_matrix_forward, -1);
888
+ rb_define_method(cgsl_wavelet, "nstransform_matrix_forward",
889
+ rb_gsl_wavelet2d_nstransform_matrix_forward, -1);
890
+ rb_define_method(cgsl_wavelet2d, "nstransform_forward",
891
+ rb_gsl_wavelet2d_nstransform_matrix_forward, -1);
892
+
893
+ rb_define_singleton_method(cgsl_wavelet, "nstransform_matrix_forward!",
894
+ rb_gsl_wavelet2d_nstransform_matrix_forward2, -1);
895
+ rb_define_singleton_method(cgsl_wavelet2d, "nstransform_forward!",
896
+ rb_gsl_wavelet2d_nstransform_matrix_forward2, -1);
897
+ rb_define_method(cgsl_wavelet, "nstransform_matrix_forward!",
898
+ rb_gsl_wavelet2d_nstransform_matrix_forward2, -1);
899
+ rb_define_method(cgsl_wavelet2d, "nstransform_forward!",
900
+ rb_gsl_wavelet2d_nstransform_matrix_forward2, -1);
901
+
902
+ rb_define_singleton_method(cgsl_wavelet, "nstransform_matrix_inverse",
903
+ rb_gsl_wavelet2d_nstransform_matrix_inverse, -1);
904
+ rb_define_singleton_method(cgsl_wavelet2d, "nstransform_inverse",
905
+ rb_gsl_wavelet2d_nstransform_matrix_inverse, -1);
906
+ rb_define_method(cgsl_wavelet, "nstransform_matrix_inverse",
907
+ rb_gsl_wavelet2d_nstransform_matrix_inverse, -1);
908
+ rb_define_method(cgsl_wavelet2d, "nstransform_inverse",
909
+ rb_gsl_wavelet2d_nstransform_matrix_inverse, -1);
910
+
911
+ rb_define_singleton_method(cgsl_wavelet, "nstransform_matrix_inverse!",
912
+ rb_gsl_wavelet2d_nstransform_matrix_inverse2, -1);
913
+ rb_define_singleton_method(cgsl_wavelet2d, "nstransform_inverse!",
914
+ rb_gsl_wavelet2d_nstransform_matrix_inverse2, -1);
915
+ rb_define_method(cgsl_wavelet, "nstransform_matrix_inverse!",
916
+ rb_gsl_wavelet2d_nstransform_matrix_inverse2, -1);
917
+ rb_define_method(cgsl_wavelet2d, "nstransform_inverse!",
918
+ rb_gsl_wavelet2d_nstransform_matrix_inverse2, -1);
940
919
  }
941
920
 
942
921
  #undef CHECK_WAVELET