gsl 1.15.3 → 1.16.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (446) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +12 -0
  3. data/.travis.yml +24 -0
  4. data/AUTHORS +10 -2
  5. data/COPYING +341 -339
  6. data/ChangeLog +612 -554
  7. data/Gemfile +4 -0
  8. data/README.md +77 -0
  9. data/Rakefile +14 -93
  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/{alf.c → gsl_native/alf.c} +10 -10
  89. data/ext/{array.c → gsl_native/array.c} +70 -159
  90. data/ext/{array_complex.c → gsl_native/array_complex.c} +63 -66
  91. data/ext/{blas.c → gsl_native/blas.c} +2 -3
  92. data/ext/{blas1.c → gsl_native/blas1.c} +35 -36
  93. data/ext/{blas2.c → gsl_native/blas2.c} +57 -62
  94. data/ext/{blas3.c → gsl_native/blas3.c} +57 -58
  95. data/ext/{block.c → gsl_native/block.c} +14 -18
  96. data/ext/{block_source.c → gsl_native/block_source.h} +110 -112
  97. data/ext/gsl_native/bspline.c +122 -0
  98. data/ext/{bundle.c → gsl_native/bundle.c} +0 -0
  99. data/ext/{cdf.c → gsl_native/cdf.c} +79 -93
  100. data/ext/{cheb.c → gsl_native/cheb.c} +78 -89
  101. data/ext/{combination.c → gsl_native/combination.c} +11 -19
  102. data/ext/{common.c → gsl_native/common.c} +9 -41
  103. data/ext/{complex.c → gsl_native/complex.c} +116 -118
  104. data/ext/gsl_native/const.c +331 -0
  105. data/ext/{const_additional.c → gsl_native/const_additional.c} +13 -34
  106. data/ext/gsl_native/cqp.c +283 -0
  107. data/ext/{deriv.c → gsl_native/deriv.c} +25 -33
  108. data/ext/{dht.c → gsl_native/dht.c} +23 -31
  109. data/ext/{diff.c → gsl_native/diff.c} +26 -28
  110. data/ext/{dirac.c → gsl_native/dirac.c} +45 -46
  111. data/ext/{eigen.c → gsl_native/eigen.c} +1044 -1095
  112. data/ext/{error.c → gsl_native/error.c} +18 -18
  113. data/ext/gsl_native/extconf.rb +118 -0
  114. data/ext/{fft.c → gsl_native/fft.c} +197 -204
  115. data/ext/{fit.c → gsl_native/fit.c} +17 -18
  116. data/ext/gsl_native/fresnel.c +312 -0
  117. data/ext/{function.c → gsl_native/function.c} +37 -43
  118. data/ext/{geometry.c → gsl_native/geometry.c} +16 -16
  119. data/ext/{graph.c → gsl_native/graph.c} +39 -89
  120. data/ext/{gsl.c → gsl_native/gsl.c} +12 -33
  121. data/ext/{gsl_narray.c → gsl_native/gsl_narray.c} +20 -30
  122. data/ext/{histogram.c → gsl_native/histogram.c} +133 -160
  123. data/ext/{histogram2d.c → gsl_native/histogram2d.c} +78 -104
  124. data/ext/{histogram3d.c → gsl_native/histogram3d.c} +76 -76
  125. data/ext/{histogram3d_source.c → gsl_native/histogram3d_source.c} +196 -197
  126. data/ext/{histogram_find.c → gsl_native/histogram_find.c} +32 -34
  127. data/ext/{histogram_oper.c → gsl_native/histogram_oper.c} +43 -52
  128. data/ext/{ieee.c → gsl_native/ieee.c} +9 -21
  129. data/{include → ext/gsl_native/include}/rb_gsl.h +4 -26
  130. data/{include → ext/gsl_native/include}/rb_gsl_array.h +15 -39
  131. data/{include → ext/gsl_native/include}/rb_gsl_cheb.h +0 -2
  132. data/{include → ext/gsl_native/include}/rb_gsl_common.h +61 -61
  133. data/{include → ext/gsl_native/include}/rb_gsl_complex.h +1 -1
  134. data/{include → ext/gsl_native/include}/rb_gsl_const.h +0 -6
  135. data/ext/gsl_native/include/rb_gsl_dirac.h +6 -0
  136. data/{include → ext/gsl_native/include}/rb_gsl_eigen.h +1 -1
  137. data/{include → ext/gsl_native/include}/rb_gsl_fft.h +0 -13
  138. data/{include → ext/gsl_native/include}/rb_gsl_fit.h +0 -2
  139. data/{include → ext/gsl_native/include}/rb_gsl_function.h +0 -4
  140. data/{include → ext/gsl_native/include}/rb_gsl_graph.h +2 -4
  141. data/{include → ext/gsl_native/include}/rb_gsl_histogram.h +8 -8
  142. data/{include → ext/gsl_native/include}/rb_gsl_histogram3d.h +50 -50
  143. data/{include → ext/gsl_native/include}/rb_gsl_integration.h +1 -1
  144. data/{include → ext/gsl_native/include}/rb_gsl_interp.h +0 -5
  145. data/{include → ext/gsl_native/include}/rb_gsl_linalg.h +2 -6
  146. data/{include → ext/gsl_native/include}/rb_gsl_math.h +0 -6
  147. data/{include → ext/gsl_native/include}/rb_gsl_odeiv.h +0 -3
  148. data/{include → ext/gsl_native/include}/rb_gsl_poly.h +3 -7
  149. data/{include → ext/gsl_native/include}/rb_gsl_rational.h +1 -8
  150. data/{include → ext/gsl_native/include}/rb_gsl_rng.h +0 -1
  151. data/{include → ext/gsl_native/include}/rb_gsl_root.h +1 -1
  152. data/{include → ext/gsl_native/include}/rb_gsl_sf.h +39 -48
  153. data/{include → ext/gsl_native/include}/rb_gsl_statistics.h +1 -1
  154. data/{include → ext/gsl_native/include}/rb_gsl_tensor.h +0 -2
  155. data/{include → ext/gsl_native/include}/rb_gsl_with_narray.h +3 -1
  156. data/{include → ext/gsl_native/include}/templates_off.h +0 -0
  157. data/{include → ext/gsl_native/include}/templates_on.h +1 -1
  158. data/ext/{integration.c → gsl_native/integration.c} +164 -189
  159. data/ext/{interp.c → gsl_native/interp.c} +25 -38
  160. data/ext/gsl_native/jacobi.c +733 -0
  161. data/ext/{linalg.c → gsl_native/linalg.c} +462 -589
  162. data/ext/{linalg_complex.c → gsl_native/linalg_complex.c} +93 -106
  163. data/ext/{math.c → gsl_native/math.c} +48 -67
  164. data/ext/{matrix.c → gsl_native/matrix.c} +13 -16
  165. data/ext/{matrix_complex.c → gsl_native/matrix_complex.c} +119 -123
  166. data/ext/{matrix_double.c → gsl_native/matrix_double.c} +79 -82
  167. data/ext/{matrix_int.c → gsl_native/matrix_int.c} +53 -54
  168. data/ext/{matrix_source.c → gsl_native/matrix_source.h} +292 -318
  169. data/ext/{min.c → gsl_native/min.c} +45 -76
  170. data/ext/{monte.c → gsl_native/monte.c} +50 -64
  171. data/ext/{multifit.c → gsl_native/multifit.c} +142 -151
  172. data/ext/{multimin.c → gsl_native/multimin.c} +64 -92
  173. data/ext/{multimin_fsdf.c → gsl_native/multimin_fsdf.c} +16 -16
  174. data/ext/{multiroots.c → gsl_native/multiroots.c} +73 -76
  175. data/ext/{multiset.c → gsl_native/multiset.c} +4 -8
  176. data/ext/{ndlinear.c → gsl_native/ndlinear.c} +320 -321
  177. data/ext/{nmf.c → gsl_native/nmf.c} +11 -11
  178. data/ext/{nmf_wrap.c → gsl_native/nmf_wrap.c} +1 -1
  179. data/ext/{ntuple.c → gsl_native/ntuple.c} +23 -23
  180. data/ext/{odeiv.c → gsl_native/odeiv.c} +101 -116
  181. data/ext/gsl_native/ool.c +879 -0
  182. data/ext/{permutation.c → gsl_native/permutation.c} +39 -37
  183. data/ext/{poly.c → gsl_native/poly.c} +10 -13
  184. data/ext/{poly2.c → gsl_native/poly2.c} +16 -16
  185. data/ext/{poly_source.c → gsl_native/poly_source.h} +249 -293
  186. data/ext/{qrng.c → gsl_native/qrng.c} +9 -20
  187. data/ext/{randist.c → gsl_native/randist.c} +222 -247
  188. data/ext/{rational.c → gsl_native/rational.c} +12 -12
  189. data/ext/{rng.c → gsl_native/rng.c} +30 -47
  190. data/ext/{root.c → gsl_native/root.c} +47 -48
  191. data/ext/{sf.c → gsl_native/sf.c} +196 -244
  192. data/ext/{sf_airy.c → gsl_native/sf_airy.c} +2 -2
  193. data/ext/{sf_bessel.c → gsl_native/sf_bessel.c} +7 -7
  194. data/ext/{sf_clausen.c → gsl_native/sf_clausen.c} +1 -1
  195. data/ext/{sf_coulomb.c → gsl_native/sf_coulomb.c} +40 -40
  196. data/ext/{sf_coupling.c → gsl_native/sf_coupling.c} +30 -30
  197. data/ext/{sf_dawson.c → gsl_native/sf_dawson.c} +1 -1
  198. data/ext/{sf_debye.c → gsl_native/sf_debye.c} +1 -10
  199. data/ext/{sf_dilog.c → gsl_native/sf_dilog.c} +1 -1
  200. data/ext/{sf_elementary.c → gsl_native/sf_elementary.c} +3 -3
  201. data/ext/{sf_ellint.c → gsl_native/sf_ellint.c} +43 -43
  202. data/ext/{sf_elljac.c → gsl_native/sf_elljac.c} +3 -3
  203. data/ext/{sf_erfc.c → gsl_native/sf_erfc.c} +1 -5
  204. data/ext/{sf_exp.c → gsl_native/sf_exp.c} +3 -3
  205. data/ext/{sf_expint.c → gsl_native/sf_expint.c} +2 -12
  206. data/ext/{sf_fermi_dirac.c → gsl_native/sf_fermi_dirac.c} +1 -1
  207. data/ext/{sf_gamma.c → gsl_native/sf_gamma.c} +2 -6
  208. data/ext/{sf_gegenbauer.c → gsl_native/sf_gegenbauer.c} +1 -1
  209. data/ext/{sf_hyperg.c → gsl_native/sf_hyperg.c} +1 -1
  210. data/ext/{sf_laguerre.c → gsl_native/sf_laguerre.c} +4 -4
  211. data/ext/{sf_lambert.c → gsl_native/sf_lambert.c} +1 -1
  212. data/ext/{sf_legendre.c → gsl_native/sf_legendre.c} +1 -1
  213. data/ext/{sf_log.c → gsl_native/sf_log.c} +4 -4
  214. data/ext/gsl_native/sf_mathieu.c +235 -0
  215. data/ext/{sf_power.c → gsl_native/sf_power.c} +1 -1
  216. data/ext/{sf_psi.c → gsl_native/sf_psi.c} +3 -12
  217. data/ext/{sf_synchrotron.c → gsl_native/sf_synchrotron.c} +1 -1
  218. data/ext/{sf_transport.c → gsl_native/sf_transport.c} +1 -1
  219. data/ext/{sf_trigonometric.c → gsl_native/sf_trigonometric.c} +4 -4
  220. data/ext/{sf_zeta.c → gsl_native/sf_zeta.c} +1 -5
  221. data/ext/{signal.c → gsl_native/signal.c} +63 -68
  222. data/ext/{siman.c → gsl_native/siman.c} +45 -49
  223. data/ext/{sort.c → gsl_native/sort.c} +6 -7
  224. data/ext/{spline.c → gsl_native/spline.c} +28 -46
  225. data/ext/{stats.c → gsl_native/stats.c} +105 -118
  226. data/ext/{sum.c → gsl_native/sum.c} +34 -34
  227. data/ext/{tamu_anova.c → gsl_native/tamu_anova.c} +1 -1
  228. data/ext/{tensor.c → gsl_native/tensor.c} +8 -11
  229. data/ext/{tensor_source.c → gsl_native/tensor_source.h} +147 -148
  230. data/ext/{vector.c → gsl_native/vector.c} +11 -14
  231. data/ext/{vector_complex.c → gsl_native/vector_complex.c} +179 -184
  232. data/ext/{vector_double.c → gsl_native/vector_double.c} +178 -183
  233. data/ext/{vector_int.c → gsl_native/vector_int.c} +27 -29
  234. data/ext/{vector_source.c → gsl_native/vector_source.h} +428 -443
  235. data/ext/{wavelet.c → gsl_native/wavelet.c} +224 -246
  236. data/gsl.gemspec +29 -0
  237. data/lib/gsl.rb +8 -3
  238. data/lib/gsl/gnuplot.rb +3 -3
  239. data/lib/gsl/oper.rb +35 -60
  240. data/lib/gsl/version.rb +3 -0
  241. data/lib/rbgsl.rb +1 -3
  242. data/rdoc/alf.rdoc +5 -5
  243. data/rdoc/blas.rdoc +9 -9
  244. data/rdoc/bspline.rdoc +17 -17
  245. data/rdoc/changes.rdoc +4 -9
  246. data/rdoc/cheb.rdoc +25 -25
  247. data/rdoc/cholesky_complex.rdoc +21 -21
  248. data/rdoc/combi.rdoc +37 -37
  249. data/rdoc/complex.rdoc +22 -22
  250. data/rdoc/const.rdoc +47 -47
  251. data/rdoc/dht.rdoc +49 -49
  252. data/rdoc/diff.rdoc +42 -42
  253. data/rdoc/ehandling.rdoc +6 -6
  254. data/rdoc/eigen.rdoc +153 -153
  255. data/rdoc/fft.rdoc +146 -146
  256. data/rdoc/fit.rdoc +109 -109
  257. data/rdoc/function.rdoc +11 -11
  258. data/rdoc/graph.rdoc +17 -17
  259. data/rdoc/hist.rdoc +103 -103
  260. data/rdoc/hist2d.rdoc +42 -42
  261. data/rdoc/hist3d.rdoc +9 -9
  262. data/rdoc/integration.rdoc +110 -110
  263. data/rdoc/interp.rdoc +71 -71
  264. data/rdoc/intro.rdoc +8 -8
  265. data/rdoc/linalg.rdoc +188 -188
  266. data/rdoc/linalg_complex.rdoc +1 -1
  267. data/rdoc/math.rdoc +58 -58
  268. data/rdoc/matrix.rdoc +275 -275
  269. data/rdoc/min.rdoc +57 -57
  270. data/rdoc/monte.rdoc +22 -22
  271. data/rdoc/multimin.rdoc +95 -95
  272. data/rdoc/multiroot.rdoc +80 -80
  273. data/rdoc/narray.rdoc +32 -32
  274. data/rdoc/ndlinear.rdoc +54 -54
  275. data/rdoc/nonlinearfit.rdoc +100 -100
  276. data/rdoc/ntuple.rdoc +31 -31
  277. data/rdoc/odeiv.rdoc +88 -88
  278. data/rdoc/perm.rdoc +90 -90
  279. data/rdoc/poly.rdoc +66 -66
  280. data/rdoc/qrng.rdoc +21 -21
  281. data/rdoc/randist.rdoc +82 -82
  282. data/rdoc/ref.rdoc +57 -57
  283. data/rdoc/rng.rdoc +85 -85
  284. data/rdoc/roots.rdoc +57 -57
  285. data/rdoc/sf.rdoc +428 -428
  286. data/rdoc/siman.rdoc +19 -19
  287. data/rdoc/sort.rdoc +30 -30
  288. data/rdoc/start.rdoc +8 -8
  289. data/rdoc/stats.rdoc +52 -52
  290. data/rdoc/sum.rdoc +12 -12
  291. data/rdoc/tensor.rdoc +31 -31
  292. data/rdoc/tut.rdoc +1 -1
  293. data/rdoc/use.rdoc +39 -39
  294. data/rdoc/vector.rdoc +188 -188
  295. data/rdoc/vector_complex.rdoc +24 -24
  296. data/rdoc/wavelet.rdoc +46 -46
  297. data/test/gsl/blas_test.rb +79 -0
  298. data/test/gsl/bspline_test.rb +63 -0
  299. data/test/gsl/cdf_test.rb +1512 -0
  300. data/test/gsl/cheb_test.rb +80 -0
  301. data/test/gsl/combination_test.rb +100 -0
  302. data/test/gsl/complex_test.rb +20 -0
  303. data/test/gsl/const_test.rb +29 -0
  304. data/test/gsl/deriv_test.rb +62 -0
  305. data/test/gsl/dht_test.rb +79 -0
  306. data/test/gsl/diff_test.rb +53 -0
  307. data/test/gsl/eigen_test.rb +563 -0
  308. data/test/gsl/err_test.rb +23 -0
  309. data/test/gsl/fit_test.rb +101 -0
  310. data/test/gsl/histo_test.rb +14 -0
  311. data/test/gsl/index_test.rb +61 -0
  312. data/test/gsl/integration_test.rb +274 -0
  313. data/test/gsl/interp_test.rb +27 -0
  314. data/test/gsl/linalg_test.rb +463 -0
  315. data/test/gsl/matrix_nmf_test.rb +37 -0
  316. data/test/gsl/matrix_test.rb +98 -0
  317. data/test/gsl/min_test.rb +89 -0
  318. data/test/gsl/monte_test.rb +77 -0
  319. data/test/gsl/multifit_test.rb +753 -0
  320. data/test/gsl/multimin_test.rb +157 -0
  321. data/test/gsl/multiroot_test.rb +135 -0
  322. data/test/gsl/multiset_test.rb +52 -0
  323. data/test/gsl/odeiv_test.rb +275 -0
  324. data/test/gsl/oper_test.rb +98 -0
  325. data/test/gsl/poly_test.rb +338 -0
  326. data/test/gsl/qrng_test.rb +94 -0
  327. data/test/gsl/quartic_test.rb +28 -0
  328. data/test/gsl/randist_test.rb +122 -0
  329. data/test/gsl/rng_test.rb +303 -0
  330. data/test/gsl/roots_test.rb +78 -0
  331. data/test/gsl/sf_test.rb +2079 -0
  332. data/test/gsl/stats_test.rb +122 -0
  333. data/test/gsl/sum_test.rb +69 -0
  334. data/test/gsl/tensor_test.rb +396 -0
  335. data/test/gsl/vector_test.rb +223 -0
  336. data/test/gsl/wavelet_test.rb +130 -0
  337. data/test/gsl_test.rb +321 -0
  338. data/test/test_helper.rb +42 -0
  339. data/uncrustify.cfg +1693 -0
  340. metadata +337 -378
  341. data/README +0 -32
  342. data/VERSION +0 -1
  343. data/ext/bspline.c +0 -130
  344. data/ext/const.c +0 -673
  345. data/ext/cqp.c +0 -283
  346. data/ext/extconf.rb +0 -295
  347. data/ext/fcmp.c +0 -66
  348. data/ext/fresnel.c +0 -312
  349. data/ext/jacobi.c +0 -739
  350. data/ext/ool.c +0 -879
  351. data/ext/oper_complex_source.c +0 -253
  352. data/ext/sf_mathieu.c +0 -238
  353. data/include/rb_gsl_config.h +0 -62
  354. data/include/rb_gsl_dirac.h +0 -13
  355. data/rdoc/index.rdoc +0 -62
  356. data/rdoc/rngextra.rdoc +0 -11
  357. data/rdoc/screenshot.rdoc +0 -40
  358. data/setup.rb +0 -1585
  359. data/tests/blas/amax.rb +0 -14
  360. data/tests/blas/asum.rb +0 -16
  361. data/tests/blas/axpy.rb +0 -25
  362. data/tests/blas/copy.rb +0 -23
  363. data/tests/blas/dot.rb +0 -23
  364. data/tests/bspline.rb +0 -53
  365. data/tests/cdf.rb +0 -1388
  366. data/tests/cheb.rb +0 -112
  367. data/tests/combination.rb +0 -123
  368. data/tests/complex.rb +0 -17
  369. data/tests/const.rb +0 -24
  370. data/tests/deriv.rb +0 -85
  371. data/tests/dht/dht1.rb +0 -17
  372. data/tests/dht/dht2.rb +0 -23
  373. data/tests/dht/dht3.rb +0 -23
  374. data/tests/dht/dht4.rb +0 -23
  375. data/tests/diff.rb +0 -78
  376. data/tests/eigen/eigen.rb +0 -220
  377. data/tests/eigen/gen.rb +0 -105
  378. data/tests/eigen/genherm.rb +0 -66
  379. data/tests/eigen/gensymm.rb +0 -68
  380. data/tests/eigen/nonsymm.rb +0 -53
  381. data/tests/eigen/nonsymmv.rb +0 -53
  382. data/tests/eigen/symm-herm.rb +0 -74
  383. data/tests/err.rb +0 -58
  384. data/tests/fit.rb +0 -124
  385. data/tests/gsl_test.rb +0 -118
  386. data/tests/gsl_test2.rb +0 -110
  387. data/tests/histo.rb +0 -12
  388. data/tests/integration/integration1.rb +0 -72
  389. data/tests/integration/integration2.rb +0 -71
  390. data/tests/integration/integration3.rb +0 -71
  391. data/tests/integration/integration4.rb +0 -71
  392. data/tests/interp.rb +0 -45
  393. data/tests/linalg/HH.rb +0 -64
  394. data/tests/linalg/LU.rb +0 -47
  395. data/tests/linalg/QR.rb +0 -77
  396. data/tests/linalg/SV.rb +0 -24
  397. data/tests/linalg/TDN.rb +0 -116
  398. data/tests/linalg/TDS.rb +0 -122
  399. data/tests/linalg/bidiag.rb +0 -73
  400. data/tests/linalg/cholesky.rb +0 -20
  401. data/tests/linalg/linalg.rb +0 -158
  402. data/tests/matrix/matrix_complex_test.rb +0 -36
  403. data/tests/matrix/matrix_nmf_test.rb +0 -39
  404. data/tests/matrix/matrix_test.rb +0 -48
  405. data/tests/min.rb +0 -99
  406. data/tests/monte/miser.rb +0 -31
  407. data/tests/monte/vegas.rb +0 -45
  408. data/tests/multifit/test_2dgauss.rb +0 -112
  409. data/tests/multifit/test_brown.rb +0 -90
  410. data/tests/multifit/test_enso.rb +0 -246
  411. data/tests/multifit/test_filip.rb +0 -155
  412. data/tests/multifit/test_gauss.rb +0 -97
  413. data/tests/multifit/test_longley.rb +0 -110
  414. data/tests/multifit/test_multifit.rb +0 -52
  415. data/tests/multimin.rb +0 -139
  416. data/tests/multiroot.rb +0 -131
  417. data/tests/multiset.rb +0 -52
  418. data/tests/narray/blas_dnrm2.rb +0 -20
  419. data/tests/odeiv.rb +0 -353
  420. data/tests/poly/poly.rb +0 -290
  421. data/tests/poly/special.rb +0 -65
  422. data/tests/qrng.rb +0 -131
  423. data/tests/quartic.rb +0 -29
  424. data/tests/randist.rb +0 -134
  425. data/tests/rng.rb +0 -305
  426. data/tests/roots.rb +0 -76
  427. data/tests/run-test.sh +0 -17
  428. data/tests/sf/gsl_test_sf.rb +0 -249
  429. data/tests/sf/test_airy.rb +0 -83
  430. data/tests/sf/test_bessel.rb +0 -306
  431. data/tests/sf/test_coulomb.rb +0 -17
  432. data/tests/sf/test_dilog.rb +0 -25
  433. data/tests/sf/test_gamma.rb +0 -209
  434. data/tests/sf/test_hyperg.rb +0 -356
  435. data/tests/sf/test_legendre.rb +0 -227
  436. data/tests/sf/test_mathieu.rb +0 -59
  437. data/tests/sf/test_mode.rb +0 -19
  438. data/tests/sf/test_sf.rb +0 -839
  439. data/tests/stats.rb +0 -174
  440. data/tests/stats_mt.rb +0 -16
  441. data/tests/sum.rb +0 -98
  442. data/tests/sys.rb +0 -323
  443. data/tests/tensor.rb +0 -419
  444. data/tests/vector/vector_complex_test.rb +0 -101
  445. data/tests/vector/vector_test.rb +0 -141
  446. data/tests/wavelet.rb +0 -142
