rb-gsl 1.15.3.1 → 1.15.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHORS +2 -2
- data/ChangeLog +8 -0
- data/Rakefile +39 -96
- data/VERSION +1 -1
- data/ext/array.c +2 -2
- data/ext/block_source.c +1 -1
- data/ext/dirac.c +1 -1
- data/ext/eigen.c +13 -13
- data/ext/extconf.rb +17 -11
- data/ext/function.c +5 -5
- data/ext/gsl_narray.c +6 -6
- data/ext/histogram.c +7 -6
- data/ext/histogram2d.c +4 -4
- data/ext/interp.c +1 -1
- data/ext/linalg.c +13 -11
- data/ext/linalg_complex.c +8 -6
- data/ext/math.c +1 -1
- data/ext/matrix_complex.c +6 -6
- data/ext/matrix_source.c +10 -10
- data/ext/monte.c +2 -2
- data/ext/multimin.c +4 -4
- data/ext/multiroots.c +8 -8
- data/ext/nmf.c +6 -6
- data/ext/ntuple.c +4 -4
- data/ext/odeiv.c +2 -2
- data/ext/permutation.c +1 -1
- data/ext/poly2.c +6 -6
- data/ext/poly_source.c +9 -6
- data/ext/sf.c +31 -45
- data/ext/signal.c +2 -2
- data/ext/vector_complex.c +11 -10
- data/ext/vector_double.c +7 -4
- data/ext/vector_source.c +29 -26
- data/ext/wavelet.c +1 -1
- data/include/rb_gsl_common.h +12 -0
- data/include/rb_gsl_config.h +10 -1
- data/rdoc/blas.rdoc +4 -4
- data/rdoc/bspline.rdoc +8 -8
- data/rdoc/cheb.rdoc +9 -9
- data/rdoc/cholesky_complex.rdoc +1 -1
- data/rdoc/combi.rdoc +10 -10
- data/rdoc/complex.rdoc +12 -12
- data/rdoc/const.rdoc +21 -21
- data/rdoc/dht.rdoc +7 -7
- data/rdoc/diff.rdoc +7 -7
- data/rdoc/ehandling.rdoc +4 -4
- data/rdoc/eigen.rdoc +12 -12
- data/rdoc/fft.rdoc +27 -27
- data/rdoc/fit.rdoc +19 -19
- data/rdoc/function.rdoc +1 -1
- data/rdoc/graph.rdoc +3 -3
- data/rdoc/hist.rdoc +17 -17
- data/rdoc/hist2d.rdoc +5 -5
- data/rdoc/hist3d.rdoc +4 -4
- data/rdoc/index.rdoc +4 -4
- data/rdoc/integration.rdoc +17 -17
- data/rdoc/interp.rdoc +12 -12
- data/rdoc/intro.rdoc +4 -4
- data/rdoc/linalg.rdoc +21 -21
- data/rdoc/linalg_complex.rdoc +1 -1
- data/rdoc/math.rdoc +14 -14
- data/rdoc/matrix.rdoc +21 -21
- data/rdoc/min.rdoc +10 -10
- data/rdoc/monte.rdoc +4 -4
- data/rdoc/multimin.rdoc +13 -13
- data/rdoc/multiroot.rdoc +13 -13
- data/rdoc/narray.rdoc +10 -10
- data/rdoc/ndlinear.rdoc +5 -5
- data/rdoc/nonlinearfit.rdoc +18 -18
- data/rdoc/ntuple.rdoc +6 -6
- data/rdoc/odeiv.rdoc +13 -13
- data/rdoc/perm.rdoc +12 -12
- data/rdoc/poly.rdoc +18 -18
- data/rdoc/qrng.rdoc +10 -10
- data/rdoc/randist.rdoc +11 -11
- data/rdoc/ref.rdoc +50 -50
- data/rdoc/rng.rdoc +10 -10
- data/rdoc/rngextra.rdoc +5 -5
- data/rdoc/roots.rdoc +13 -13
- data/rdoc/sf.rdoc +36 -36
- data/rdoc/siman.rdoc +4 -4
- data/rdoc/sort.rdoc +7 -7
- data/rdoc/start.rdoc +1 -1
- data/rdoc/stats.rdoc +14 -14
- data/rdoc/sum.rdoc +5 -5
- data/rdoc/tensor.rdoc +4 -4
- data/rdoc/tut.rdoc +1 -1
- data/rdoc/use.rdoc +5 -5
- data/rdoc/vector.rdoc +29 -29
- data/rdoc/vector_complex.rdoc +6 -6
- data/rdoc/wavelet.rdoc +9 -9
- data/test/gsl/blas_test.rb +79 -0
- data/test/gsl/bspline_test.rb +63 -0
- data/test/gsl/cdf_test.rb +1512 -0
- data/test/gsl/cheb_test.rb +80 -0
- data/test/gsl/combination_test.rb +100 -0
- data/test/gsl/complex_test.rb +20 -0
- data/test/gsl/const_test.rb +29 -0
- data/test/gsl/deriv_test.rb +62 -0
- data/test/gsl/dht_test.rb +79 -0
- data/test/gsl/diff_test.rb +53 -0
- data/test/gsl/eigen_test.rb +563 -0
- data/test/gsl/err_test.rb +23 -0
- data/test/gsl/fit_test.rb +101 -0
- data/test/gsl/histo_test.rb +14 -0
- data/test/gsl/integration_test.rb +274 -0
- data/test/gsl/interp_test.rb +27 -0
- data/test/gsl/linalg_test.rb +463 -0
- data/test/gsl/matrix_nmf_test.rb +37 -0
- data/test/gsl/matrix_test.rb +77 -0
- data/test/gsl/min_test.rb +89 -0
- data/test/gsl/monte_test.rb +77 -0
- data/test/gsl/multifit_test.rb +753 -0
- data/test/gsl/multimin_test.rb +157 -0
- data/test/gsl/multiroot_test.rb +135 -0
- data/test/gsl/multiset_test.rb +52 -0
- data/test/gsl/odeiv_test.rb +275 -0
- data/test/gsl/poly_test.rb +338 -0
- data/test/gsl/qrng_test.rb +94 -0
- data/test/gsl/quartic_test.rb +28 -0
- data/test/gsl/randist_test.rb +122 -0
- data/test/gsl/rng_test.rb +303 -0
- data/test/gsl/roots_test.rb +78 -0
- data/test/gsl/sf_test.rb +2079 -0
- data/test/gsl/stats_test.rb +122 -0
- data/test/gsl/sum_test.rb +69 -0
- data/test/gsl/tensor_test.rb +396 -0
- data/test/gsl/vector_test.rb +223 -0
- data/test/gsl/wavelet_test.rb +130 -0
- data/test/gsl_test.rb +321 -0
- data/test/test_helper.rb +42 -0
- metadata +107 -150
- data/setup.rb +0 -1585
- data/tests/blas/amax.rb +0 -14
- data/tests/blas/asum.rb +0 -16
- data/tests/blas/axpy.rb +0 -25
- data/tests/blas/copy.rb +0 -23
- data/tests/blas/dot.rb +0 -23
- data/tests/bspline.rb +0 -53
- data/tests/cdf.rb +0 -1388
- data/tests/cheb.rb +0 -112
- data/tests/combination.rb +0 -123
- data/tests/complex.rb +0 -17
- data/tests/const.rb +0 -24
- data/tests/deriv.rb +0 -85
- data/tests/dht/dht1.rb +0 -17
- data/tests/dht/dht2.rb +0 -23
- data/tests/dht/dht3.rb +0 -23
- data/tests/dht/dht4.rb +0 -23
- data/tests/diff.rb +0 -78
- data/tests/eigen/eigen.rb +0 -220
- data/tests/eigen/gen.rb +0 -105
- data/tests/eigen/genherm.rb +0 -66
- data/tests/eigen/gensymm.rb +0 -68
- data/tests/eigen/nonsymm.rb +0 -53
- data/tests/eigen/nonsymmv.rb +0 -53
- data/tests/eigen/symm-herm.rb +0 -74
- data/tests/err.rb +0 -58
- data/tests/fit.rb +0 -124
- data/tests/gsl_test.rb +0 -118
- data/tests/gsl_test2.rb +0 -110
- data/tests/histo.rb +0 -12
- data/tests/integration/integration1.rb +0 -72
- data/tests/integration/integration2.rb +0 -71
- data/tests/integration/integration3.rb +0 -71
- data/tests/integration/integration4.rb +0 -71
- data/tests/interp.rb +0 -45
- data/tests/linalg/HH.rb +0 -64
- data/tests/linalg/LU.rb +0 -47
- data/tests/linalg/QR.rb +0 -77
- data/tests/linalg/SV.rb +0 -24
- data/tests/linalg/TDN.rb +0 -116
- data/tests/linalg/TDS.rb +0 -122
- data/tests/linalg/bidiag.rb +0 -73
- data/tests/linalg/cholesky.rb +0 -20
- data/tests/linalg/linalg.rb +0 -158
- data/tests/matrix/matrix_complex_test.rb +0 -36
- data/tests/matrix/matrix_nmf_test.rb +0 -39
- data/tests/matrix/matrix_test.rb +0 -48
- data/tests/min.rb +0 -99
- data/tests/monte/miser.rb +0 -31
- data/tests/monte/vegas.rb +0 -45
- data/tests/multifit/test_2dgauss.rb +0 -112
- data/tests/multifit/test_brown.rb +0 -90
- data/tests/multifit/test_enso.rb +0 -246
- data/tests/multifit/test_filip.rb +0 -155
- data/tests/multifit/test_gauss.rb +0 -97
- data/tests/multifit/test_longley.rb +0 -110
- data/tests/multifit/test_multifit.rb +0 -52
- data/tests/multimin.rb +0 -139
- data/tests/multiroot.rb +0 -131
- data/tests/multiset.rb +0 -52
- data/tests/narray/blas_dnrm2.rb +0 -20
- data/tests/odeiv.rb +0 -353
- data/tests/poly/poly.rb +0 -290
- data/tests/poly/special.rb +0 -65
- data/tests/qrng.rb +0 -131
- data/tests/quartic.rb +0 -29
- data/tests/randist.rb +0 -134
- data/tests/rng.rb +0 -305
- data/tests/roots.rb +0 -76
- data/tests/run-test.sh +0 -17
- data/tests/sf/gsl_test_sf.rb +0 -249
- data/tests/sf/test_airy.rb +0 -83
- data/tests/sf/test_bessel.rb +0 -306
- data/tests/sf/test_coulomb.rb +0 -17
- data/tests/sf/test_dilog.rb +0 -25
- data/tests/sf/test_gamma.rb +0 -209
- data/tests/sf/test_hyperg.rb +0 -356
- data/tests/sf/test_legendre.rb +0 -227
- data/tests/sf/test_mathieu.rb +0 -59
- data/tests/sf/test_mode.rb +0 -19
- data/tests/sf/test_sf.rb +0 -839
- data/tests/stats.rb +0 -174
- data/tests/stats_mt.rb +0 -16
- data/tests/sum.rb +0 -98
- data/tests/sys.rb +0 -323
- data/tests/tensor.rb +0 -419
- data/tests/vector/vector_complex_test.rb +0 -101
- data/tests/vector/vector_test.rb +0 -141
- data/tests/wavelet.rb +0 -142
data/rdoc/rng.rdoc
CHANGED
@@ -13,12 +13,12 @@
|
|
13
13
|
#
|
14
14
|
#
|
15
15
|
# Contents:
|
16
|
-
# 1. {General comments on random numbers}[link:
|
17
|
-
# 1. {The Random Number Generator Interface: GSL::Rng class}[link:
|
18
|
-
# 1. {Random number generator initialization}[link:
|
19
|
-
# 1. {Sampling from a random number generator}[link:
|
20
|
-
# 1. {Auxiliary random number generator functions}[link:
|
21
|
-
# 1. {Random number environment variables}[link:
|
16
|
+
# 1. {General comments on random numbers}[link:rdoc/rng_rdoc.html#1]
|
17
|
+
# 1. {The Random Number Generator Interface: GSL::Rng class}[link:rdoc/rng_rdoc.html#2]
|
18
|
+
# 1. {Random number generator initialization}[link:rdoc/rng_rdoc.html#3]
|
19
|
+
# 1. {Sampling from a random number generator}[link:rdoc/rng_rdoc.html#4]
|
20
|
+
# 1. {Auxiliary random number generator functions}[link:rdoc/rng_rdoc.html#5]
|
21
|
+
# 1. {Random number environment variables}[link:rdoc/rng_rdoc.html#6]
|
22
22
|
#
|
23
23
|
# == {}[link:index.html"name="1] General comments on random numbers
|
24
24
|
# In 1988, Park and Miller wrote a paper entitled "Random number generators:
|
@@ -195,9 +195,9 @@
|
|
195
195
|
# The initial value of the default seed is zero.
|
196
196
|
#
|
197
197
|
#
|
198
|
-
# {prev}[link:
|
199
|
-
# {next}[link:
|
198
|
+
# {prev}[link:rdoc/integration_rdoc.html]
|
199
|
+
# {next}[link:rdoc/qrng_rdoc.html]
|
200
200
|
#
|
201
|
-
# {Reference index}[link:
|
202
|
-
# {top}[link:
|
201
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
202
|
+
# {top}[link:index.html]
|
203
203
|
#
|
data/rdoc/rngextra.rdoc
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
#
|
2
2
|
# = rngextra
|
3
|
-
# See {Random number generation}[link:
|
3
|
+
# See {Random number generation}[link:rdoc/rng_rdoc.html].
|
4
4
|
#
|
5
|
-
# {prev}[link:
|
6
|
-
# {next}[link:
|
5
|
+
# {prev}[link:rdoc/graph_rdoc.html]
|
6
|
+
# {next}[link:rdoc/tensor_rdoc.html]
|
7
7
|
#
|
8
|
-
# {Reference index}[link:
|
9
|
-
# {top}[link:
|
8
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
9
|
+
# {top}[link:index.html]
|
10
10
|
#
|
11
11
|
#
|
data/rdoc/roots.rdoc
CHANGED
@@ -8,13 +8,13 @@
|
|
8
8
|
# and its derivative (hence the name fdf) to be supplied by the user.
|
9
9
|
#
|
10
10
|
# Contents:
|
11
|
-
# 1. {Solver classes}[link:
|
12
|
-
# 1. {Methods}[link:
|
13
|
-
# 1. {Methods to solve equations}[link:
|
14
|
-
# 1. {GSL::Function_fdf class: Providing the function to solve}[link:
|
15
|
-
# 1. {Search Stopping Parameters}[link:
|
16
|
-
# 1. {Higher-level interface}[link:
|
17
|
-
# 1. {Example}[link:
|
11
|
+
# 1. {Solver classes}[link:rdoc/roots_rdoc.html#1]
|
12
|
+
# 1. {Methods}[link:rdoc/roots_rdoc.html#2]
|
13
|
+
# 1. {Methods to solve equations}[link:rdoc/roots_rdoc.html#2.1]
|
14
|
+
# 1. {GSL::Function_fdf class: Providing the function to solve}[link:rdoc/roots_rdoc.html#2.2]
|
15
|
+
# 1. {Search Stopping Parameters}[link:rdoc/roots_rdoc.html#2.3]
|
16
|
+
# 1. {Higher-level interface}[link:rdoc/roots_rdoc.html#3]
|
17
|
+
# 1. {Example}[link:rdoc/roots_rdoc.html#4]
|
18
18
|
#
|
19
19
|
# == {}[link:index.html"name="1] Solver classes
|
20
20
|
#
|
@@ -51,7 +51,7 @@
|
|
51
51
|
# This initialize the solver <tt>self</tt> to use the function <tt>f</tt>,
|
52
52
|
# and the initial search
|
53
53
|
# interval <tt>xl, xu</tt>. The function to be solved <tt>f</tt> is given
|
54
|
-
# an instanse of the {GSL::Function}[link:
|
54
|
+
# an instanse of the {GSL::Function}[link:rdoc/function_rdoc.html] class.
|
55
55
|
#
|
56
56
|
# ---
|
57
57
|
# * GSL::Root::FdfSolver#set(fdf, r)
|
@@ -91,7 +91,7 @@
|
|
91
91
|
#
|
92
92
|
# === {}[link:index.html"name="2.2] GSL::Function_fdf class: Providing the function to solve
|
93
93
|
# The <tt>FSolver</tt> object require an instance of the
|
94
|
-
# {GSL::Function}[link:
|
94
|
+
# {GSL::Function}[link:rdoc/function_rdoc.html] class, which is already introduced elsewhere.
|
95
95
|
# The <tt>FdfSolver</tt> which uses the root-polishing algorithm requires not only
|
96
96
|
# the function to solve, but also
|
97
97
|
# procedures to calculate the derivatives. This is
|
@@ -296,10 +296,10 @@
|
|
296
296
|
# printf("%5d %10.7f %+10.7f %10.7f\n", iter, x, x - expected, x - x0)
|
297
297
|
# end while status != GSL::SUCCESS
|
298
298
|
#
|
299
|
-
# {prev}[link:
|
300
|
-
# {next}[link:
|
299
|
+
# {prev}[link:rdoc/dht_rdoc.html]
|
300
|
+
# {next}[link:rdoc/min_rdoc.html]
|
301
301
|
#
|
302
|
-
# {Reference index}[link:
|
303
|
-
# {top}[link:
|
302
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
303
|
+
# {top}[link:index.html]
|
304
304
|
#
|
305
305
|
#
|
data/rdoc/sf.rdoc
CHANGED
@@ -2,38 +2,38 @@
|
|
2
2
|
# = Special Functions
|
3
3
|
#
|
4
4
|
# === {}[link:index.html"name="0.1] Contents:
|
5
|
-
# 1. {Usage:}[link:
|
6
|
-
# 1. {GSL::Sf::Result class}[link:
|
7
|
-
# 1. {Modes}[link:
|
8
|
-
# 1. {Airy functions}[link:
|
9
|
-
# 1. {Bessel functins}[link:
|
10
|
-
# 1. {Clausen functins}[link:
|
11
|
-
# 1. {Coulomb functins}[link:
|
12
|
-
# 1. {Coupling coefficients}[link:
|
13
|
-
# 1. {Dawson coefficients}[link:
|
14
|
-
# 1. {Debye coefficients}[link:
|
15
|
-
# 1. {Dilogarithm}[link:
|
16
|
-
# 1. {Elementary operations}[link:
|
17
|
-
# 1. {Elliptic integrals}[link:
|
18
|
-
# 1. {Elliptic functions}[link:
|
19
|
-
# 1. {Error functions}[link:
|
20
|
-
# 1. {Exponential functions}[link:
|
21
|
-
# 1. {Exponential integrals}[link:
|
22
|
-
# 1. {Fermi-Dirac function}[link:
|
23
|
-
# 1. {Gamma function}[link:
|
24
|
-
# 1. {Gegenbauer functions}[link:
|
25
|
-
# 1. {Hypergeometric functions}[link:
|
26
|
-
# 1. {Laguerre functions}[link:
|
27
|
-
# 1. {Lambert W functions}[link:
|
28
|
-
# 1. {Legendre functions and spherical harmonics}[link:
|
29
|
-
# 1. {Logarithm and related functions}[link:
|
30
|
-
# 1. {Mathieu functions}[link:
|
31
|
-
# 1. {Power function}[link:
|
32
|
-
# 1. {Psi (digamma) function}[link:
|
33
|
-
# 1. {Synchrotron functions}[link:
|
34
|
-
# 1. {Transport functions}[link:
|
35
|
-
# 1. {Trigonometric functions}[link:
|
36
|
-
# 1. {Zeta functions}[link:
|
5
|
+
# 1. {Usage:}[link:rdoc/sf_rdoc.html#1]
|
6
|
+
# 1. {GSL::Sf::Result class}[link:rdoc/sf_rdoc.html#2]
|
7
|
+
# 1. {Modes}[link:rdoc/sf_rdoc.html#3]
|
8
|
+
# 1. {Airy functions}[link:rdoc/sf_rdoc.html#4]
|
9
|
+
# 1. {Bessel functins}[link:rdoc/sf_rdoc.html#5]
|
10
|
+
# 1. {Clausen functins}[link:rdoc/sf_rdoc.html#6]
|
11
|
+
# 1. {Coulomb functins}[link:rdoc/sf_rdoc.html#7]
|
12
|
+
# 1. {Coupling coefficients}[link:rdoc/sf_rdoc.html#8]
|
13
|
+
# 1. {Dawson coefficients}[link:rdoc/sf_rdoc.html#9]
|
14
|
+
# 1. {Debye coefficients}[link:rdoc/sf_rdoc.html#10]
|
15
|
+
# 1. {Dilogarithm}[link:rdoc/sf_rdoc.html#11]
|
16
|
+
# 1. {Elementary operations}[link:rdoc/sf_rdoc.html#12]
|
17
|
+
# 1. {Elliptic integrals}[link:rdoc/sf_rdoc.html#13]
|
18
|
+
# 1. {Elliptic functions}[link:rdoc/sf_rdoc.html#14]
|
19
|
+
# 1. {Error functions}[link:rdoc/sf_rdoc.html#15]
|
20
|
+
# 1. {Exponential functions}[link:rdoc/sf_rdoc.html#16]
|
21
|
+
# 1. {Exponential integrals}[link:rdoc/sf_rdoc.html#17]
|
22
|
+
# 1. {Fermi-Dirac function}[link:rdoc/sf_rdoc.html#18]
|
23
|
+
# 1. {Gamma function}[link:rdoc/sf_rdoc.html#19]
|
24
|
+
# 1. {Gegenbauer functions}[link:rdoc/sf_rdoc.html#20]
|
25
|
+
# 1. {Hypergeometric functions}[link:rdoc/sf_rdoc.html#21]
|
26
|
+
# 1. {Laguerre functions}[link:rdoc/sf_rdoc.html#22]
|
27
|
+
# 1. {Lambert W functions}[link:rdoc/sf_rdoc.html#23]
|
28
|
+
# 1. {Legendre functions and spherical harmonics}[link:rdoc/sf_rdoc.html#24]
|
29
|
+
# 1. {Logarithm and related functions}[link:rdoc/sf_rdoc.html#25]
|
30
|
+
# 1. {Mathieu functions}[link:rdoc/sf_rdoc.html#26]
|
31
|
+
# 1. {Power function}[link:rdoc/sf_rdoc.html#27]
|
32
|
+
# 1. {Psi (digamma) function}[link:rdoc/sf_rdoc.html#28]
|
33
|
+
# 1. {Synchrotron functions}[link:rdoc/sf_rdoc.html#29]
|
34
|
+
# 1. {Transport functions}[link:rdoc/sf_rdoc.html#30]
|
35
|
+
# 1. {Trigonometric functions}[link:rdoc/sf_rdoc.html#31]
|
36
|
+
# 1. {Zeta functions}[link:rdoc/sf_rdoc.html#32]
|
37
37
|
#
|
38
38
|
# == {}[link:index.html"name="1] Usage
|
39
39
|
# Ruby/GSL provides all the (documented) GSL special functions as module functions
|
@@ -1613,10 +1613,10 @@
|
|
1613
1613
|
#
|
1614
1614
|
# Computes the eta function eta(s) for arbitrary s.
|
1615
1615
|
#
|
1616
|
-
# {prev}[link:
|
1617
|
-
# {next}[link:
|
1616
|
+
# {prev}[link:rdoc/poly_rdoc.html]
|
1617
|
+
# {next}[link:rdoc/vector_rdoc.html]
|
1618
1618
|
#
|
1619
|
-
# {Reference index}[link:
|
1620
|
-
# {top}[link:
|
1619
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
1620
|
+
# {top}[link:index.html]
|
1621
1621
|
#
|
1622
1622
|
#
|
data/rdoc/siman.rdoc
CHANGED
@@ -81,9 +81,9 @@
|
|
81
81
|
# Siman::solve(rng, x, efunc, step, metric, nil, params)
|
82
82
|
# p x
|
83
83
|
#
|
84
|
-
# {prev}[link:
|
85
|
-
# {next}[link:
|
84
|
+
# {prev}[link:rdoc/monte_rdoc.html]
|
85
|
+
# {next}[link:rdoc/odeiv_rdoc.html]
|
86
86
|
#
|
87
|
-
# {Reference index}[link:
|
88
|
-
# {top}[link:
|
87
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
88
|
+
# {top}[link:index.html]
|
89
89
|
#
|
data/rdoc/sort.rdoc
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
#
|
2
2
|
# = Sorting
|
3
3
|
# Contents:
|
4
|
-
# 1. {Heapsort of vectors}[link:
|
5
|
-
# 1. {Sorting vectors}[link:
|
6
|
-
# 1. {Selecting the k smallest or largest elements}[link:
|
4
|
+
# 1. {Heapsort of vectors}[link:rdoc/sort_rdoc.html#1]
|
5
|
+
# 1. {Sorting vectors}[link:rdoc/sort_rdoc.html#2]
|
6
|
+
# 1. {Selecting the k smallest or largest elements}[link:rdoc/sort_rdoc.html#3]
|
7
7
|
#
|
8
8
|
# == {}[link:index.html"name="1] Heapsort
|
9
9
|
#
|
@@ -85,10 +85,10 @@
|
|
85
85
|
# <tt>k</tt> must be less than or equal to the length of the vector.
|
86
86
|
#
|
87
87
|
#
|
88
|
-
# {prev}[link:
|
89
|
-
# {next}[link:
|
88
|
+
# {prev}[link:rdoc/multiset_rdoc.html]
|
89
|
+
# {next}[link:rdoc/blas_rdoc.html]
|
90
90
|
#
|
91
|
-
# {Reference index}[link:
|
92
|
-
# {top}[link:
|
91
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
92
|
+
# {top}[link:index.html]
|
93
93
|
#
|
94
94
|
#
|
data/rdoc/start.rdoc
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
#
|
11
11
|
# The {Ruby/GSL}[http://rubyforge.org/projects/rb-gsl/"target="_top] is Ruby
|
12
12
|
# bidings for GSL. This provides higher-level interfaces to the GSL functions.
|
13
|
-
# See {here}[link:
|
13
|
+
# See {here}[link:rdoc/use_rdoc.html] for installation. To use the library , just put at the head of your scripts <tt>require("gsl")</tt>, or type it from the command line of <tt>irb</tt>.
|
14
14
|
#
|
15
15
|
#
|
16
16
|
#
|
data/rdoc/stats.rdoc
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
#
|
2
2
|
# = Statistics
|
3
|
-
# 1. {Mean, Standard Deviation and Variance}[link:
|
4
|
-
# 1. {Absolute deviation}[link:
|
5
|
-
# 1. {Higher moments (skewness and kurtosis)}[link:
|
6
|
-
# 1. {Autocorrelation}[link:
|
7
|
-
# 1. {Covariance}[link:
|
8
|
-
# 1. {Correlation}[link:
|
9
|
-
# 1. {Weighted samples}[link:
|
10
|
-
# 1. {Maximum and minimum values}[link:
|
11
|
-
# 1. {Median and percentiles}[link:
|
12
|
-
# 1. {Examples}[link:
|
3
|
+
# 1. {Mean, Standard Deviation and Variance}[link:rdoc/stats_rdoc.html#1]
|
4
|
+
# 1. {Absolute deviation}[link:rdoc/stats_rdoc.html#2]
|
5
|
+
# 1. {Higher moments (skewness and kurtosis)}[link:rdoc/stats_rdoc.html#3]
|
6
|
+
# 1. {Autocorrelation}[link:rdoc/stats_rdoc.html#4]
|
7
|
+
# 1. {Covariance}[link:rdoc/stats_rdoc.html#5]
|
8
|
+
# 1. {Correlation}[link:rdoc/stats_rdoc.html#6]
|
9
|
+
# 1. {Weighted samples}[link:rdoc/stats_rdoc.html#7]
|
10
|
+
# 1. {Maximum and minimum values}[link:rdoc/stats_rdoc.html#8]
|
11
|
+
# 1. {Median and percentiles}[link:rdoc/stats_rdoc.html#9]
|
12
|
+
# 1. {Examples}[link:rdoc/stats_rdoc.html#10]
|
13
13
|
#
|
14
14
|
# == {}[link:index.html"name="1] Mean, Standard Deviation and Variance
|
15
15
|
#
|
@@ -211,9 +211,9 @@
|
|
211
211
|
# printf("The largest value is %g\n", largest);
|
212
212
|
# printf("The smallest value is %g\n", smallest);
|
213
213
|
#
|
214
|
-
# {prev}[link:
|
215
|
-
# {next}[link:
|
214
|
+
# {prev}[link:rdoc/randist_rdoc.html]
|
215
|
+
# {next}[link:rdoc/hist_rdoc.html]
|
216
216
|
#
|
217
|
-
# {Reference index}[link:
|
218
|
-
# {top}[link:
|
217
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
218
|
+
# {top}[link:index.html]
|
219
219
|
#
|
data/rdoc/sum.rdoc
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# = Series Acceleration
|
3
3
|
# In Ruby/GSL, series acceleration functions are provided as singleton methods
|
4
4
|
# for the <tt>GSL::Sum::Levin_u, Levin_utrunc</tt> classes, and methods of
|
5
|
-
# an object of the {GSL::Vector}[link:
|
5
|
+
# an object of the {GSL::Vector}[link:rdoc/vector_rdoc.html] class.
|
6
6
|
#
|
7
7
|
# == {}[link:index.html"name="1] Modules and classes
|
8
8
|
# * GSL
|
@@ -55,11 +55,11 @@
|
|
55
55
|
# <tt>sum_plain</tt> is the term-by-term sum, and <tt>terms_used</tt> is the number of
|
56
56
|
# terms actually used in the calculation.
|
57
57
|
#
|
58
|
-
# {prev}[link:
|
59
|
-
# {next}[link:
|
58
|
+
# {prev}[link:rdoc/cheb_rdoc.html]
|
59
|
+
# {next}[link:rdoc/dht_rdoc.html]
|
60
60
|
#
|
61
|
-
# {Reference index}[link:
|
62
|
-
# {top}[link:
|
61
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
62
|
+
# {top}[link:index.html]
|
63
63
|
#
|
64
64
|
#
|
65
65
|
#
|
data/rdoc/tensor.rdoc
CHANGED
@@ -242,10 +242,10 @@
|
|
242
242
|
#
|
243
243
|
# Returns the size
|
244
244
|
#
|
245
|
-
# {prev}[link:
|
246
|
-
# {next}[link:
|
245
|
+
# {prev}[link:rdoc/rngextra_rdoc.html]
|
246
|
+
# {next}[link:rdoc/narray_rdoc.html]
|
247
247
|
#
|
248
|
-
# {Reference index}[link:
|
249
|
-
# {top}[link:
|
248
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
249
|
+
# {top}[link:index.html]
|
250
250
|
#
|
251
251
|
#
|
data/rdoc/tut.rdoc
CHANGED
data/rdoc/use.rdoc
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# = Using Ruby/GSL
|
3
3
|
# == {}[link:index.html"name="1] Installation
|
4
|
-
# See {here}[link:
|
4
|
+
# See {here}[link:index.html].
|
5
5
|
#
|
6
6
|
# == {}[link:index.html"name="2] Load the library
|
7
7
|
# Put at the head of your scripts,
|
@@ -168,10 +168,10 @@
|
|
168
168
|
# * CGSM (Module)
|
169
169
|
# * NUM (Module)
|
170
170
|
#
|
171
|
-
# {prev}[link:
|
172
|
-
# {next}[link:
|
171
|
+
# {prev}[link:rdoc/intro_rdoc.html]
|
172
|
+
# {next}[link:rdoc/ehandling_rdoc.html]
|
173
173
|
#
|
174
|
-
# {Reference index}[link:
|
175
|
-
# {top}[link:
|
174
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
175
|
+
# {top}[link:index.html]
|
176
176
|
#
|
177
177
|
#
|
data/rdoc/vector.rdoc
CHANGED
@@ -2,28 +2,28 @@
|
|
2
2
|
# = GSL::Vector class
|
3
3
|
#
|
4
4
|
# Contents:
|
5
|
-
# 1. {Class methods}[link:
|
6
|
-
# 1. {Notes}[link:
|
7
|
-
# 1. {Methods}[link:
|
8
|
-
# 1. {Accessing vector elements}[link:
|
9
|
-
# 1. {Initializing vector elements}[link:
|
10
|
-
# 1. {Iterators}[link:
|
11
|
-
# 1. {IO}[link:
|
12
|
-
# 1. {Copying vectors}[link:
|
13
|
-
# 1. {Vector views}[link:
|
14
|
-
# 1. {Vector operations}[link:
|
15
|
-
# 1. {Vector operations with size changes}[link:
|
16
|
-
# 1. {Finding maximum and minimum elements of vectors}[link:
|
17
|
-
# 1. {Vector properties}[link:
|
18
|
-
# 1. {Element-wise vector comparison}[link:
|
19
|
-
# 1. {Histogram}[link:
|
20
|
-
# 1. {Sorting}[link:
|
21
|
-
# 1. {BLAS methods}[link:
|
22
|
-
# 1. {Data type conversions}[link:
|
23
|
-
# 1. {NArray}[link:
|
24
|
-
# 1. {GNU graph interface}[link:
|
25
|
-
#
|
26
|
-
# See also {GSL::Vector::Complex}[link:
|
5
|
+
# 1. {Class methods}[link:rdoc/vector_rdoc.html#1]
|
6
|
+
# 1. {Notes}[link:rdoc/vector_rdoc.html#2]
|
7
|
+
# 1. {Methods}[link:rdoc/vector_rdoc.html#3]
|
8
|
+
# 1. {Accessing vector elements}[link:rdoc/vector_rdoc.html#3.1]
|
9
|
+
# 1. {Initializing vector elements}[link:rdoc/vector_rdoc.html#3.2]
|
10
|
+
# 1. {Iterators}[link:rdoc/vector_rdoc.html#3.3]
|
11
|
+
# 1. {IO}[link:rdoc/vector_rdoc.html#3.4]
|
12
|
+
# 1. {Copying vectors}[link:rdoc/vector_rdoc.html#3.5]
|
13
|
+
# 1. {Vector views}[link:rdoc/vector_rdoc.html#3.6]
|
14
|
+
# 1. {Vector operations}[link:rdoc/vector_rdoc.html#3.7]
|
15
|
+
# 1. {Vector operations with size changes}[link:rdoc/vector_rdoc.html#3.8]
|
16
|
+
# 1. {Finding maximum and minimum elements of vectors}[link:rdoc/vector_rdoc.html#3.9]
|
17
|
+
# 1. {Vector properties}[link:rdoc/vector_rdoc.html#3.10]
|
18
|
+
# 1. {Element-wise vector comparison}[link:rdoc/vector_rdoc.html#3.11]
|
19
|
+
# 1. {Histogram}[link:rdoc/vector_rdoc.html#3.12]
|
20
|
+
# 1. {Sorting}[link:rdoc/vector_rdoc.html#3.13]
|
21
|
+
# 1. {BLAS methods}[link:rdoc/vector_rdoc.html#3.14]
|
22
|
+
# 1. {Data type conversions}[link:rdoc/vector_rdoc.html#3.15]
|
23
|
+
# 1. {NArray}[link:rdoc/vector_rdoc.html#3.16]
|
24
|
+
# 1. {GNU graph interface}[link:rdoc/vector_rdoc.html#3.17]
|
25
|
+
#
|
26
|
+
# See also {GSL::Vector::Complex}[link:rdoc/vector_complex_rdoc.html].
|
27
27
|
#
|
28
28
|
# == {}[link:index.html"name="1] Class methods
|
29
29
|
#
|
@@ -134,7 +134,7 @@
|
|
134
134
|
# p v <----- [ 1 2 3 4 5 ]
|
135
135
|
#
|
136
136
|
#
|
137
|
-
# See also {here}[link:
|
137
|
+
# See also {here}[link:rdoc/vector_rdoc.html#3.16].
|
138
138
|
#
|
139
139
|
# == {}[link:index.html"name="2] NOTE:
|
140
140
|
# In Ruby/GSL, vector length is limited within the range of Fixnum.
|
@@ -371,7 +371,7 @@
|
|
371
371
|
# * GSL::Vector#matrix_view(n1, n2)
|
372
372
|
#
|
373
373
|
# This creates a <tt>Matrix::View</tt> object from the vector <tt>self</tt>.
|
374
|
-
# It enables to use the vector as a {Matrix}[link:
|
374
|
+
# It enables to use the vector as a {Matrix}[link:rdoc/matrix_rdoc.html] object.
|
375
375
|
#
|
376
376
|
# * Ex:
|
377
377
|
#
|
@@ -1076,7 +1076,7 @@
|
|
1076
1076
|
# * GSL::Vector#to_m_diagonal
|
1077
1077
|
#
|
1078
1078
|
# Converts the vector into a diagonal matrix.
|
1079
|
-
# See also {GSL::Matrix.diagonal(v)}[link:
|
1079
|
+
# See also {GSL::Matrix.diagonal(v)}[link:rdoc/matrix_rdoc.html].
|
1080
1080
|
#
|
1081
1081
|
# >> v = GSL::Vector[1..4].to_i
|
1082
1082
|
# => GSL::Vector::Int:
|
@@ -1234,10 +1234,10 @@
|
|
1234
1234
|
# >> s = GSL::Sf::sin(x)
|
1235
1235
|
# >> GSL::Vector.graph(x, c, s, "-T X -C -L 'cos(x), sin(x)'")
|
1236
1236
|
#
|
1237
|
-
# {prev}[link:
|
1238
|
-
# {next}[link:
|
1237
|
+
# {prev}[link:rdoc/sf_rdoc.html]
|
1238
|
+
# {next}[link:rdoc/matrix_rdoc.html]
|
1239
1239
|
#
|
1240
|
-
# {Reference index}[link:
|
1241
|
-
# {top}[link:
|
1240
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
1241
|
+
# {top}[link:index.html]
|
1242
1242
|
#
|
1243
1243
|
#
|
data/rdoc/vector_complex.rdoc
CHANGED
@@ -73,7 +73,7 @@
|
|
73
73
|
# NOTE: GSL does not provide a vector copy function that properly copies data
|
74
74
|
# across overlapping memory regions, so watch out if assigning to part of a
|
75
75
|
# Vector from another part of itself (see <tt>#set</tt> example of
|
76
|
-
# {GSL::Vector}[link:
|
76
|
+
# {GSL::Vector}[link:rdoc/vector_rdoc.html]).
|
77
77
|
#
|
78
78
|
# === {}[link:index.html"name="2.2] Initializing vector elements
|
79
79
|
# ---
|
@@ -130,7 +130,7 @@
|
|
130
130
|
# complex data FFTs|URL:fft.html#2.1>)), and <b>natural order</b>, which has the
|
131
131
|
# most negative freqeuncy component first, the zero frequency component in the
|
132
132
|
# middle, and the most positive frequency component last. For more information
|
133
|
-
# on Ruby/GSL and FFTs, see {Fast Fourier Transforms}[link:
|
133
|
+
# on Ruby/GSL and FFTs, see {Fast Fourier Transforms}[link:rdoc/fft_rdoc.html].
|
134
134
|
#
|
135
135
|
# ---
|
136
136
|
# * GSL::Vector::Complex#fftshift
|
@@ -168,7 +168,7 @@
|
|
168
168
|
# Returns a new <tt>GSL::Vector::Complex</tt> instance containing the result of
|
169
169
|
# the appropriate arithmetic operation on <tt>self</tt> and <tt>other</tt>. The
|
170
170
|
# inputs are unchanged. The <tt>other</tt> parameter may be a scalar,
|
171
|
-
# <tt>{GSL::Vector}[link:
|
171
|
+
# <tt>{GSL::Vector}[link:rdoc/vector_rdoc.html]</tt>, or <tt>GSL::Vector::Complex</tt>.
|
172
172
|
#
|
173
173
|
# ---
|
174
174
|
# * GSL::Vector::Complex#+=(other)
|
@@ -182,7 +182,7 @@
|
|
182
182
|
#
|
183
183
|
# Modifies <tt>self</tt> in place to contain the result of the appropriate
|
184
184
|
# arithmetic operation on <tt>self</tt> and <tt>other</tt>. The <tt>other</tt>
|
185
|
-
# parameter may be a scalar, <tt>{GSL::Vector}[link:
|
185
|
+
# parameter may be a scalar, <tt>{GSL::Vector}[link:rdoc/vector_rdoc.html]</tt>, or
|
186
186
|
# <tt>GSL::Vector::Complex</tt>.
|
187
187
|
#
|
188
188
|
# === {}[link:index.html"name="2.7] Reading and writing vectors
|
@@ -341,7 +341,7 @@
|
|
341
341
|
# [ [1.000e+00 2.000e+00] [3.000e+00 4.000e+00] ]
|
342
342
|
# => #<GSL::Vector::Complex:0x6d6424>
|
343
343
|
#
|
344
|
-
# {Reference index}[link:
|
345
|
-
# {top}[link:
|
344
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
345
|
+
# {top}[link:index.html]
|
346
346
|
#
|
347
347
|
#
|