@@ -83,6 +83,6 @@
83
83
  # * GSL::Linalg::Complex::LU::LUMatrix#sgndet(signum)
84
84
  #
85
85
  #
86
- # {back}[link:files/rdoc/linalg_rdoc.html]
86
+ # {back}[link:rdoc/linalg_rdoc.html]
87
87
  #
88
88
  #
@@ -1,18 +1,18 @@
1
1
  #
2
2
  # = Mathematical Functions
3
3
  # Contents:
4
- # 1. {Mathematical Constants}[link:files/rdoc/math_rdoc.html#1]
5
- # 1. {Infinities and Not-a-number}[link:files/rdoc/math_rdoc.html#2]
6
- # 1. {Constants}[link:files/rdoc/math_rdoc.html#2.1]
7
- # 1. {Module functions}[link:files/rdoc/math_rdoc.html#2.2]
8
- # 1. {Elementary Functions}[link:files/rdoc/math_rdoc.html#3]
9
- # 1. {Small Integer Powers}[link:files/rdoc/math_rdoc.html#4]
10
- # 1. {Testing the Sign of Numbers}[link:files/rdoc/math_rdoc.html#5]
11
- # 1. {Testing for Odd and Even Numbers}[link:files/rdoc/math_rdoc.html#6]
12
- # 1. {Maximum and Minimum functions}[link:files/rdoc/math_rdoc.html#7]
13
- # 1. {Approximate Comparison of Floating Point Numbers}[link:files/rdoc/math_rdoc.html#8]
14
- #
15
- # == {}[link:index.html"name="1] Mathematical Constants
4
+ # 1. {Mathematical Constants}[link:rdoc/math_rdoc.html#label-Mathematical+Constants]
5
+ # 1. {Infinities and Not-a-number}[link:rdoc/math_rdoc.html#label-Infinities+and+Not-a-number]
6
+ # 1. {Constants}[link:rdoc/math_rdoc.html#label-Constants]
7
+ # 1. {Module functions}[link:rdoc/math_rdoc.html#label-Module+functions]
8
+ # 1. {Elementary Functions}[link:rdoc/math_rdoc.html#label-Elementary+Functions]
9
+ # 1. {Small Integer Powers}[link:rdoc/math_rdoc.html#label-Small+Integer+Powers]
10
+ # 1. {Testing the Sign of Numbers}[link:rdoc/math_rdoc.html#label-Testing+the+Sign+of+Numbers]
11
+ # 1. {Testing for Odd and Even Numbers}[link:rdoc/math_rdoc.html#label-Testing+for+Odd+and+Even+Numbers]
12
+ # 1. {Maximum and Minimum functions}[link:rdoc/math_rdoc.html#label-Maximum+and+Minimum+functions]
13
+ # 1. {Approximate Comparison of Floating Point Numbers}[link:rdoc/math_rdoc.html#label-Approximate+Comparison+of+Floating+Point+Numbers]
14
+ #
15
+ # == Mathematical Constants
16
16
  # ---
17
17
  # * GSL::M_E
18
18
  #
@@ -82,18 +82,18 @@
82
82
  #
83
83
  # Euler's constant
84
84
  #
85
- # == {}[link:index.html"name="2] Infinities and Not-a-number
85
+ # == Infinities and Not-a-number
86
86
  #
87
- # === {}[link:index.html"name="2.1] Constants
87
+ # === Constants
88
88
  # ---
89
89
  # * GSL::POSINF
90
90
  #
91
- # The IEEE representation of positive infinity,
91
+ # The IEEE representation of positive infinity,
92
92
  # computed from the expression +1.0/0.0.
93
93
  # ---
94
94
  # * GSL::NEGINF
95
95
  #
96
- # The IEEE representation of negative infinity,
96
+ # The IEEE representation of negative infinity,
97
97
  # computed from the expression -1.0/0.0.
98
98
  # ---
99
99
  # * GSL::NAN
@@ -101,7 +101,7 @@
101
101
  # The IEEE representation of the Not-a-Number symbol,
102
102
  # computed from the ratio 0.0/0.0.
103
103
  #
104
- # === {}[link:index.html"name="2.2] Module functions
104
+ # === Module functions
105
105
  # ---
106
106
  # * GSL::isnan(x)
107
107
  #
@@ -113,59 +113,59 @@
113
113
  # ---
114
114
  # * GSL::isinf(x)
115
115
  #
116
- # This returns +1 if <tt>x</tt> is positive infinity,
116
+ # This returns +1 if <tt>x</tt> is positive infinity,
117
117
  # -1 if <tt>x</tt> is negative infinity and 0 otherwise.
118
118
  # NOTE: In Darwin9.5.0-gcc4.0.1, this method returns 1 for -inf.
119
119
  # ---
120
120
  # * GSL::isinf?(x)
121
121
  #
122
- # This returns <tt>true</tt> if <tt>x</tt> is positive or negative infinity,
122
+ # This returns <tt>true</tt> if <tt>x</tt> is positive or negative infinity,
123
123
  # and <tt>false</tt> otherwise.
124
124
  # ---
125
125
  # * GSL::finite(x)
126
126
  #
127
- # This returns 1 if <tt>x</tt> is a real number,
127
+ # This returns 1 if <tt>x</tt> is a real number,
128
128
  # and 0 if it is infinite or not-a-number.
129
129
  # ---
130
130
  # * GSL::finite?(x)
131
131
  #
132
- # This returns <tt>true</tt> if <tt>x</tt> is a real number,
132
+ # This returns <tt>true</tt> if <tt>x</tt> is a real number,
133
133
  # and <tt>false</tt> if it is infinite or not-a-number.
134
134
  #
135
- # == {}[link:index.html"name="3] Elementary Functions
135
+ # == Elementary Functions
136
136
  # ---
137
137
  # * GSL::log1p(x)
138
138
  #
139
- # This method computes the value of log(1+x)
140
- # in a way that is accurate for small <tt>x</tt>. It provides an alternative
139
+ # This method computes the value of log(1+x)
140
+ # in a way that is accurate for small <tt>x</tt>. It provides an alternative
141
141
  # to the BSD math function log1p(x).
142
142
  # ---
143
143
  # * GSL::expm1(x)
144
144
  #
145
- # This method computes the value of exp(x)-1
146
- # in a way that is accurate for small <tt>x</tt>. It provides an alternative
145
+ # This method computes the value of exp(x)-1
146
+ # in a way that is accurate for small <tt>x</tt>. It provides an alternative
147
147
  # to the BSD math function expm1(x).
148
148
  # ---
149
149
  # * GSL::hypot(x, y)
150
150
  #
151
- # This method computes the value of sqrt{x^2 + y^2} in a way that
151
+ # This method computes the value of sqrt{x^2 + y^2} in a way that
152
152
  # avoids overflow.
153
153
  # ---
154
- # * GSL::hypot3(x, y, z)
154
+ # * GSL::hypot3(x, y, z)
155
155
  #
156
- # Computes the value of sqrt{x^2 + y^2 + z^2} in a way that avoids overflow.
156
+ # Computes the value of sqrt{x^2 + y^2 + z^2} in a way that avoids overflow.
157
157
  # ---
158
158
  # * GSL::acosh(x)
159
159
  #
160
- # This method computes the value of arccosh(x).
160
+ # This method computes the value of arccosh(x).
161
161
  # ---
162
162
  # * GSL::asinh(x)
163
163
  #
164
- # This method computes the value of arcsinh(x).
164
+ # This method computes the value of arcsinh(x).
165
165
  # ---
166
166
  # * GSL::atanh(x)
167
167
  #
168
- # This method computes the value of arctanh(x).
168
+ # This method computes the value of arctanh(x).
169
169
  #
170
170
  # These methods above can take argument <tt>x</tt> of
171
171
  # Integer, Float, Array, Vector or Matrix.
@@ -173,22 +173,22 @@
173
173
  # ---
174
174
  # * GSL::ldexp(x)
175
175
  #
176
- # This method computes the value of x * 2^e.
176
+ # This method computes the value of x * 2^e.
177
177
  # ---
178
178
  # * GSL::frexp(x)
179
179
  #
180
- # This method splits the number <tt>x</tt> into its normalized fraction
181
- # f and exponent e, such that x = f * 2^e and 0.5 <= f < 1.
182
- # The method returns f and the exponent e as an array, [f, e].
183
- # If <tt>x</tt> is zero, both f and e are set to zero.
180
+ # This method splits the number <tt>x</tt> into its normalized fraction
181
+ # f and exponent e, such that x = f * 2^e and 0.5 <= f < 1.
182
+ # The method returns f and the exponent e as an array, [f, e].
183
+ # If <tt>x</tt> is zero, both f and e are set to zero.
184
184
  #
185
- # == {}[link:index.html"name="4] Small Integer Powers
185
+ # == Small Integer Powers
186
186
  # ---
187
187
  # * GSL::pow_int(x, n)
188
188
  #
189
- # This routine computes the power <tt>x^n</tt> for integer <tt>n</tt>.
190
- # The power is computed efficiently -- for example, x^8 is computed as
191
- # ((x^2)^2)^2, requiring only 3 multiplications.
189
+ # This routine computes the power <tt>x^n</tt> for integer <tt>n</tt>.
190
+ # The power is computed efficiently -- for example, x^8 is computed as
191
+ # ((x^2)^2)^2, requiring only 3 multiplications.
192
192
  #
193
193
  # ---
194
194
  # * GSL::pow_2(x)
@@ -200,25 +200,25 @@
200
200
  # * GSL::pow_8(x)
201
201
  # * GSL::pow_9(x)
202
202
  #
203
- # These methods can be used to compute small integer powers x^2, x^3, etc.
203
+ # These methods can be used to compute small integer powers x^2, x^3, etc.
204
204
  # efficiently.
205
205
  #
206
- # == {}[link:index.html"name="5] Testing the Sign of Numbers
206
+ # == Testing the Sign of Numbers
207
207
  # ---
208
208
  # * GSL::SIGN(x)
209
209
  # * GSL::sign(x)
210
210
  #
211
- # Return the sign of <tt>x</tt>.
212
- # It is defined as ((x) >= 0 ? 1 : -1).
213
- # Note that with this definition the sign of zero is positive
211
+ # Return the sign of <tt>x</tt>.
212
+ # It is defined as ((x) >= 0 ? 1 : -1).
213
+ # Note that with this definition the sign of zero is positive
214
214
  # (regardless of its IEEE sign bit).
215
215
  #
216
- # == {}[link:index.html"name="6] Testing for Odd and Even Numbers
216
+ # == Testing for Odd and Even Numbers
217
217
  # ---
218
218
  # * GSL::is_odd(n)
219
219
  # * GSL::IS_ODD(n)
220
220
  #
221
- # Evaluate to 1 if <tt>n</tt> is odd and 0 if <tt>n</tt> is even.
221
+ # Evaluate to 1 if <tt>n</tt> is odd and 0 if <tt>n</tt> is even.
222
222
  # The argument <tt>n</tt> must be of Fixnum type.
223
223
  # ---
224
224
  # * GSL::is_odd?(n)
@@ -229,7 +229,7 @@
229
229
  # * GSL::is_even(n)
230
230
  # * GSL::IS_EVEN(n)
231
231
  #
232
- # Evaluate to 1 if <tt>n</tt> is even and 0 if <tt>n</tt> is odd.
232
+ # Evaluate to 1 if <tt>n</tt> is even and 0 if <tt>n</tt> is odd.
233
233
  # The argument <tt>n</tt> must be of Fixnum type.
234
234
  # ---
235
235
  # * GSL::is_even?(n)
@@ -237,25 +237,25 @@
237
237
  #
238
238
  # Return <tt>true</tt> if <tt>n</tt> is even and <tt>false</tt> if odd.
239
239
  #
240
- # == {}[link:index.html"name="7] Maximum and Minimum functions
240
+ # == Maximum and Minimum functions
241
241
  # ---
242
242
  # * GSL::max(a, b)
243
243
  # * GSL::MAX(a, b)
244
244
  # * GSL::min(a, b)
245
245
  # * GSL::MIN(a, b)
246
246
  #
247
- #
248
- # == {}[link:index.html"name="8] Approximate Comparison of Floating Point Numbers
247
+ #
248
+ # == Approximate Comparison of Floating Point Numbers
249
249
  # ---
250
250
  # * GSL::fcmp(a, b, epsilon = 1e-10)
251
251
  #
252
- # This method determines whether <tt>x</tt> and <tt>y</tt> are approximately equal to a
252
+ # This method determines whether <tt>x</tt> and <tt>y</tt> are approximately equal to a
253
253
  # relative accuracy <tt>epsilon</tt>.
254
254
  # ---
255
255
  # * GSL::equal?(a, b, epsilon = 1e-10)
256
256
  #
257
257
  #
258
- # == {}[link:index.html"name="9] Module Constants
258
+ # == Module Constants
259
259
  # ---
260
260
  # * GSL::VERSION
261
261
  #
@@ -267,10 +267,10 @@
267
267
  #
268
268
  # Ruby/GSL version
269
269
  #
270
- # {prev}[link:files/rdoc/ehandling_rdoc.html]
271
- # {next}[link:files/rdoc/complex_rdoc.html]
270
+ # {prev}[link:rdoc/ehandling_rdoc.html]
271
+ # {next}[link:rdoc/complex_rdoc.html]
272
272
  #
273
- # {Reference index}[link:files/rdoc/ref_rdoc.html]
274
- # {top}[link:files/rdoc/index_rdoc.html]
273
+ # {Reference index}[link:rdoc/ref_rdoc.html]
274
+ # {top}[link:index.html]
275
275
  #
276
276
  #
@@ -1,29 +1,29 @@
1
1
  #
2
2
  # = Matrices
3
3
  # Contents:
4
- # 1. {Class methods}[link:files/rdoc/matrix_rdoc.html#1]
5
- # 1. {Instance methods}[link:files/rdoc/matrix_rdoc.html#2]
6
- # 1. {Accessing matrix elements}[link:files/rdoc/matrix_rdoc.html#2.1]
7
- # 1. {Initializing matrix elements}[link:files/rdoc/matrix_rdoc.html#2.2]
8
- # 1. {IO}[link:files/rdoc/matrix_rdoc.html#2.3]
9
- # 1. {Matrix views}[link:files/rdoc/matrix_rdoc.html#2.4]
10
- # 1. {Creating row and column views}[link:files/rdoc/matrix_rdoc.html#2.5]
11
- # 1. {Iterators}[link:files/rdoc/matrix_rdoc.html#2.6]
12
- # 1. {Copying matrices}[link:files/rdoc/matrix_rdoc.html#2.7]
13
- # 1. {Copying rows and columns}[link:files/rdoc/matrix_rdoc.html#2.8]
14
- # 1. {Exchanging rows and columns}[link:files/rdoc/matrix_rdoc.html#2.9]
15
- # 1. {Matrix operations}[link:files/rdoc/matrix_rdoc.html#2.10]
16
- # 1. {Finding maximum and minimum elements of matrices}[link:files/rdoc/matrix_rdoc.html#2.11]
17
- # 1. {Matrix properties}[link:files/rdoc/matrix_rdoc.html#2.12]
18
- # 1. {NArray}[link:files/rdoc/matrix_rdoc.html#3]
19
- # 1. {Special matrices}[link:files/rdoc/matrix_rdoc.html#4]
20
- #
21
- # == {}[link:index.html"name="1] Class methods
4
+ # 1. {Class methods}[link:rdoc/matrix_rdoc.html#label-Class+methods]
5
+ # 1. {Instance methods}[link:rdoc/matrix_rdoc.html#label-Instance+Methods]
6
+ # 1. {Accessing matrix elements}[link:rdoc/matrix_rdoc.html#label-Accessing+matrix+elements]
7
+ # 1. {Initializing matrix elements}[link:rdoc/matrix_rdoc.html#label-Initializing+matrix+elements]
8
+ # 1. {IO}[link:rdoc/matrix_rdoc.html#label-IO]
9
+ # 1. {Matrix views}[link:rdoc/matrix_rdoc.html#label-Matrix+views]
10
+ # 1. {Creating row and column views}[link:rdoc/matrix_rdoc.html#label-Creating+row+and+column+views]
11
+ # 1. {Iterators}[link:rdoc/matrix_rdoc.html#label-Iterators]
12
+ # 1. {Copying matrices}[link:rdoc/matrix_rdoc.html#label-Copying+matrices]
13
+ # 1. {Copying rows and columns}[link:rdoc/matrix_rdoc.html#label-Copying+rows+and+columns]
14
+ # 1. {Exchanging rows and columns}[link:rdoc/matrix_rdoc.html#label-Exchanging+rows+and+columns]
15
+ # 1. {Matrix operations}[link:rdoc/matrix_rdoc.html#label-Matrix+operations]
16
+ # 1. {Finding maximum and minimum elements of matrices}[link:rdoc/matrix_rdoc.html#label-Finding+maximum+and+minimum+elements+of+matrices]
17
+ # 1. {Matrix properties}[link:rdoc/matrix_rdoc.html#label-Matrix+properties]
18
+ # 1. {NArray}[link:rdoc/matrix_rdoc.html#label-NArray]
19
+ # 1. {Special matrices}[link:rdoc/matrix_rdoc.html#label-Special+matrices]
20
+ #
21
+ # == Class methods
22
22
  #
23
23
  # ---
24
24
  # * GSL::Matrix.alloc(n)
25
25
  # * GSL::Matrix.alloc(size1, size2)
26
- # * GSL::Matrix.alloc(array)
26
+ # * GSL::Matrix.alloc(array)
27
27
  # * GSL::Matrix.alloc(arrays)
28
28
  # * GSL::Matrix.alloc( ... )
29
29
  # * GSL::Matrix[ ... ]
@@ -32,21 +32,21 @@
32
32
  #
33
33
  # 1. From arrays
34
34
  # >> m = GSL::Matrix[[1, 2, 3], [4, 5, 6], [7, 8, 9]]
35
- # => GSL::Matrix
36
- # [ 1.000e+00 2.000e+00 3.000e+00
37
- # 4.000e+00 5.000e+00 6.000e+00
35
+ # => GSL::Matrix
36
+ # [ 1.000e+00 2.000e+00 3.000e+00
37
+ # 4.000e+00 5.000e+00 6.000e+00
38
38
  # 7.000e+00 8.000e+00 9.000e+00 ]
39
- #
39
+ #
40
40
  # 1. With an array and rows&cols,
41
41
  # m = GSL::Matrix.alloc([1, 2, 3, 4, 5, 6, 7, 8, 9], 3, 3)
42
42
  #
43
43
  # 1. With Range objects,
44
44
  # >> m = GSL::Matrix.alloc(1..3, 4..6, 7..9)
45
- # [ 1.000e+00 2.000e+00 3.000e+00
46
- # 4.000e+00 5.000e+00 6.000e+00
45
+ # [ 1.000e+00 2.000e+00 3.000e+00
46
+ # 4.000e+00 5.000e+00 6.000e+00
47
47
  # 7.000e+00 8.000e+00 9.000e+00 ]
48
48
  # >> m2 = GSL::Matrix[1..6, 2, 3]
49
- # [ 1.000e+00 2.000e+00 3.000e+00
49
+ # [ 1.000e+00 2.000e+00 3.000e+00
50
50
  # 4.000e+00 5.000e+00 6.000e+00 ]
51
51
  #
52
52
  # ---
@@ -56,14 +56,14 @@
56
56
  # Examples:
57
57
  # >> m = GSL::Matrix::Int.eye(3)
58
58
  # => GSL::Matrix::Int
59
- # [ 1 0 0
60
- # 0 1 0
59
+ # [ 1 0 0
60
+ # 0 1 0
61
61
  # 0 0 1 ]
62
62
  # >> m = GSL::Matrix::Int.eye(2, 4)
63
63
  # => GSL::Matrix::Int
64
- # [ 1 0 0 0
64
+ # [ 1 0 0 0
65
65
  # 0 1 0 0 ]
66
- #
66
+ #
67
67
  # ---
68
68
  # * GSL::Matrix.identity(n)
69
69
  # * GSL::Matrix.scalar(n)
@@ -71,7 +71,7 @@
71
71
  # * GSL::Matrix.I(n)
72
72
  #
73
73
  # Create diagonal matrices of dimensions n*n, of values 1.0.
74
- #
74
+ #
75
75
  # ---
76
76
  # * GSL::Matrix.diagonal(a, b, c, ...)
77
77
  # * GSL::Matrix.diagonal(Ary)
@@ -83,14 +83,14 @@
83
83
  # Example:
84
84
  # >> GSL::Matrix::Int.diagonal(1..4)
85
85
  # => GSL::Matrix::Int
86
- # [ 1 0 0 0
87
- # 0 2 0 0
88
- # 0 0 3 0
86
+ # [ 1 0 0 0
87
+ # 0 2 0 0
88
+ # 0 0 3 0
89
89
  # 0 0 0 4 ]
90
90
  # >> GSL::Matrix::Int.diagonal(2, 5, 3)
91
91
  # => GSL::Matrix::Int
92
- # [ 2 0 0
93
- # 0 5 0
92
+ # [ 2 0 0
93
+ # 0 5 0
94
94
  # 0 0 3 ]
95
95
  #
96
96
  # ---
@@ -111,26 +111,26 @@
111
111
  # Example:
112
112
  #
113
113
  # >> m = GSL::Matrix::Int.indgen(3, 5)
114
- # => GSL::Matrix::Int
115
- # [ 0 1 2 3 4
116
- # 5 6 7 8 9
114
+ # => GSL::Matrix::Int
115
+ # [ 0 1 2 3 4
116
+ # 5 6 7 8 9
117
117
  # 10 11 12 13 14 ]
118
118
  # >> m = GSL::Matrix::Int.indgen(3, 5, 2)
119
- # => GSL::Matrix::Int
120
- # [ 2 3 4 5 6
121
- # 7 8 9 10 11
119
+ # => GSL::Matrix::Int
120
+ # [ 2 3 4 5 6
121
+ # 7 8 9 10 11
122
122
  # 12 13 14 15 16 ]
123
123
  # >> m = GSL::Matrix.indgen(2, 3, 4.5, 6.7)
124
124
  # => GSL::Matrix
125
- # [ 4.500e+00 1.120e+01 1.790e+01
125
+ # [ 4.500e+00 1.120e+01 1.790e+01
126
126
  # 2.460e+01 3.130e+01 3.800e+01 ]
127
127
  #
128
- # === {}[link:index.html"name="1.1] NOTE:
128
+ # === NOTE:
129
129
  # Matrix dimensions are limited within the range of Fixnum.
130
130
  # For 32-bit CPU, the maximum of matrix dimension is 2^30 ~ 1e9.
131
131
  #
132
- # == {}[link:index.html"name="2] Instance Methods
133
- # === {}[link:index.html"name="2.1] Accessing matrix elements
132
+ # == Instance Methods
133
+ # === Accessing matrix elements
134
134
  #
135
135
  # ---
136
136
  # * GSL::Matrix#size1
@@ -156,7 +156,7 @@
156
156
  #
157
157
  # ---
158
158
  # * GSL::Matrix#set(args, val)
159
- # * GSL::Matrix#[args]=val
159
+ # * \GSL::Matrix#[args]=val
160
160
  #
161
161
  # If <tt>args</tt> is empty and <tt>val</tt> is an Array (i.e. called with just a
162
162
  # single Array argument), the Array's elements are taken as row contents.
@@ -173,7 +173,7 @@
173
173
  # as indexes.
174
174
  #
175
175
  # If <tt>args</tt> are two <tt>Fixnums</tt>, <tt>i</tt> and <tt>j</tt>, this method
176
- # sets the <tt>(i,j)</tt>-th element of the matrix <tt>self</tt> to <tt>val</tt>.
176
+ # sets the <tt>(i,j)</tt>-th element of the matrix <tt>self</tt> to <tt>val</tt>.
177
177
  #
178
178
  # If <tt>args</tt> is a single <tt>Fixnum</tt>, <tt>i</tt>, this method sets the
179
179
  # element at row <tt>i</tt>/<tt>size2</tt>, column <tt>i</tt>%<tt>size2</tt> to
@@ -194,18 +194,18 @@
194
194
  # NOTE: GSL does not provide a matrix copy function that properly copies data
195
195
  # across overlapping memory regions, so watch out if assigning to part of a
196
196
  # Matrix from another part of itself (see <tt>#set</tt> example of
197
- # {GSL::Vector}[link:files/rdoc/vector_rdoc.html]).
197
+ # {GSL::Vector}[link:rdoc/vector_rdoc.html]).
198
198
  #
199
199
  # ---
200
200
  # * GSL::Matrix#get(args)
201
- # * GSL::Matrix#[args]
201
+ # * \GSL::Matrix#[args]
202
202
  #
203
203
  # If <tt>args</tt> are two <tt>Fixnums</tt>, <tt>i</tt> and <tt>j</tt>, this method
204
- # returns the <tt>(i,j)</tt>-th element of the matrix <tt>self</tt>.
204
+ # returns the <tt>(i,j)</tt>-th element of the matrix <tt>self</tt>.
205
205
  #
206
206
  # If <tt>args</tt> is a single <tt>Fixnum</tt>, <tt>i</tt>, this method returns the
207
207
  # element at row <tt>i</tt>/<tt>size2</tt>, column <tt>i</tt>%<tt>size2</tt>.
208
- #
208
+ #
209
209
  # All other forms of <tt>args</tt> are treated as with <tt>Matrix#submatrix</tt>
210
210
  # and a View object is returned.
211
211
  #
@@ -226,8 +226,8 @@
226
226
  # Examples:
227
227
  # >> m = GSL::Matrix[1..9, 3, 3]
228
228
  # => GSL::Matrix
229
- # [ 1.000e+00 2.000e+00 3.000e+00
230
- # 4.000e+00 5.000e+00 6.000e+00
229
+ # [ 1.000e+00 2.000e+00 3.000e+00
230
+ # 4.000e+00 5.000e+00 6.000e+00
231
231
  # 7.000e+00 8.000e+00 9.000e+00 ]
232
232
  # >> m[1, 2]
233
233
  # => 6.0
@@ -235,23 +235,23 @@
235
235
  # => 123
236
236
  # >> m
237
237
  # => GSL::Matrix
238
- # [ 1.000e+00 2.000e+00 3.000e+00
239
- # 4.000e+00 5.000e+00 1.230e+02
238
+ # [ 1.000e+00 2.000e+00 3.000e+00
239
+ # 4.000e+00 5.000e+00 1.230e+02
240
240
  # 7.000e+00 8.000e+00 9.000e+00 ]
241
241
  # >> m[1]
242
242
  # => 2.0
243
243
  # >> m.set([3, 5, 2], [4, 5, 3], [7, 1, 5])
244
244
  # => GSL::Matrix
245
- # [ 3.000e+00 5.000e+00 2.000e+00
246
- # 4.000e+00 5.000e+00 3.000e+00
245
+ # [ 3.000e+00 5.000e+00 2.000e+00
246
+ # 4.000e+00 5.000e+00 3.000e+00
247
247
  # 7.000e+00 1.000e+00 5.000e+00 ]
248
248
  # >> m[1][1] # old/unsupported form
249
249
  # NoMethodError: undefined method `[]' for 2.0:Float
250
250
  # from (irb):8
251
251
  # >> m = GSL::Matrix::Int[1..9, 3, 3]
252
252
  # => GSL::Matrix::Int
253
- # [ 1 2 3
254
- # 4 5 6
253
+ # [ 1 2 3
254
+ # 4 5 6
255
255
  # 7 8 9 ]
256
256
  # >> m[1] # m[0,1]
257
257
  # => 2
@@ -274,7 +274,7 @@
274
274
  # >> GSL::Matrix.eye(3).to_a
275
275
  # => [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]]
276
276
  #
277
- # === {}[link:index.html"name="2.2] Initializing matrix elements
277
+ # === Initializing matrix elements
278
278
  # ---
279
279
  # * GSL::Matrix#set_all(x)
280
280
  #
@@ -283,16 +283,16 @@
283
283
  # ---
284
284
  # * GSL::Matrix#set_zero
285
285
  #
286
- # This method sets all the elements of the matrix to zero.
286
+ # This method sets all the elements of the matrix to zero.
287
287
  #
288
288
  # ---
289
289
  # * GSL::Matrix#set_identity
290
290
  #
291
- # This method sets the elements of the matrix to the corresponding
292
- # elements of the identity matrix, i.e. a unit diagonal with all off-diagonal
293
- # elements zero. This applies to both square and rectangular matrices.
291
+ # This method sets the elements of the matrix to the corresponding
292
+ # elements of the identity matrix, i.e. a unit diagonal with all off-diagonal
293
+ # elements zero. This applies to both square and rectangular matrices.
294
294
  #
295
- # === {}[link:index.html"name="2.3] IO
295
+ # === IO
296
296
  # ---
297
297
  # * GSL::Matrix#fwrite(io)
298
298
  # * GSL::Matrix#fwrite(filename)
@@ -304,7 +304,7 @@
304
304
  # * GSL::Matrix#fscanf(filename)
305
305
  #
306
306
  #
307
- # === {}[link:index.html"name="2.4] Matrix views
307
+ # === Matrix views
308
308
  # The <tt>GSL::Matrix::View</tt> class is defined to be used as "references" to
309
309
  # matrices. The <tt>Matrix::View</tt> class is a subclass of <tt>Matrix</tt>, and an
310
310
  # instance of the <tt>View</tt> class created by slicing a <tt>Matrix</tt> object can
@@ -394,97 +394,97 @@
394
394
  #
395
395
  # Ex:
396
396
  # >> v = Vector[1..9]
397
- # => GSL::Vector
397
+ # => GSL::Vector
398
398
  # [ 1.000e+00 2.000e+00 3.000e+00 4.000e+00 5.000e+00 6.000e+00 7.000e+00 8.000e+00 9.000e+00 ]
399
399
  # >> m = v.matrix_view(3, 3)
400
- # => GSL::Matrix::View
401
- # [ 1.000e+00 2.000e+00 3.000e+00
402
- # 4.000e+00 5.000e+00 6.000e+00
400
+ # => GSL::Matrix::View
401
+ # [ 1.000e+00 2.000e+00 3.000e+00
402
+ # 4.000e+00 5.000e+00 6.000e+00
403
403
  # 7.000e+00 8.000e+00 9.000e+00 ]
404
404
  # >> m[1][1] = 99.99
405
405
  # => 99.99
406
406
  # >> v
407
- # => GSL::Vector
407
+ # => GSL::Vector
408
408
  # [ 1.000e+00 2.000e+00 3.000e+00 4.000e+00 9.999e+01 6.000e+00 7.000e+00 8.000e+00 9.000e+00 ]
409
- # >>
409
+ # >>
410
410
  #
411
411
  #
412
- # === {}[link:index.html"name="2.5] Creating row and column views
412
+ # === Creating row and column views
413
413
  #
414
414
  # ---
415
415
  # * GSL::Matrix#row(i)
416
416
  #
417
417
  # These methods return <tt>i</tt>-th row of the matrix as a <tt>Vector::View</tt>
418
418
  # object. Any modifications to the <tt>Vectror::View</tt> object returned by this method
419
- # propagate to the original matrix.
420
- #
419
+ # propagate to the original matrix.
420
+ #
421
421
  # ---
422
422
  # * GSL::Matrix#column(i)
423
- # * GSL::Matrix#col(i)
423
+ # * GSL::Matrix#col(i)
424
424
  #
425
425
  # These methods return a vector view of the <tt>j</tt>-th column of the matrix.
426
426
  #
427
427
  # ---
428
428
  # * GSL::Matrix#subrow(i, offset, n)
429
429
  #
430
- # Returns a vector view of the <tt>i</tt>-th row of the matrix <tt>self</tt>
431
- # beginning at <tt>offset</tt> elements past the first column
430
+ # Returns a vector view of the <tt>i</tt>-th row of the matrix <tt>self</tt>
431
+ # beginning at <tt>offset</tt> elements past the first column
432
432
  # and containing <tt>n</tt> elements. (>= GSL-1.10)
433
433
  #
434
434
  # ---
435
435
  # * GSL::Matrix#subcolumn(j, offset, n)
436
436
  #
437
- # Returns a vector view of the <tt>j</tt>-th column of the matrix <tt>self</tt>
438
- # beginning at <tt>offset</tt> elements past the first row
437
+ # Returns a vector view of the <tt>j</tt>-th column of the matrix <tt>self</tt>
438
+ # beginning at <tt>offset</tt> elements past the first row
439
439
  # and containing <tt>n</tt> elements. (>= GSL-1.10)
440
440
  #
441
441
  # ---
442
442
  # * GSL::Matrix#diag
443
- # * GSL::Matrix#diagonal
443
+ # * GSL::Matrix#diagonal
444
444
  #
445
445
  # This method returns a <tt>Vector::View</tt> of the diagonal of the matrix.
446
- # The matrix is not required to be square. For a rectangular matrix the
446
+ # The matrix is not required to be square. For a rectangular matrix the
447
447
  # length of the diagonal is the same as the smaller dimension of the matrix.
448
448
  #
449
449
  #
450
450
  # Ex:
451
451
  # >> m = GSL::Matrix[1..9, 3, 3]
452
- # => GSL::Matrix
453
- # [ 1.000e+00 2.000e+00 3.000e+00
454
- # 4.000e+00 5.000e+00 6.000e+00
452
+ # => GSL::Matrix
453
+ # [ 1.000e+00 2.000e+00 3.000e+00
454
+ # 4.000e+00 5.000e+00 6.000e+00
455
455
  # 7.000e+00 8.000e+00 9.000e+00 ]
456
456
  # >> m.row(1)
457
- # => GSL::Vector::View
457
+ # => GSL::Vector::View
458
458
  # [ 4.000e+00 5.000e+00 6.000e+00 ]
459
459
  # >> m.col(2)
460
- # => GSL::Vector::Col::View
461
- # [ 3.000e+00
462
- # 6.000e+00
460
+ # => GSL::Vector::Col::View
461
+ # [ 3.000e+00
462
+ # 6.000e+00
463
463
  # 9.000e+00 ]
464
464
  # >> m.col(2)[2] = 123
465
465
  # => 123
466
466
  # >> m
467
- # => GSL::Matrix
468
- # [ 1.000e+00 2.000e+00 3.000e+00
469
- # 4.000e+00 5.000e+00 6.000e+00
467
+ # => GSL::Matrix
468
+ # [ 1.000e+00 2.000e+00 3.000e+00
469
+ # 4.000e+00 5.000e+00 6.000e+00
470
470
  # 7.000e+00 8.000e+00 1.230e+02 ]
471
471
  # >> m.diagonal
472
- # => GSL::Vector::View:
472
+ # => GSL::Vector::View:
473
473
  # [ 1.000e+00 5.000e+00 1.230e+02 ]
474
474
  #
475
475
  # ---
476
476
  # * GSL::Matrix#subdiagonal(k)
477
477
  #
478
- # Returns a vector view view of the <tt>k</tt>-th subdiagonal
479
- # of the matrix <tt>self</tt>.
480
- # The matrix is not required to be square. The diagonal of the matrix
478
+ # Returns a vector view view of the <tt>k</tt>-th subdiagonal
479
+ # of the matrix <tt>self</tt>.
480
+ # The matrix is not required to be square. The diagonal of the matrix
481
481
  # corresponds to k = 0.
482
482
  #
483
483
  # ---
484
484
  # * GSL::Matrix#superdiagonal(k)
485
485
  #
486
- # Returns a vector view of the <tt>k</tt>-th superdiagonal of the matrix <tt>self</tt>.
487
- # The matrix is not required to be square. The diagonal of the matrix
486
+ # Returns a vector view of the <tt>k</tt>-th superdiagonal of the matrix <tt>self</tt>.
487
+ # The matrix is not required to be square. The diagonal of the matrix
488
488
  # corresponds to k = 0.
489
489
  #
490
490
  # ---
@@ -493,22 +493,22 @@
493
493
  # Creates a <tt>GSL::Vector</tt> object "flattening" the rows of the matrix <tt>self</tt>.
494
494
  #
495
495
  # >> m = GSL::Matrix[1..6, 2, 3]
496
- # => GSL::Matrix
497
- # [ 1.000e+00 2.000e+00 3.000e+00
496
+ # => GSL::Matrix
497
+ # [ 1.000e+00 2.000e+00 3.000e+00
498
498
  # 4.000e+00 5.000e+00 6.000e+00 ]
499
499
  # >> m.to_v
500
- # => GSL::Vector
500
+ # => GSL::Vector
501
501
  # [ 1.000e+00 2.000e+00 3.000e+00 4.000e+00 5.000e+00 6.000e+00 ]
502
502
  #
503
- # === {}[link:index.html"name="2.6] Iterators
503
+ # === Iterators
504
504
  # ---
505
505
  # * GSL::Matrix#each_row
506
506
  #
507
- # Iterator for each of rows in the matrix <tt>self</tt>.
507
+ # Iterator for each of rows in the matrix <tt>self</tt>.
508
508
  # ---
509
509
  # * GSL::Matrix#each_col
510
510
  #
511
- # Iterator for each of columns in the matrix <tt>self</tt>.
511
+ # Iterator for each of columns in the matrix <tt>self</tt>.
512
512
  #
513
513
  # ---
514
514
  # * GSL::Matrix#collect { |item| .. }
@@ -517,7 +517,7 @@
517
517
  # * GSL::Matrix#map! { |item| .. }
518
518
  #
519
519
  #
520
- # === {}[link:index.html"name="2.7] Copying matrices
520
+ # === Copying matrices
521
521
  # ---
522
522
  # * GSL::Matrix#clone
523
523
  # * GSL::Matrix#duplicate
@@ -529,35 +529,35 @@
529
529
  # * GSL::Matrix.swap(dest, src)
530
530
  #
531
531
  #
532
- # === {}[link:index.html"name="2.8] Copying rows and columns
532
+ # === Copying rows and columns
533
533
  #
534
534
  # ---
535
535
  # * GSL::Matrix#get_row(i)
536
536
  #
537
- # This method returns a new vector (not a view) which contains the elements
537
+ # This method returns a new vector (not a view) which contains the elements
538
538
  # of the <tt>i</tt>-th row of the matrix <tt>self</tt>.
539
539
  #
540
540
  # ---
541
541
  # * GSL::Matrix#get_col(j)
542
542
  #
543
- # This method returns a new vector (not a view) which contains the elements of the <tt>j</tt>-th
543
+ # This method returns a new vector (not a view) which contains the elements of the <tt>j</tt>-th
544
544
  # column of the matrix <tt>self</tt>.
545
545
  #
546
546
  # ---
547
547
  # * GSL::Matrix#set_row(i, v)
548
548
  #
549
- # This method copies the elements of the vector <tt>v</tt> into the <tt>i</tt>-th
550
- # row of the matrix.
551
- # The length of the vector must be the same as the length of the row.
549
+ # This method copies the elements of the vector <tt>v</tt> into the <tt>i</tt>-th
550
+ # row of the matrix.
551
+ # The length of the vector must be the same as the length of the row.
552
552
  #
553
553
  # ---
554
554
  # * GSL::Matrix#set_col(j, v)
555
555
  #
556
- # This method copies the elements of the vector <tt>v</tt> into the <tt>j</tt>-th
557
- # column of the matrix. The length of the vector must be the same as the length
558
- # of the column.
556
+ # This method copies the elements of the vector <tt>v</tt> into the <tt>j</tt>-th
557
+ # column of the matrix. The length of the vector must be the same as the length
558
+ # of the column.
559
559
  #
560
- # === {}[link:index.html"name="2.9] Exchanging rows and columns
560
+ # === Exchanging rows and columns
561
561
  # ---
562
562
  # * GSL::Matrix#swap_rows!(i, j)
563
563
  #
@@ -570,7 +570,7 @@
570
570
  # ---
571
571
  # * GSL::Matrix#swap_columns!(i, j)
572
572
  #
573
- # This method exchanges the <tt>i</tt>-th and <tt>j</tt>-th columns of the matrix <tt>in-place</tt>.
573
+ # This method exchanges the <tt>i</tt>-th and <tt>j</tt>-th columns of the matrix <tt>in-place</tt>.
574
574
  # ---
575
575
  # * GSL::Matrix#swap_columns(i, j)
576
576
  #
@@ -592,9 +592,9 @@
592
592
  # ---
593
593
  # * GSL::Matrix#transpose!
594
594
  #
595
- # This method replaces the matrix by its transpose by copying the
595
+ # This method replaces the matrix by its transpose by copying the
596
596
  # elements of the matrix <tt>in-place</tt>. The matrix must be square for this
597
- # operation to be possible.
597
+ # operation to be possible.
598
598
  #
599
599
  # ---
600
600
  # * GSL::Matrix#reverse_rows
@@ -602,14 +602,14 @@
602
602
  #
603
603
  # Example:
604
604
  # >> m = GSL::Matrix::Int[1..9, 3, 3]
605
- # => GSL::Matrix::Int
606
- # [ 1 2 3
607
- # 4 5 6
605
+ # => GSL::Matrix::Int
606
+ # [ 1 2 3
607
+ # 4 5 6
608
608
  # 7 8 9 ]
609
609
  # >> m.reverse_rows
610
- # => GSL::Matrix::Int
611
- # [ 7 8 9
612
- # 4 5 6
610
+ # => GSL::Matrix::Int
611
+ # [ 7 8 9
612
+ # 4 5 6
613
613
  # 1 2 3 ]
614
614
  #
615
615
  # ---
@@ -619,74 +619,74 @@
619
619
  # Example:
620
620
  # >> m = GSL::Matrix::Int[1..9, 3, 3]
621
621
  # => GSL::Matrix::Int
622
- # [ 1 2 3
623
- # 4 5 6
622
+ # [ 1 2 3
623
+ # 4 5 6
624
624
  # 7 8 9 ]
625
625
  # >> m.reverse_rows.reverse_columns
626
- # => GSL::Matrix::Int
627
- # [ 9 8 7
628
- # 6 5 4
626
+ # => GSL::Matrix::Int
627
+ # [ 9 8 7
628
+ # 6 5 4
629
629
  # 3 2 1 ]
630
630
  #
631
631
  # ---
632
632
  # * GSL::Matrix#rot90(n = 1)
633
633
  #
634
- # Return a copy of <tt>self</tt> with the elements rotated
635
- # counterclockwise in 90-degree increments. The argument <tt>n</tt> is
636
- # optional, and specifies how many 90-degree rotations are to be applied
637
- # (the default value is 1).
634
+ # Return a copy of <tt>self</tt> with the elements rotated
635
+ # counterclockwise in 90-degree increments. The argument <tt>n</tt> is
636
+ # optional, and specifies how many 90-degree rotations are to be applied
637
+ # (the default value is 1).
638
638
  # Negative values of <tt>n</tt> rotate the matrix in a clockwise direction.
639
639
  #
640
640
  # Examples:
641
641
  # >> m = GSL::Matrix::Int[1..6, 2, 3]
642
642
  # => GSL::Matrix::Int
643
- # [ 1 2 3
643
+ # [ 1 2 3
644
644
  # 4 5 6 ]
645
645
  # >> m.rot90
646
646
  # => GSL::Matrix::Int
647
- # [ 3 6
648
- # 2 5
647
+ # [ 3 6
648
+ # 2 5
649
649
  # 1 4 ]
650
650
  # >> m.rot90(2)
651
651
  # => GSL::Matrix::Int
652
- # [ 6 5 4
652
+ # [ 6 5 4
653
653
  # 3 2 1 ]
654
654
  # >> m.rot90(3)
655
655
  # => GSL::Matrix::Int
656
- # [ 4 1
657
- # 5 2
656
+ # [ 4 1
657
+ # 5 2
658
658
  # 6 3 ]
659
659
  # >> m.rot90(-1)
660
660
  # => GSL::Matrix::Int
661
- # [ 4 1
662
- # 5 2
661
+ # [ 4 1
662
+ # 5 2
663
663
  # 6 3 ]
664
664
  #
665
665
  # ---
666
666
  # * GSL::Matrix#upper
667
667
  #
668
- # This creates a matrix copying the upper half part of the matrix
668
+ # This creates a matrix copying the upper half part of the matrix
669
669
  # <tt>self</tt>, including the diagonal elements.
670
670
  # ---
671
671
  # * GSL::Matrix#lower
672
672
  #
673
- # This creates a matrix copying the lower half part of the matrix
673
+ # This creates a matrix copying the lower half part of the matrix
674
674
  # <tt>self</tt>, including the diagonal elements.
675
675
  #
676
676
  # >> m = GSL::Matrix[1..9, 3, 3]
677
677
  # => GSL::Matrix
678
- # [ 1.000e+00 2.000e+00 3.000e+00
679
- # 4.000e+00 5.000e+00 6.000e+00
678
+ # [ 1.000e+00 2.000e+00 3.000e+00
679
+ # 4.000e+00 5.000e+00 6.000e+00
680
680
  # 7.000e+00 8.000e+00 9.000e+00 ]
681
681
  # >> m.upper
682
- # => GSL::Matrix
683
- # [ 1.000e+00 2.000e+00 3.000e+00
684
- # 0.000e+00 5.000e+00 6.000e+00
682
+ # => GSL::Matrix
683
+ # [ 1.000e+00 2.000e+00 3.000e+00
684
+ # 0.000e+00 5.000e+00 6.000e+00
685
685
  # 0.000e+00 0.000e+00 9.000e+00 ]
686
686
  # >> m.lower
687
- # => GSL::Matrix
688
- # [ 1.000e+00 0.000e+00 0.000e+00
689
- # 4.000e+00 5.000e+00 0.000e+00
687
+ # => GSL::Matrix
688
+ # [ 1.000e+00 0.000e+00 0.000e+00
689
+ # 4.000e+00 5.000e+00 0.000e+00
690
690
  # 7.000e+00 8.000e+00 9.000e+00 ]
691
691
  #
692
692
  # ---
@@ -699,49 +699,49 @@
699
699
  # => true
700
700
  # >> a = GSL::Matrix::Int[1..4, 2, 2]
701
701
  # => GSL::Matrix::Int
702
- # [ 1 2
702
+ # [ 1 2
703
703
  # 3 4 ]
704
704
  # >> b = GSL::Matrix::Int[5..10, 2, 3]
705
705
  # => GSL::Matrix::Int
706
- # [ 5 6 7
706
+ # [ 5 6 7
707
707
  # 8 9 10 ]
708
708
  # >> a.horzcat(b)
709
709
  # => GSL::Matrix::Int
710
- # [ 1 2 5 6 7
710
+ # [ 1 2 5 6 7
711
711
  # 3 4 8 9 10 ]
712
712
  #
713
713
  # ---
714
714
  # * GSL::Matrix#vertcat(other)
715
715
  #
716
716
  # Returns the vertical concatenation of <tt>self</tt> and <tt>other</tt>.
717
- #
717
+ #
718
718
  # Ex:
719
719
  # >> a = GSL::Matrix::Int[1..4, 2, 2]
720
720
  # => GSL::Matrix::Int
721
- # [ 1 2
721
+ # [ 1 2
722
722
  # 3 4 ]
723
723
  # >> b = GSL::Matrix::Int[5..10, 3, 2]
724
724
  # => GSL::Matrix::Int
725
- # [ 5 6
726
- # 7 8
725
+ # [ 5 6
726
+ # 7 8
727
727
  # 9 10 ]
728
728
  # >> a.vertcat(b)
729
729
  # => GSL::Matrix::Int
730
- # [ 1 2
731
- # 3 4
732
- # 5 6
733
- # 7 8
730
+ # [ 1 2
731
+ # 3 4
732
+ # 5 6
733
+ # 7 8
734
734
  # 9 10 ]
735
735
  #
736
- # === {}[link:index.html"name="2.10] Matrix operations
736
+ # === Matrix operations
737
737
  #
738
738
  # ---
739
739
  # * GSL::Matrix#add(b)
740
740
  # * GSL::Matrix#+(b)
741
741
  #
742
- # This method adds the elements of matrix <tt>b</tt>
743
- # to the elements of the matrix.
744
- # The two matrices must have the same dimensions.
742
+ # This method adds the elements of matrix <tt>b</tt>
743
+ # to the elements of the matrix.
744
+ # The two matrices must have the same dimensions.
745
745
  #
746
746
  # If <tt>b</tt> is a scalar, these methods add it to all the elements
747
747
  # of the matrix <tt>self</tt> (equivalent to the method <tt>add_constant</tt>).
@@ -750,29 +750,29 @@
750
750
  # * GSL::Matrix#sub(b)
751
751
  # * GSL::Matrix#-(b)
752
752
  #
753
- # This method subtracts the elements of matrix <tt>b</tt>
754
- # from the elements of the
755
- # matrix. The two matrices must have the same dimensions.
753
+ # This method subtracts the elements of matrix <tt>b</tt>
754
+ # from the elements of the
755
+ # matrix. The two matrices must have the same dimensions.
756
756
  #
757
757
  # ---
758
758
  # * GSL::Matrix#mul_elements(b)
759
759
  #
760
- # This method multiplies the elements of the matrix by the elements of
761
- # matrix <tt>b</tt>. The two matrices must have the same dimensions.
762
- # If <tt>b</tt> is a scalar, the method <tt>scale</tt> (see below)
760
+ # This method multiplies the elements of the matrix by the elements of
761
+ # matrix <tt>b</tt>. The two matrices must have the same dimensions.
762
+ # If <tt>b</tt> is a scalar, the method <tt>scale</tt> (see below)
763
763
  # is called.
764
764
  #
765
765
  # ---
766
766
  # * GSL::Matrix#div_elements(b)
767
767
  #
768
768
  #
769
- # This method divides the elements of the matrix by the elements of
770
- # matrix <tt>b</tt>. The two matrices must have the same dimensions.
769
+ # This method divides the elements of the matrix by the elements of
770
+ # matrix <tt>b</tt>. The two matrices must have the same dimensions.
771
771
  #
772
772
  # ---
773
773
  # * GSL::Matrix#scale(x)
774
774
  #
775
- # This method multiplies the elements of the matrix by the constant
775
+ # This method multiplies the elements of the matrix by the constant
776
776
  # factor <tt>x</tt>.
777
777
  #
778
778
  # ---
@@ -783,32 +783,32 @@
783
783
  # ---
784
784
  # * GSL::Matrix#*(b)
785
785
  #
786
- # Matrix multiplication.
786
+ # Matrix multiplication.
787
787
  #
788
788
  # Ex:
789
789
  #
790
790
  # >> a = GSL::Matrix[1..4, 2, 2]
791
- # => GSL::Matrix
792
- # [ 1.000e+00 2.000e+00
791
+ # => GSL::Matrix
792
+ # [ 1.000e+00 2.000e+00
793
793
  # 3.000e+00 4.000e+00 ]
794
794
  # >> b = GSL::Matrix[5..8, 2, 2]
795
- # => GSL::Matrix
796
- # [ 5.000e+00 6.000e+00
795
+ # => GSL::Matrix
796
+ # [ 5.000e+00 6.000e+00
797
797
  # 7.000e+00 8.000e+00 ]
798
798
  # >> a*b
799
- # => GSL::Matrix
800
- # [ 1.900e+01 2.200e+01
799
+ # => GSL::Matrix
800
+ # [ 1.900e+01 2.200e+01
801
801
  # 4.300e+01 5.000e+01 ]
802
802
  # >> a*2
803
- # => GSL::Matrix
804
- # [ 2.000e+00 4.000e+00
803
+ # => GSL::Matrix
804
+ # [ 2.000e+00 4.000e+00
805
805
  # 6.000e+00 8.000e+00 ]
806
806
  # >> c = Vector[1, 2]
807
- # => GSL::Vector
807
+ # => GSL::Vector
808
808
  # [ 1.000e+00 2.000e+00 ]
809
809
  # >> a*c.col
810
- # => GSL::Vector::Col
811
- # [ 5.000e+00
810
+ # => GSL::Vector::Col
811
+ # [ 5.000e+00
812
812
  # 1.100e+01 ]
813
813
  #
814
814
  # ---
@@ -819,26 +819,26 @@
819
819
  # If a <tt>Vector::Col</tt> is given, this method solves the linear system
820
820
  # by using LU decomposition.
821
821
  #
822
- # Ex:
822
+ # Ex:
823
823
  # >> m = GSL::Matrix[1..4, 2, 2]
824
- # => GSL::Matrix
825
- # [ 1.000e+00 2.000e+00
824
+ # => GSL::Matrix
825
+ # [ 1.000e+00 2.000e+00
826
826
  # 3.000e+00 4.000e+00 ]
827
827
  # >> m/3
828
- # => GSL::Matrix
828
+ # => GSL::Matrix
829
829
  # [ 3.333e-01 6.667e-01 <--- 1/3, 2/3
830
830
  # 1.000e+00 1.333e+00 ] <--- 3/3, 4/3
831
831
  # >> b = Vector[5, 6].col
832
- # => GSL::Vector::Col
833
- # [ 5.000e+00
832
+ # => GSL::Vector::Col
833
+ # [ 5.000e+00
834
834
  # 6.000e+00 ]
835
835
  # >> x = m/b <--- Solve m (x,y) = b
836
- # => GSL::Vector::Col
836
+ # => GSL::Vector::Col
837
837
  # [ -4.000e+00 <--- x = -4
838
- # 4.500e+00 ] <--- y = 4.5
838
+ # 4.500e+00 ] <--- y = 4.5
839
839
  # >> m*x
840
840
  # => GSL::Vector::Col
841
- # [ 5.000e+00
841
+ # [ 5.000e+00
842
842
  # 6.000e+00 ]
843
843
  #
844
844
  # ---
@@ -846,7 +846,7 @@
846
846
  #
847
847
  # Computes matrix power of <tt>b</tt>.
848
848
  #
849
- # === {}[link:index.html"name="2.11] Finding maximum and minimum elements of matrices
849
+ # === Finding maximum and minimum elements of matrices
850
850
  #
851
851
  # ---
852
852
  # * GSL::Matrix#max
@@ -855,73 +855,73 @@
855
855
  # These methods return the max/min value in the matrix.
856
856
  #
857
857
  # ---
858
- # * GSL::Matrix#minmax
858
+ # * GSL::Matrix#minmax
859
859
  #
860
- # This method returns a two elements array [min, max],
860
+ # This method returns a two elements array [min, max],
861
861
  # which contains the minimum
862
862
  # and the maximum values in the matrix.
863
863
  #
864
864
  # ---
865
- # * GSL::Matrix#max_index
866
- # * GSL::Matrix#min_index
865
+ # * GSL::Matrix#max_index
866
+ # * GSL::Matrix#min_index
867
867
  #
868
868
  # These methods return the index of the max/min value in the matrix.
869
869
  #
870
870
  # ---
871
- # * GSL::Matrix#minmax_index
871
+ # * GSL::Matrix#minmax_index
872
872
  #
873
- # This method returns a two elements array [imin, imax],
873
+ # This method returns a two elements array [imin, imax],
874
874
  # which contains the indices
875
875
  # of the minimum and the maximum value in the matrix.
876
876
  #
877
- # === {}[link:index.html"name="2.12] Matrix properties
877
+ # === Matrix properties
878
878
  # ---
879
879
  # * GSL::Matrix#isnull
880
880
  #
881
- # This returns 1 if all the elements of the matrix <tt>self</tt> are zero,
881
+ # This returns 1 if all the elements of the matrix <tt>self</tt> are zero,
882
882
  # and 0 otherwise.
883
883
  #
884
884
  # ---
885
885
  # * GSL::Matrix#isnull?
886
886
  #
887
- # This returns <tt>true</tt> if all the elements of the matrix <tt>self</tt>
887
+ # This returns <tt>true</tt> if all the elements of the matrix <tt>self</tt>
888
888
  # are zero, and <tt>false</tt> otherwise.
889
889
  #
890
890
  # ---
891
891
  # * GSL::Matrix#ispos
892
892
  # * GSL::Matrix#ispos?
893
893
  #
894
- # (GSL-1.9 or later) Return 1 (true) if all the elements of the matrix <tt>self</tt> are strictly positive, and 0 (false) otherwise.
894
+ # (GSL-1.9 or later) Return 1 (true) if all the elements of the matrix <tt>self</tt> are strictly positive, and 0 (false) otherwise.
895
895
  #
896
896
  # ---
897
897
  # * GSL::Matrix#isneg
898
898
  # * GSL::Matrix#isneg?
899
899
  #
900
- # (GSL-1.9 or later) Return 1 (true) if all the elements of the matrix <tt>self</tt> are strictly negative, and 0 (false) otherwise.
900
+ # (GSL-1.9 or later) Return 1 (true) if all the elements of the matrix <tt>self</tt> are strictly negative, and 0 (false) otherwise.
901
901
  #
902
902
  # ---
903
903
  # * GSL::Matrix#isnonneg
904
904
  # * GSL::Matrix#isnonneg?
905
905
  #
906
- # (GSL-1.10 or later) Return 1 (true) if all the elements of the matrix <tt>self</tt> are non-negative , and 0 (false) otherwise.
906
+ # (GSL-1.10 or later) Return 1 (true) if all the elements of the matrix <tt>self</tt> are non-negative , and 0 (false) otherwise.
907
907
  #
908
908
  # ---
909
909
  # * GSL::Matrix#any
910
910
  #
911
- # Returns a Vector of ones and zeros with each element indicating
912
- # whether any of the elements of the corresponding column of the
911
+ # Returns a Vector of ones and zeros with each element indicating
912
+ # whether any of the elements of the corresponding column of the
913
913
  # matrix are nonzero.
914
914
  #
915
915
  # ---
916
916
  # * GSL::Matrix#all
917
917
  #
918
- # Behaves like the method <tt>any</tt>, except that it returns 1 only if
918
+ # Behaves like the method <tt>any</tt>, except that it returns 1 only if
919
919
  # all the elements of the matrix.
920
920
  #
921
921
  # ---
922
922
  # * GSL:Matrix#trace
923
923
  #
924
- # This returns trace of the matrix <tt>self</tt>, the sum of the diagonal
924
+ # This returns trace of the matrix <tt>self</tt>, the sum of the diagonal
925
925
  # elements.
926
926
  #
927
927
  # ---
@@ -944,13 +944,13 @@
944
944
  # Example:
945
945
  # >> m = GSL::Matrix::Int[-5..4, 3, 3]
946
946
  # => GSL::Matrix::Int
947
- # [ -5 -4 -3
948
- # -2 -1 0
947
+ # [ -5 -4 -3
948
+ # -2 -1 0
949
949
  # 1 2 3 ]
950
950
  # >> m.abs
951
951
  # => GSL::Matrix::Int
952
- # [ 5 4 3
953
- # 2 1 0
952
+ # [ 5 4 3
953
+ # 2 1 0
954
954
  # 1 2 3 ]
955
955
  #
956
956
  # ---
@@ -958,15 +958,15 @@
958
958
  # * GSL::Matrix#==(other, eps = 1e-10)
959
959
  #
960
960
  # Returns <tt>true</tt> if the matrices have same size and elements
961
- # equal to absolute accurary <tt>eps</tt> for all the indices,
961
+ # equal to absolute accurary <tt>eps</tt> for all the indices,
962
962
  # and <tt>false</tt> otherwise.
963
963
  #
964
- # == {}[link:index.html"name="3] NArray
964
+ # == NArray
965
965
  #
966
966
  # ---
967
967
  # * GSL::Matrix#to_na
968
968
  #
969
- # The Matrix object <tt>self</tt> is converted into an <tt>NMatrix</tt> object.
969
+ # The Matrix object <tt>self</tt> is converted into an <tt>NMatrix</tt> object.
970
970
  # The matrix data are copied to newly allocated memory.
971
971
  #
972
972
  # ---
@@ -979,54 +979,54 @@
979
979
  # * NArray#to_gm_view
980
980
  # * NArray#to_gslm_view
981
981
  #
982
- # A <tt>GSL::Matrix::View</tt> object is created from the NArray object <tt>na</tt>.
983
- # The data of <tt>na</tt> are
984
- # not copied, thus any modifications to the View object affect on the original
985
- # NArray object <tt>na</tt>.
982
+ # A <tt>GSL::Matrix::View</tt> object is created from the NArray object <tt>na</tt>.
983
+ # The data of <tt>na</tt> are
984
+ # not copied, thus any modifications to the View object affect on the original
985
+ # NArray object <tt>na</tt>.
986
986
  # The View object can be used as a reference to the NMatrix object.
987
987
  #
988
- # == {}[link:index.html"name="4] Special matrices
988
+ # == Special matrices
989
989
  # ---
990
- # * GSL::Matrix.hirbert(n)
990
+ # * GSL::Matrix.hilbert(n)
991
991
  #
992
992
  # Returns the Hilbert matrix of order <tt>n</tt>. The <tt>ij</tt> element is
993
993
  # defined as 1/(i+j+1).
994
994
  #
995
995
  # ---
996
- # * GSL::Matrix.invhirbert(n)
996
+ # * GSL::Matrix.invhilbert(n)
997
997
  #
998
998
  # Returns the inverse of a Hilbert matrix of order <tt>n</tt>.
999
999
  #
1000
1000
  # Ex:
1001
1001
  # >> m = GSL::Matrix.hilbert(4)
1002
- # => GSL::Matrix
1003
- # [ 1.000e+00 5.000e-01 3.333e-01 2.500e-01
1004
- # 5.000e-01 3.333e-01 2.500e-01 2.000e-01
1005
- # 3.333e-01 2.500e-01 2.000e-01 1.667e-01
1002
+ # => GSL::Matrix
1003
+ # [ 1.000e+00 5.000e-01 3.333e-01 2.500e-01
1004
+ # 5.000e-01 3.333e-01 2.500e-01 2.000e-01
1005
+ # 3.333e-01 2.500e-01 2.000e-01 1.667e-01
1006
1006
  # 2.500e-01 2.000e-01 1.667e-01 1.429e-01 ]
1007
1007
  # >> invm = GSL::Matrix.invhilbert(4)
1008
- # => GSL::Matrix
1009
- # [ 1.600e+01 -1.200e+02 2.400e+02 -1.400e+02
1010
- # -1.200e+02 1.200e+03 -2.700e+03 1.680e+03
1011
- # 2.400e+02 -2.700e+03 6.480e+03 -4.200e+03
1008
+ # => GSL::Matrix
1009
+ # [ 1.600e+01 -1.200e+02 2.400e+02 -1.400e+02
1010
+ # -1.200e+02 1.200e+03 -2.700e+03 1.680e+03
1011
+ # 2.400e+02 -2.700e+03 6.480e+03 -4.200e+03
1012
1012
  # -1.400e+02 1.680e+03 -4.200e+03 2.800e+03 ]
1013
1013
  # >> invm2 = m.inv
1014
- # => GSL::Matrix
1015
- # [ 1.600e+01 -1.200e+02 2.400e+02 -1.400e+02
1016
- # -1.200e+02 1.200e+03 -2.700e+03 1.680e+03
1017
- # 2.400e+02 -2.700e+03 6.480e+03 -4.200e+03
1014
+ # => GSL::Matrix
1015
+ # [ 1.600e+01 -1.200e+02 2.400e+02 -1.400e+02
1016
+ # -1.200e+02 1.200e+03 -2.700e+03 1.680e+03
1017
+ # 2.400e+02 -2.700e+03 6.480e+03 -4.200e+03
1018
1018
  # -1.400e+02 1.680e+03 -4.200e+03 2.800e+03 ]
1019
1019
  # >> m*invm
1020
- # => GSL::Matrix
1021
- # [ 1.000e+00 5.684e-14 -2.274e-13 1.137e-13
1022
- # 1.998e-15 1.000e+00 -4.663e-14 3.109e-14
1023
- # 3.664e-15 -7.239e-14 1.000e+00 -1.017e-13
1020
+ # => GSL::Matrix
1021
+ # [ 1.000e+00 5.684e-14 -2.274e-13 1.137e-13
1022
+ # 1.998e-15 1.000e+00 -4.663e-14 3.109e-14
1023
+ # 3.664e-15 -7.239e-14 1.000e+00 -1.017e-13
1024
1024
  # -2.442e-15 1.510e-14 -8.038e-14 1.000e+00 ]
1025
1025
  # >> m*invm2
1026
- # => GSL::Matrix
1027
- # [ 1.000e+00 0.000e+00 0.000e+00 0.000e+00
1028
- # -1.554e-15 1.000e+00 -2.389e-14 8.349e-15
1029
- # 1.295e-15 3.405e-15 1.000e+00 -6.957e-15
1026
+ # => GSL::Matrix
1027
+ # [ 1.000e+00 0.000e+00 0.000e+00 0.000e+00
1028
+ # -1.554e-15 1.000e+00 -2.389e-14 8.349e-15
1029
+ # 1.295e-15 3.405e-15 1.000e+00 -6.957e-15
1030
1030
  # 1.110e-15 1.916e-14 1.707e-14 1.000e+00 ]
1031
1031
  #
1032
1032
  # ---
@@ -1035,23 +1035,23 @@
1035
1035
  # Returns the Pascal matrix of order <tt>n</tt>, created from Pascal's triangle.
1036
1036
  #
1037
1037
  # >> GSL::Matrix::Int.pascal(10)
1038
- # => GSL::Matrix::Int
1039
- # [ 1 1 1 1 1 1 1 1 1 1
1040
- # 1 2 3 4 5 6 7 8 9 10
1041
- # 1 3 6 10 15 21 28 36 45 55
1042
- # 1 4 10 20 35 56 84 120 165 220
1043
- # 1 5 15 35 70 126 210 330 495 715
1044
- # 1 6 21 56 126 252 462 792 1287 2002
1045
- # 1 7 28 84 210 462 924 1716 3003 5005
1046
- # 1 8 36 120 330 792 1716 3432 6435 11440
1047
- # 1 9 45 165 495 1287 3003 6435 12870 24310
1038
+ # => GSL::Matrix::Int
1039
+ # [ 1 1 1 1 1 1 1 1 1 1
1040
+ # 1 2 3 4 5 6 7 8 9 10
1041
+ # 1 3 6 10 15 21 28 36 45 55
1042
+ # 1 4 10 20 35 56 84 120 165 220
1043
+ # 1 5 15 35 70 126 210 330 495 715
1044
+ # 1 6 21 56 126 252 462 792 1287 2002
1045
+ # 1 7 28 84 210 462 924 1716 3003 5005
1046
+ # 1 8 36 120 330 792 1716 3432 6435 11440
1047
+ # 1 9 45 165 495 1287 3003 6435 12870 24310
1048
1048
  # 1 10 55 220 715 2002 5005 11440 24310 48620 ]
1049
1049
  #
1050
1050
  # ---
1051
1051
  # * GSL::Matrix.vandermonde(v)
1052
1052
  #
1053
1053
  # Creates a Vendermonde matrix from a vector or an array <tt>v</tt>.
1054
- #
1054
+ #
1055
1055
  # >> GSL::Matrix.vander([1, 2, 3, 4])
1056
1056
  # => GSL::Matrix
1057
1057
  # [ 1.000e+00 1.000e+00 1.000e+00 1.000e+00
@@ -1063,31 +1063,31 @@
1063
1063
  # * GSL::Matrix.toeplitz(v)
1064
1064
  #
1065
1065
  # Creates a Toeplitz matrix from a vector or an array <tt>v</tt>.
1066
- #
1066
+ #
1067
1067
  # >> GSL::Matrix::Int.toeplitz([1, 2, 3, 4, 5])
1068
- # => GSL::Matrix::Int
1069
- # [ 1 2 3 4 5
1070
- # 2 1 2 3 4
1071
- # 3 2 1 2 3
1072
- # 4 3 2 1 2
1068
+ # => GSL::Matrix::Int
1069
+ # [ 1 2 3 4 5
1070
+ # 2 1 2 3 4
1071
+ # 3 2 1 2 3
1072
+ # 4 3 2 1 2
1073
1073
  # 5 4 3 2 1 ]
1074
1074
  #
1075
1075
  # ---
1076
1076
  # * GSL::Matrix.circulant(v)
1077
1077
  #
1078
1078
  # Creates a circulant matrix from a vector or an array <tt>v</tt>.
1079
- #
1079
+ #
1080
1080
  # >> GSL::Matrix::Int.circulant([1, 2, 3, 4])
1081
- # => GSL::Matrix::Int
1082
- # [ 4 1 2 3
1083
- # 3 4 1 2
1084
- # 2 3 4 1
1081
+ # => GSL::Matrix::Int
1082
+ # [ 4 1 2 3
1083
+ # 3 4 1 2
1084
+ # 2 3 4 1
1085
1085
  # 1 2 3 4 ]
1086
1086
  #
1087
- # {prev}[link:files/rdoc/vector_rdoc.html]
1088
- # {next}[link:files/rdoc/perm_rdoc.html]
1087
+ # {prev}[link:rdoc/vector_rdoc.html]
1088
+ # {next}[link:rdoc/perm_rdoc.html]
1089
+ #
1090
+ # {Reference index}[link:rdoc/ref_rdoc.html]
1091
+ # {top}[link:index.html]
1089
1092
  #
1090
- # {Reference index}[link:files/rdoc/ref_rdoc.html]
1091
- # {top}[link:files/rdoc/index_rdoc.html]
1092
- #
1093
1093
  #