rb-gsl 1.16.0.5 → 1.16.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/rb-gsl.gemspec +5 -10
- metadata +10 -713
- data/.gitignore +0 -12
- data/.travis.yml +0 -24
- data/AUTHORS +0 -12
- data/COPYING +0 -341
- data/ChangeLog +0 -621
- data/Gemfile +0 -4
- data/README.md +0 -77
- data/Rakefile +0 -20
- data/THANKS +0 -17
- data/examples/alf/alf.gp +0 -15
- data/examples/alf/alf.rb +0 -32
- data/examples/blas/blas.rb +0 -13
- data/examples/blas/dnrm2.rb +0 -16
- data/examples/blas/level1.rb +0 -81
- data/examples/blas/level2.rb +0 -11
- data/examples/blas/level3.rb +0 -12
- data/examples/bspline.rb +0 -57
- data/examples/cdf.rb +0 -16
- data/examples/cheb.rb +0 -21
- data/examples/combination.rb +0 -23
- data/examples/complex/RC-lpf.rb +0 -47
- data/examples/complex/add.rb +0 -36
- data/examples/complex/coerce.rb +0 -14
- data/examples/complex/complex.rb +0 -25
- data/examples/complex/fpmi.rb +0 -70
- data/examples/complex/functions.rb +0 -77
- data/examples/complex/michelson.rb +0 -36
- data/examples/complex/mul.rb +0 -28
- data/examples/complex/oscillator.rb +0 -17
- data/examples/complex/set.rb +0 -37
- data/examples/const/physconst.rb +0 -151
- data/examples/const/travel.rb +0 -45
- data/examples/deriv/demo.rb +0 -13
- data/examples/deriv/deriv.rb +0 -36
- data/examples/deriv/diff.rb +0 -35
- data/examples/dht.rb +0 -42
- data/examples/dirac.rb +0 -56
- data/examples/eigen/eigen.rb +0 -34
- data/examples/eigen/herm.rb +0 -22
- data/examples/eigen/narray.rb +0 -9
- data/examples/eigen/nonsymm.rb +0 -37
- data/examples/eigen/nonsymmv.rb +0 -43
- data/examples/eigen/qhoscillator.gp +0 -35
- data/examples/eigen/qhoscillator.rb +0 -90
- data/examples/eigen/vander.rb +0 -41
- data/examples/fft/fft.rb +0 -17
- data/examples/fft/fft2.rb +0 -17
- data/examples/fft/forward.rb +0 -25
- data/examples/fft/forward2.rb +0 -26
- data/examples/fft/radix2.rb +0 -18
- data/examples/fft/real-halfcomplex.rb +0 -33
- data/examples/fft/real-halfcomplex2.rb +0 -30
- data/examples/fft/realradix2.rb +0 -19
- data/examples/fft/sunspot.dat +0 -256
- data/examples/fft/sunspot.rb +0 -16
- data/examples/fit/expdata.dat +0 -20
- data/examples/fit/expfit.rb +0 -31
- data/examples/fit/gaussfit.rb +0 -29
- data/examples/fit/gaussian_2peaks.rb +0 -34
- data/examples/fit/hillfit.rb +0 -40
- data/examples/fit/lognormal.rb +0 -26
- data/examples/fit/lorentzfit.rb +0 -22
- data/examples/fit/multifit.rb +0 -72
- data/examples/fit/ndlinear.rb +0 -133
- data/examples/fit/nonlinearfit.rb +0 -89
- data/examples/fit/plot.gp +0 -36
- data/examples/fit/polyfit.rb +0 -9
- data/examples/fit/powerfit.rb +0 -21
- data/examples/fit/sigmoidfit.rb +0 -40
- data/examples/fit/sinfit.rb +0 -22
- data/examples/fit/wlinear.rb +0 -46
- data/examples/fresnel.rb +0 -11
- data/examples/function/function.rb +0 -36
- data/examples/function/log.rb +0 -7
- data/examples/function/min.rb +0 -33
- data/examples/function/sin.rb +0 -10
- data/examples/function/synchrotron.rb +0 -18
- data/examples/gallery/butterfly.rb +0 -7
- data/examples/gallery/cayley.rb +0 -12
- data/examples/gallery/cornu.rb +0 -23
- data/examples/gallery/eight.rb +0 -11
- data/examples/gallery/koch.rb +0 -40
- data/examples/gallery/lemniscate.rb +0 -11
- data/examples/gallery/polar.rb +0 -11
- data/examples/gallery/rgplot/cossin.rb +0 -35
- data/examples/gallery/rgplot/rgplot.replaced +0 -0
- data/examples/gallery/rgplot/roesller.rb +0 -55
- data/examples/gallery/roesller.rb +0 -39
- data/examples/gallery/scarabaeus.rb +0 -14
- data/examples/histogram/cauchy.rb +0 -27
- data/examples/histogram/cauchy.sh +0 -2
- data/examples/histogram/exponential.rb +0 -19
- data/examples/histogram/gauss.rb +0 -16
- data/examples/histogram/gsl-histogram.rb +0 -40
- data/examples/histogram/histo2d.rb +0 -31
- data/examples/histogram/histo3d.rb +0 -34
- data/examples/histogram/histogram-pdf.rb +0 -27
- data/examples/histogram/histogram.rb +0 -26
- data/examples/histogram/integral.rb +0 -28
- data/examples/histogram/poisson.rb +0 -27
- data/examples/histogram/power.rb +0 -25
- data/examples/histogram/rebin.rb +0 -17
- data/examples/histogram/smp.dat +0 -5
- data/examples/histogram/xexp.rb +0 -21
- data/examples/integration/ahmed.rb +0 -21
- data/examples/integration/cosmology.rb +0 -75
- data/examples/integration/friedmann.gp +0 -16
- data/examples/integration/friedmann.rb +0 -35
- data/examples/integration/gamma-zeta.rb +0 -35
- data/examples/integration/integration.rb +0 -22
- data/examples/integration/qag.rb +0 -8
- data/examples/integration/qag2.rb +0 -14
- data/examples/integration/qag3.rb +0 -8
- data/examples/integration/qagi.rb +0 -28
- data/examples/integration/qagi2.rb +0 -49
- data/examples/integration/qagiu.rb +0 -29
- data/examples/integration/qagp.rb +0 -20
- data/examples/integration/qags.rb +0 -14
- data/examples/integration/qawc.rb +0 -18
- data/examples/integration/qawf.rb +0 -41
- data/examples/integration/qawo.rb +0 -29
- data/examples/integration/qaws.rb +0 -30
- data/examples/integration/qng.rb +0 -17
- data/examples/interp/demo.gp +0 -20
- data/examples/interp/demo.rb +0 -45
- data/examples/interp/interp.rb +0 -37
- data/examples/interp/points +0 -10
- data/examples/interp/spline.rb +0 -20
- data/examples/jacobi/deriv.rb +0 -40
- data/examples/jacobi/integrate.rb +0 -34
- data/examples/jacobi/interp.rb +0 -43
- data/examples/jacobi/jacobi.rb +0 -11
- data/examples/linalg/HH.rb +0 -15
- data/examples/linalg/HH_narray.rb +0 -13
- data/examples/linalg/LQ_solve.rb +0 -73
- data/examples/linalg/LU.rb +0 -84
- data/examples/linalg/LU2.rb +0 -31
- data/examples/linalg/LU_narray.rb +0 -24
- data/examples/linalg/PTLQ.rb +0 -47
- data/examples/linalg/QR.rb +0 -18
- data/examples/linalg/QRPT.rb +0 -47
- data/examples/linalg/QR_solve.rb +0 -78
- data/examples/linalg/QR_solve_narray.rb +0 -13
- data/examples/linalg/SV.rb +0 -16
- data/examples/linalg/SV_narray.rb +0 -12
- data/examples/linalg/SV_solve.rb +0 -49
- data/examples/linalg/chol.rb +0 -29
- data/examples/linalg/chol_narray.rb +0 -15
- data/examples/linalg/complex.rb +0 -57
- data/examples/linalg/invert_narray.rb +0 -10
- data/examples/math/const.rb +0 -67
- data/examples/math/elementary.rb +0 -35
- data/examples/math/functions.rb +0 -41
- data/examples/math/inf_nan.rb +0 -34
- data/examples/math/minmax.rb +0 -22
- data/examples/math/power.rb +0 -18
- data/examples/math/test.rb +0 -31
- data/examples/matrix/a.dat +0 -0
- data/examples/matrix/add.rb +0 -45
- data/examples/matrix/b.dat +0 -4
- data/examples/matrix/cat.rb +0 -31
- data/examples/matrix/colvectors.rb +0 -24
- data/examples/matrix/complex.rb +0 -41
- data/examples/matrix/det.rb +0 -29
- data/examples/matrix/diagonal.rb +0 -23
- data/examples/matrix/get_all.rb +0 -159
- data/examples/matrix/hilbert.rb +0 -31
- data/examples/matrix/iterator.rb +0 -19
- data/examples/matrix/matrix.rb +0 -57
- data/examples/matrix/minmax.rb +0 -53
- data/examples/matrix/mul.rb +0 -39
- data/examples/matrix/rand.rb +0 -20
- data/examples/matrix/read.rb +0 -29
- data/examples/matrix/rowcol.rb +0 -47
- data/examples/matrix/set.rb +0 -41
- data/examples/matrix/set_all.rb +0 -100
- data/examples/matrix/view.rb +0 -32
- data/examples/matrix/view_all.rb +0 -148
- data/examples/matrix/write.rb +0 -23
- data/examples/min.rb +0 -29
- data/examples/monte/miser.rb +0 -47
- data/examples/monte/monte.rb +0 -47
- data/examples/monte/plain.rb +0 -47
- data/examples/monte/vegas.rb +0 -46
- data/examples/multimin/bundle.rb +0 -66
- data/examples/multimin/cqp.rb +0 -109
- data/examples/multimin/fdfminimizer.rb +0 -40
- data/examples/multimin/fminimizer.rb +0 -41
- data/examples/multiroot/demo.rb +0 -36
- data/examples/multiroot/fdfsolver.rb +0 -50
- data/examples/multiroot/fsolver.rb +0 -33
- data/examples/multiroot/fsolver2.rb +0 -32
- data/examples/multiroot/fsolver3.rb +0 -26
- data/examples/narray/histogram.rb +0 -14
- data/examples/narray/mandel.rb +0 -27
- data/examples/narray/narray.rb +0 -28
- data/examples/narray/narray2.rb +0 -44
- data/examples/narray/sf.rb +0 -26
- data/examples/ntuple/create.rb +0 -17
- data/examples/ntuple/project.rb +0 -31
- data/examples/odeiv/binarysystem.gp +0 -23
- data/examples/odeiv/binarysystem.rb +0 -104
- data/examples/odeiv/demo.gp +0 -24
- data/examples/odeiv/demo.rb +0 -69
- data/examples/odeiv/demo2.gp +0 -26
- data/examples/odeiv/duffing.rb +0 -45
- data/examples/odeiv/frei1.rb +0 -109
- data/examples/odeiv/frei2.rb +0 -76
- data/examples/odeiv/legendre.rb +0 -52
- data/examples/odeiv/odeiv.rb +0 -32
- data/examples/odeiv/odeiv2.rb +0 -45
- data/examples/odeiv/oscillator.rb +0 -42
- data/examples/odeiv/sedov.rb +0 -97
- data/examples/odeiv/whitedwarf.gp +0 -40
- data/examples/odeiv/whitedwarf.rb +0 -158
- data/examples/ool/conmin.rb +0 -100
- data/examples/ool/gencan.rb +0 -99
- data/examples/ool/pgrad.rb +0 -100
- data/examples/ool/spg.rb +0 -100
- data/examples/pdf/bernoulli.rb +0 -5
- data/examples/pdf/beta.rb +0 -7
- data/examples/pdf/binomiral.rb +0 -10
- data/examples/pdf/cauchy.rb +0 -6
- data/examples/pdf/chisq.rb +0 -8
- data/examples/pdf/exponential.rb +0 -7
- data/examples/pdf/exppow.rb +0 -6
- data/examples/pdf/fdist.rb +0 -7
- data/examples/pdf/flat.rb +0 -7
- data/examples/pdf/gamma.rb +0 -8
- data/examples/pdf/gauss-tail.rb +0 -5
- data/examples/pdf/gauss.rb +0 -6
- data/examples/pdf/geometric.rb +0 -5
- data/examples/pdf/gumbel.rb +0 -6
- data/examples/pdf/hypergeometric.rb +0 -11
- data/examples/pdf/landau.rb +0 -5
- data/examples/pdf/laplace.rb +0 -7
- data/examples/pdf/logarithmic.rb +0 -5
- data/examples/pdf/logistic.rb +0 -6
- data/examples/pdf/lognormal.rb +0 -6
- data/examples/pdf/neg-binomiral.rb +0 -10
- data/examples/pdf/pareto.rb +0 -7
- data/examples/pdf/pascal.rb +0 -10
- data/examples/pdf/poisson.rb +0 -5
- data/examples/pdf/rayleigh-tail.rb +0 -6
- data/examples/pdf/rayleigh.rb +0 -6
- data/examples/pdf/tdist.rb +0 -6
- data/examples/pdf/weibull.rb +0 -8
- data/examples/permutation/ex1.rb +0 -22
- data/examples/permutation/permutation.rb +0 -16
- data/examples/poly/bell.rb +0 -6
- data/examples/poly/bessel.rb +0 -6
- data/examples/poly/cheb.rb +0 -6
- data/examples/poly/cheb_II.rb +0 -6
- data/examples/poly/cubic.rb +0 -9
- data/examples/poly/demo.rb +0 -20
- data/examples/poly/eval.rb +0 -28
- data/examples/poly/eval_derivs.rb +0 -14
- data/examples/poly/fit.rb +0 -21
- data/examples/poly/hermite.rb +0 -6
- data/examples/poly/poly.rb +0 -13
- data/examples/poly/quadratic.rb +0 -25
- data/examples/random/diffusion.rb +0 -34
- data/examples/random/gaussian.rb +0 -9
- data/examples/random/generator.rb +0 -27
- data/examples/random/hdsobol.rb +0 -21
- data/examples/random/poisson.rb +0 -9
- data/examples/random/qrng.rb +0 -19
- data/examples/random/randomwalk.rb +0 -37
- data/examples/random/randomwalk2d.rb +0 -19
- data/examples/random/rayleigh.rb +0 -36
- data/examples/random/rng.rb +0 -33
- data/examples/random/rngextra.rb +0 -14
- data/examples/roots/bisection.rb +0 -25
- data/examples/roots/brent.rb +0 -43
- data/examples/roots/demo.rb +0 -30
- data/examples/roots/newton.rb +0 -46
- data/examples/roots/recombination.gp +0 -11
- data/examples/roots/recombination.rb +0 -61
- data/examples/roots/steffenson.rb +0 -48
- data/examples/sf/ShiChi.rb +0 -6
- data/examples/sf/SiCi.rb +0 -6
- data/examples/sf/airy_Ai.rb +0 -8
- data/examples/sf/airy_Bi.rb +0 -8
- data/examples/sf/bessel_IK.rb +0 -12
- data/examples/sf/bessel_JY.rb +0 -13
- data/examples/sf/beta_inc.rb +0 -9
- data/examples/sf/clausen.rb +0 -6
- data/examples/sf/dawson.rb +0 -5
- data/examples/sf/debye.rb +0 -9
- data/examples/sf/dilog.rb +0 -6
- data/examples/sf/ellint.rb +0 -6
- data/examples/sf/expint.rb +0 -8
- data/examples/sf/fermi.rb +0 -10
- data/examples/sf/gamma_inc_P.rb +0 -9
- data/examples/sf/gegenbauer.rb +0 -8
- data/examples/sf/hyperg.rb +0 -7
- data/examples/sf/laguerre.rb +0 -19
- data/examples/sf/lambertW.rb +0 -5
- data/examples/sf/legendre_P.rb +0 -10
- data/examples/sf/lngamma.rb +0 -5
- data/examples/sf/psi.rb +0 -54
- data/examples/sf/sphbessel.gp +0 -27
- data/examples/sf/sphbessel.rb +0 -30
- data/examples/sf/synchrotron.rb +0 -5
- data/examples/sf/transport.rb +0 -10
- data/examples/sf/zetam1.rb +0 -5
- data/examples/siman.rb +0 -44
- data/examples/sort/heapsort.rb +0 -23
- data/examples/sort/heapsort_vector_complex.rb +0 -21
- data/examples/sort/sort.rb +0 -23
- data/examples/sort/sort2.rb +0 -16
- data/examples/stats/mean.rb +0 -17
- data/examples/stats/statistics.rb +0 -18
- data/examples/stats/test.rb +0 -9
- data/examples/sum.rb +0 -34
- data/examples/tamu_anova.rb +0 -18
- data/examples/vector/a.dat +0 -0
- data/examples/vector/add.rb +0 -56
- data/examples/vector/b.dat +0 -4
- data/examples/vector/c.dat +0 -3
- data/examples/vector/collect.rb +0 -26
- data/examples/vector/compare.rb +0 -28
- data/examples/vector/complex.rb +0 -51
- data/examples/vector/complex_get_all.rb +0 -85
- data/examples/vector/complex_set_all.rb +0 -131
- data/examples/vector/complex_view_all.rb +0 -77
- data/examples/vector/connect.rb +0 -22
- data/examples/vector/decimate.rb +0 -38
- data/examples/vector/diff.rb +0 -31
- data/examples/vector/filescan.rb +0 -17
- data/examples/vector/floor.rb +0 -23
- data/examples/vector/get_all.rb +0 -82
- data/examples/vector/gnuplot.rb +0 -38
- data/examples/vector/graph.rb +0 -28
- data/examples/vector/histogram.rb +0 -22
- data/examples/vector/linspace.rb +0 -24
- data/examples/vector/log.rb +0 -17
- data/examples/vector/logic.rb +0 -33
- data/examples/vector/logspace.rb +0 -25
- data/examples/vector/minmax.rb +0 -47
- data/examples/vector/mul.rb +0 -49
- data/examples/vector/narray.rb +0 -46
- data/examples/vector/read.rb +0 -29
- data/examples/vector/set.rb +0 -35
- data/examples/vector/set_all.rb +0 -121
- data/examples/vector/smpv.dat +0 -15
- data/examples/vector/test.rb +0 -43
- data/examples/vector/test_gslblock.rb +0 -58
- data/examples/vector/vector.rb +0 -110
- data/examples/vector/view.rb +0 -35
- data/examples/vector/view_all.rb +0 -73
- data/examples/vector/where.rb +0 -29
- data/examples/vector/write.rb +0 -24
- data/examples/vector/zip.rb +0 -34
- data/examples/wavelet/ecg.dat +0 -256
- data/examples/wavelet/wavelet1.rb +0 -50
- data/ext/gsl_native/alf.c +0 -206
- data/ext/gsl_native/array.c +0 -553
- data/ext/gsl_native/array_complex.c +0 -245
- data/ext/gsl_native/blas.c +0 -28
- data/ext/gsl_native/blas1.c +0 -733
- data/ext/gsl_native/blas2.c +0 -1088
- data/ext/gsl_native/blas3.c +0 -880
- data/ext/gsl_native/block.c +0 -40
- data/ext/gsl_native/block_source.h +0 -885
- data/ext/gsl_native/bspline.c +0 -122
- data/ext/gsl_native/bundle.c +0 -3
- data/ext/gsl_native/cdf.c +0 -740
- data/ext/gsl_native/cheb.c +0 -531
- data/ext/gsl_native/combination.c +0 -275
- data/ext/gsl_native/common.c +0 -293
- data/ext/gsl_native/complex.c +0 -1002
- data/ext/gsl_native/const.c +0 -331
- data/ext/gsl_native/const_additional.c +0 -99
- data/ext/gsl_native/cqp.c +0 -283
- data/ext/gsl_native/deriv.c +0 -187
- data/ext/gsl_native/dht.c +0 -353
- data/ext/gsl_native/diff.c +0 -164
- data/ext/gsl_native/dirac.c +0 -388
- data/ext/gsl_native/eigen.c +0 -2322
- data/ext/gsl_native/error.c +0 -193
- data/ext/gsl_native/extconf.rb +0 -118
- data/ext/gsl_native/fft.c +0 -1095
- data/ext/gsl_native/fit.c +0 -204
- data/ext/gsl_native/fresnel.c +0 -312
- data/ext/gsl_native/function.c +0 -518
- data/ext/gsl_native/geometry.c +0 -139
- data/ext/gsl_native/graph.c +0 -1590
- data/ext/gsl_native/gsl.c +0 -259
- data/ext/gsl_native/gsl_narray.c +0 -794
- data/ext/gsl_native/histogram.c +0 -1964
- data/ext/gsl_native/histogram2d.c +0 -1042
- data/ext/gsl_native/histogram3d.c +0 -884
- data/ext/gsl_native/histogram3d_source.c +0 -749
- data/ext/gsl_native/histogram_find.c +0 -99
- data/ext/gsl_native/histogram_oper.c +0 -150
- data/ext/gsl_native/ieee.c +0 -88
- data/ext/gsl_native/include/rb_gsl.h +0 -136
- data/ext/gsl_native/include/rb_gsl_array.h +0 -214
- data/ext/gsl_native/include/rb_gsl_cheb.h +0 -19
- data/ext/gsl_native/include/rb_gsl_common.h +0 -348
- data/ext/gsl_native/include/rb_gsl_complex.h +0 -25
- data/ext/gsl_native/include/rb_gsl_const.h +0 -23
- data/ext/gsl_native/include/rb_gsl_dirac.h +0 -6
- data/ext/gsl_native/include/rb_gsl_eigen.h +0 -17
- data/ext/gsl_native/include/rb_gsl_fft.h +0 -49
- data/ext/gsl_native/include/rb_gsl_fit.h +0 -23
- data/ext/gsl_native/include/rb_gsl_function.h +0 -23
- data/ext/gsl_native/include/rb_gsl_graph.h +0 -68
- data/ext/gsl_native/include/rb_gsl_histogram.h +0 -63
- data/ext/gsl_native/include/rb_gsl_histogram3d.h +0 -97
- data/ext/gsl_native/include/rb_gsl_integration.h +0 -17
- data/ext/gsl_native/include/rb_gsl_interp.h +0 -41
- data/ext/gsl_native/include/rb_gsl_linalg.h +0 -21
- data/ext/gsl_native/include/rb_gsl_math.h +0 -20
- data/ext/gsl_native/include/rb_gsl_odeiv.h +0 -18
- data/ext/gsl_native/include/rb_gsl_poly.h +0 -67
- data/ext/gsl_native/include/rb_gsl_rational.h +0 -30
- data/ext/gsl_native/include/rb_gsl_rng.h +0 -20
- data/ext/gsl_native/include/rb_gsl_root.h +0 -22
- data/ext/gsl_native/include/rb_gsl_sf.h +0 -110
- data/ext/gsl_native/include/rb_gsl_statistics.h +0 -17
- data/ext/gsl_native/include/rb_gsl_tensor.h +0 -43
- data/ext/gsl_native/include/rb_gsl_with_narray.h +0 -31
- data/ext/gsl_native/include/templates_off.h +0 -87
- data/ext/gsl_native/include/templates_on.h +0 -241
- data/ext/gsl_native/integration.c +0 -1154
- data/ext/gsl_native/interp.c +0 -499
- data/ext/gsl_native/jacobi.c +0 -733
- data/ext/gsl_native/linalg.c +0 -3915
- data/ext/gsl_native/linalg_complex.c +0 -726
- data/ext/gsl_native/math.c +0 -706
- data/ext/gsl_native/matrix.c +0 -36
- data/ext/gsl_native/matrix_complex.c +0 -1733
- data/ext/gsl_native/matrix_double.c +0 -557
- data/ext/gsl_native/matrix_int.c +0 -255
- data/ext/gsl_native/matrix_source.h +0 -2708
- data/ext/gsl_native/min.c +0 -219
- data/ext/gsl_native/monte.c +0 -978
- data/ext/gsl_native/multifit.c +0 -1862
- data/ext/gsl_native/multimin.c +0 -778
- data/ext/gsl_native/multimin_fsdf.c +0 -156
- data/ext/gsl_native/multiroots.c +0 -952
- data/ext/gsl_native/multiset.c +0 -210
- data/ext/gsl_native/ndlinear.c +0 -320
- data/ext/gsl_native/nmf.c +0 -171
- data/ext/gsl_native/nmf_wrap.c +0 -75
- data/ext/gsl_native/ntuple.c +0 -469
- data/ext/gsl_native/odeiv.c +0 -947
- data/ext/gsl_native/ool.c +0 -879
- data/ext/gsl_native/permutation.c +0 -598
- data/ext/gsl_native/poly.c +0 -39
- data/ext/gsl_native/poly2.c +0 -265
- data/ext/gsl_native/poly_source.h +0 -1871
- data/ext/gsl_native/qrng.c +0 -160
- data/ext/gsl_native/randist.c +0 -1848
- data/ext/gsl_native/rational.c +0 -480
- data/ext/gsl_native/rng.c +0 -595
- data/ext/gsl_native/root.c +0 -407
- data/ext/gsl_native/sf.c +0 -1446
- data/ext/gsl_native/sf_airy.c +0 -200
- data/ext/gsl_native/sf_bessel.c +0 -871
- data/ext/gsl_native/sf_clausen.c +0 -28
- data/ext/gsl_native/sf_coulomb.c +0 -206
- data/ext/gsl_native/sf_coupling.c +0 -121
- data/ext/gsl_native/sf_dawson.c +0 -29
- data/ext/gsl_native/sf_debye.c +0 -148
- data/ext/gsl_native/sf_dilog.c +0 -43
- data/ext/gsl_native/sf_elementary.c +0 -46
- data/ext/gsl_native/sf_ellint.c +0 -206
- data/ext/gsl_native/sf_elljac.c +0 -30
- data/ext/gsl_native/sf_erfc.c +0 -89
- data/ext/gsl_native/sf_exp.c +0 -169
- data/ext/gsl_native/sf_expint.c +0 -201
- data/ext/gsl_native/sf_fermi_dirac.c +0 -148
- data/ext/gsl_native/sf_gamma.c +0 -343
- data/ext/gsl_native/sf_gegenbauer.c +0 -97
- data/ext/gsl_native/sf_hyperg.c +0 -203
- data/ext/gsl_native/sf_laguerre.c +0 -113
- data/ext/gsl_native/sf_lambert.c +0 -47
- data/ext/gsl_native/sf_legendre.c +0 -368
- data/ext/gsl_native/sf_log.c +0 -105
- data/ext/gsl_native/sf_mathieu.c +0 -235
- data/ext/gsl_native/sf_power.c +0 -47
- data/ext/gsl_native/sf_psi.c +0 -89
- data/ext/gsl_native/sf_synchrotron.c +0 -48
- data/ext/gsl_native/sf_transport.c +0 -76
- data/ext/gsl_native/sf_trigonometric.c +0 -210
- data/ext/gsl_native/sf_zeta.c +0 -115
- data/ext/gsl_native/signal.c +0 -303
- data/ext/gsl_native/siman.c +0 -713
- data/ext/gsl_native/sort.c +0 -207
- data/ext/gsl_native/spline.c +0 -377
- data/ext/gsl_native/stats.c +0 -787
- data/ext/gsl_native/sum.c +0 -168
- data/ext/gsl_native/tamu_anova.c +0 -56
- data/ext/gsl_native/tensor.c +0 -35
- data/ext/gsl_native/tensor_source.h +0 -1122
- data/ext/gsl_native/vector.c +0 -35
- data/ext/gsl_native/vector_complex.c +0 -2241
- data/ext/gsl_native/vector_double.c +0 -1433
- data/ext/gsl_native/vector_int.c +0 -202
- data/ext/gsl_native/vector_source.h +0 -3321
- data/ext/gsl_native/wavelet.c +0 -923
- data/lib/gsl.rb +0 -8
- data/lib/gsl/gnuplot.rb +0 -41
- data/lib/gsl/oper.rb +0 -43
- data/lib/gsl/version.rb +0 -3
- data/lib/ool.rb +0 -22
- data/lib/ool/conmin.rb +0 -30
- data/lib/rbgsl.rb +0 -1
- data/rdoc/alf.rdoc +0 -77
- data/rdoc/blas.rdoc +0 -269
- data/rdoc/bspline.rdoc +0 -42
- data/rdoc/changes.rdoc +0 -159
- data/rdoc/cheb.rdoc +0 -99
- data/rdoc/cholesky_complex.rdoc +0 -46
- data/rdoc/combi.rdoc +0 -125
- data/rdoc/complex.rdoc +0 -210
- data/rdoc/const.rdoc +0 -546
- data/rdoc/dht.rdoc +0 -122
- data/rdoc/diff.rdoc +0 -133
- data/rdoc/ehandling.rdoc +0 -50
- data/rdoc/eigen.rdoc +0 -401
- data/rdoc/fft.rdoc +0 -535
- data/rdoc/fit.rdoc +0 -284
- data/rdoc/function.rdoc +0 -94
- data/rdoc/graph.rdoc +0 -137
- data/rdoc/hist.rdoc +0 -409
- data/rdoc/hist2d.rdoc +0 -279
- data/rdoc/hist3d.rdoc +0 -112
- data/rdoc/integration.rdoc +0 -398
- data/rdoc/interp.rdoc +0 -231
- data/rdoc/intro.rdoc +0 -27
- data/rdoc/linalg.rdoc +0 -681
- data/rdoc/linalg_complex.rdoc +0 -88
- data/rdoc/math.rdoc +0 -276
- data/rdoc/matrix.rdoc +0 -1093
- data/rdoc/min.rdoc +0 -189
- data/rdoc/monte.rdoc +0 -234
- data/rdoc/multimin.rdoc +0 -312
- data/rdoc/multiroot.rdoc +0 -293
- data/rdoc/narray.rdoc +0 -177
- data/rdoc/ndlinear.rdoc +0 -250
- data/rdoc/nonlinearfit.rdoc +0 -348
- data/rdoc/ntuple.rdoc +0 -88
- data/rdoc/odeiv.rdoc +0 -378
- data/rdoc/perm.rdoc +0 -221
- data/rdoc/poly.rdoc +0 -335
- data/rdoc/qrng.rdoc +0 -90
- data/rdoc/randist.rdoc +0 -233
- data/rdoc/ref.rdoc +0 -93
- data/rdoc/rng.rdoc +0 -203
- data/rdoc/roots.rdoc +0 -305
- data/rdoc/sf.rdoc +0 -1622
- data/rdoc/siman.rdoc +0 -89
- data/rdoc/sort.rdoc +0 -94
- data/rdoc/start.rdoc +0 -16
- data/rdoc/stats.rdoc +0 -219
- data/rdoc/sum.rdoc +0 -65
- data/rdoc/tensor.rdoc +0 -251
- data/rdoc/tut.rdoc +0 -5
- data/rdoc/use.rdoc +0 -177
- data/rdoc/vector.rdoc +0 -1243
- data/rdoc/vector_complex.rdoc +0 -347
- data/rdoc/wavelet.rdoc +0 -218
- data/test/gsl/blas_test.rb +0 -79
- data/test/gsl/bspline_test.rb +0 -63
- data/test/gsl/cdf_test.rb +0 -1512
- data/test/gsl/cheb_test.rb +0 -80
- data/test/gsl/combination_test.rb +0 -100
- data/test/gsl/complex_test.rb +0 -20
- data/test/gsl/const_test.rb +0 -29
- data/test/gsl/deriv_test.rb +0 -62
- data/test/gsl/dht_test.rb +0 -79
- data/test/gsl/diff_test.rb +0 -53
- data/test/gsl/eigen_test.rb +0 -563
- data/test/gsl/err_test.rb +0 -23
- data/test/gsl/fit_test.rb +0 -101
- data/test/gsl/histo_test.rb +0 -14
- data/test/gsl/index_test.rb +0 -61
- data/test/gsl/integration_test.rb +0 -274
- data/test/gsl/interp_test.rb +0 -27
- data/test/gsl/linalg_test.rb +0 -463
- data/test/gsl/matrix_nmf_test.rb +0 -37
- data/test/gsl/matrix_test.rb +0 -98
- data/test/gsl/min_test.rb +0 -89
- data/test/gsl/monte_test.rb +0 -77
- data/test/gsl/multifit_test.rb +0 -753
- data/test/gsl/multimin_test.rb +0 -157
- data/test/gsl/multiroot_test.rb +0 -135
- data/test/gsl/multiset_test.rb +0 -52
- data/test/gsl/odeiv_test.rb +0 -275
- data/test/gsl/oper_test.rb +0 -98
- data/test/gsl/poly_test.rb +0 -338
- data/test/gsl/qrng_test.rb +0 -94
- data/test/gsl/quartic_test.rb +0 -28
- data/test/gsl/randist_test.rb +0 -122
- data/test/gsl/rng_test.rb +0 -303
- data/test/gsl/roots_test.rb +0 -78
- data/test/gsl/sf_test.rb +0 -2079
- data/test/gsl/stats_test.rb +0 -122
- data/test/gsl/sum_test.rb +0 -69
- data/test/gsl/tensor_test.rb +0 -396
- data/test/gsl/vector_test.rb +0 -223
- data/test/gsl/wavelet_test.rb +0 -130
- data/test/gsl_test.rb +0 -321
- data/test/test_helper.rb +0 -42
- data/uncrustify.cfg +0 -1693
data/rdoc/bspline.rdoc
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# = Basis Splines
|
3
|
-
# This chapter describes functions for the computation of smoothing basis splines (B-splines). This is only for GSL-1.9 or later.
|
4
|
-
#
|
5
|
-
# 1. {Overview}[link:rdoc/bspline_rdoc.html#label-Overview]
|
6
|
-
# 1. {Initializing the B-splines solver}[link:rdoc/bspline_rdoc.html#label-Initializing+the+B-splines+solver]
|
7
|
-
# 1. {Constructing the knots vector}[link:rdoc/bspline_rdoc.html#label-Constructing+the+knots+vector]
|
8
|
-
# 1. {Evaluation of B-splines}[link:rdoc/bspline_rdoc.html#label-Evaluation+of+B-splines]
|
9
|
-
#
|
10
|
-
# == Overview
|
11
|
-
#
|
12
|
-
# B-splines are commonly used as basis functions to fit smoothing curves to large data sets. To do this, the abscissa axis is broken up into some number of intervals, where the endpoints of each interval are called breakpoints. These breakpoints are then converted to knots by imposing various continuity and smoothness conditions at each interface. Given a nondecreasing knot vector t = \{t_0, t_1, \dots, t_{n+k-1\, the n basis splines of order k are defined by for i = 0, \dots, n-1. The common case of cubic B-splines is given by k = 4. The above recurrence relation can be evaluated in a numerically stable way by the de Boor algorithm.
|
13
|
-
#
|
14
|
-
# If we define appropriate knots on an interval [a,b] then the B-spline basis functions form a complete set on that interval. Therefore we can expand a smoothing function as given enough (x_j, f(x_j)) data pairs. The c_i can be readily obtained from a least-squares fit.
|
15
|
-
#
|
16
|
-
# == Initializing the B-splines solver
|
17
|
-
# ---
|
18
|
-
# * GSL::BSpline.alloc(k, nbreak)
|
19
|
-
#
|
20
|
-
# This method creates a workspace for computing B-splines of order <tt>k</tt>. The number of breakpoints is given by <tt>nbreak</tt>. This leads to <tt>n = nbreak + k - 2</tt> basis functions. Cubic B-splines are specified by <tt>k = 4</tt>. The size of the workspace is <tt>O(5k + nbreak)</tt>.
|
21
|
-
#
|
22
|
-
# == Constructing the knots vector
|
23
|
-
# ---
|
24
|
-
# * GSL::BSpline#knots(breakpts)
|
25
|
-
#
|
26
|
-
# This method computes the knots associated with the given breakpoints <tt>breakpts</tt> and returns the knots as a <tt>GSL::Vector::View</tt> object.
|
27
|
-
# ---
|
28
|
-
# * GSL::BSpline#knots_uniform(a, b)
|
29
|
-
#
|
30
|
-
# This method assumes uniformly spaced breakpoints on [<tt>a,b</tt>] and constructs the corresponding knot vector using the previously specified <tt>nbreak</tt> parameter.
|
31
|
-
# == Evaluation of B-splines
|
32
|
-
# ---
|
33
|
-
# * GSL::BSpline#eval(x[, B])
|
34
|
-
#
|
35
|
-
# This method evaluates all B-spline basis functions at the position <tt>x</tt> and stores them in <tt>B</tt> (if given), so that the ith element of <tt>B</tt> is <tt>B_i(x)</tt>. <tt>B</tt> must be of length <tt>n = nbreak + k - 2</tt>. If <tt>B</tt> is not given, a newly created vector is returned.It is far more efficient to compute all of the basis functions at once than to compute them individually, due to the nature of the defining recurrence relation.
|
36
|
-
#
|
37
|
-
# {prev}[link:rdoc/nonlinearfit_rdoc.html]
|
38
|
-
# {next}[link:rdoc/const_rdoc.html]
|
39
|
-
#
|
40
|
-
# {Reference index}[link:rdoc/ref_rdoc.html]
|
41
|
-
# {top}[link:index.html]
|
42
|
-
#
|
data/rdoc/changes.rdoc
DELETED
@@ -1,159 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# = Changes since Ruby/GSL 1.10.3
|
3
|
-
#
|
4
|
-
# Ruby/GSL 1.11.2 introduced enhancements and some important bug fixes since the
|
5
|
-
# earlier 1.10.3 release. Some of the enhancements and bug fixes involve changes
|
6
|
-
# that are not backwards compatible. Existing scripts that work with Ruby/GSL
|
7
|
-
# 1.10.3 may break under 1.11.2 (or later) if they use certain constructs that
|
8
|
-
# are no longer supported or have changed in an incompatible way.
|
9
|
-
#
|
10
|
-
# The changes that could break old scripts are described below. They are
|
11
|
-
# followed by highlights of the other enhancements and new features.
|
12
|
-
#
|
13
|
-
# == Backwards incompatibilities introduced in Ruby/GSL 1.11.2
|
14
|
-
#
|
15
|
-
# * FFT interface has been extensively changed.
|
16
|
-
#
|
17
|
-
# * Matrix#get has been modified.
|
18
|
-
#
|
19
|
-
# * Size changing methods of GSL::Vector et al have, in general, been removed.
|
20
|
-
#
|
21
|
-
# * The #shift, #unshift, #push, and #pop methods have been removed from
|
22
|
-
# GSL::Vector et al since they result increasing the size of <tt>self</tt>. This
|
23
|
-
# can cause new memory to be allocated and old memory to be freed, but because
|
24
|
-
# existing Views contain pointers to the old memory, this cannot be allowed.
|
25
|
-
# Also removed #up and #down aliases from GSL::Poly.
|
26
|
-
#
|
27
|
-
# * The #concat method of GSL::Vector et al has been changed to always return a
|
28
|
-
# new, longer instance rather than reallocating memory for <tt>self</tt>.
|
29
|
-
#
|
30
|
-
# * Return values from #delete, #delete_at, and #delete_if now follow same
|
31
|
-
# convention as similarly named methods in Ruby's Array class. These methods
|
32
|
-
# should be considered deprecated because existing Views could still refer to
|
33
|
-
# now unmanged (but still allocated) memory.
|
34
|
-
#
|
35
|
-
# * GSL::Complex objects are now immutable.
|
36
|
-
#
|
37
|
-
# == Enhancements and features introduced in Ruby/GSL 1.11.2
|
38
|
-
#
|
39
|
-
# * Now distributed and installable as a Ruby Gem.
|
40
|
-
#
|
41
|
-
# * Allow nil for real and/or imag in GSL::Vector::Complex#set(i,re,im) to NOT
|
42
|
-
# set that component. For example, <tt>z=GSL::Vector::Complex[1]; z[0] = [nil,
|
43
|
-
# 1]</tt> will set \z[0] to \GSL::Complex[0,1].
|
44
|
-
#
|
45
|
-
# * Added GSL::Vector::Complex#to_s method.
|
46
|
-
#
|
47
|
-
# * Improved GSL::Vector::Complex#inspect.
|
48
|
-
#
|
49
|
-
# * Added GSL::Vector::Complex#set_real and GSL::Vector::Complex#set_imag methods
|
50
|
-
# (and real=, re=, imag=, im= aliases). Currently only work with Numerics, but
|
51
|
-
# could be made to work with GSL::Vectors (and Arrays of Floats).
|
52
|
-
#
|
53
|
-
# * Added GSL::Vector::Complex#conjugate and GSL::Vector::Complex#conjugate!
|
54
|
-
# methods along with corresponding "conj" and "conj!" aliases.
|
55
|
-
#
|
56
|
-
# * Added "#add!", "#sub!", "#mul!", and "#div!" methods to GSL::Vector::Complex.
|
57
|
-
# Also "add_constant!", and "scale!" aliases.
|
58
|
-
#
|
59
|
-
# * Added the following stats methods to GSL::Vector::Complex, #sum, #mean, #tss,
|
60
|
-
# #tss_m, #variance, #variance_m, #variance_fm, #sd, #sd_m, and #sd_fm. #sum
|
61
|
-
# and #mean return GSL::Complex; all others return Float.
|
62
|
-
#
|
63
|
-
# * Added "dup" alias for "clone" method of Vector and Maxtrix.
|
64
|
-
#
|
65
|
-
# * Added support for three parameter call to #subvector to support stride.
|
66
|
-
#
|
67
|
-
# * Added #shape method with alias #size for Matrix.
|
68
|
-
#
|
69
|
-
# * Provide GSL_Object#dup method to override Object#dup. GSL_Object#dup simply
|
70
|
-
# raises NotImplementedError. Subclasses that want dup functionality should
|
71
|
-
# provide their own implementation.
|
72
|
-
#
|
73
|
-
# * Added length alias to Vector and Vector::Complex.
|
74
|
-
#
|
75
|
-
# * Added #angle alias for #arg method of Complex, Vector::Complex, and
|
76
|
-
# Matrix::Complex
|
77
|
-
#
|
78
|
-
# * Added #conj alias for #conjugate for GSL::Complex. Added #conjugate! method
|
79
|
-
# with #conj! alias for GSL::Complex.
|
80
|
-
#
|
81
|
-
# * Added #[]= alias for #set method, #conj alias for #conjugate method, and
|
82
|
-
# #conj! alias for #conjugate! method to GSL::Matrix::Complex
|
83
|
-
#
|
84
|
-
# * Support GSL::Permutation as parameter to Vector::Complex#get (and #[]).
|
85
|
-
#
|
86
|
-
# * Disallow the stride and length parameters of the various FFT methods. The
|
87
|
-
# Vector being transformed could really be a Vector::View (e.g. a view of a
|
88
|
-
# Matrix column). In that case, we need to use the stride of the Vector::View.
|
89
|
-
# Users wishing to use a custom stride or length will be able to do so by
|
90
|
-
# transforming a subvector of the Vector.
|
91
|
-
#
|
92
|
-
# * Added Block#length alias for Block#size.
|
93
|
-
#
|
94
|
-
# * Fixed bug #16023.
|
95
|
-
#
|
96
|
-
# * Calling #to_v on a single column matrix view will return column vector.
|
97
|
-
# Related to #19757.
|
98
|
-
#
|
99
|
-
# * Provided GSL::Matrix::Complex with reasonable #to_s and #inspect
|
100
|
-
# implementations.
|
101
|
-
#
|
102
|
-
# * Made Vector#{add,sub,mul,div}! methods work with non-Vector parameter (i.e.
|
103
|
-
# constant).
|
104
|
-
#
|
105
|
-
# * Added #collect and #collect! methods to Matrix::Complex.
|
106
|
-
#
|
107
|
-
# * Added #map and #map! aliases for collect and collect! to Block, Vector et al,
|
108
|
-
# and Matrix et al.
|
109
|
-
#
|
110
|
-
# * Vector::Complex#each, #reverse_each, #collect, and #collect! now yield
|
111
|
-
# objects that are allocated on heap rather than stack.
|
112
|
-
#
|
113
|
-
# * Made Vector#subvector work with negative offsets
|
114
|
-
#
|
115
|
-
# * Added Vector#sgn and Matrix#sgn, both with #signum alias.
|
116
|
-
#
|
117
|
-
# * Added support for a Range parameter (with optional stride) to
|
118
|
-
# Vector#subvector and Vector::Complex#subvector.
|
119
|
-
#
|
120
|
-
# * Modified Vector#get and Vector::Complex#get to return Views (via #subvector)
|
121
|
-
# if more than one (or none) parameters are given or if a single Range
|
122
|
-
# parameter is given.
|
123
|
-
#
|
124
|
-
# * Enhanced Matrix#submatrix with many new options and updated docs to reflect
|
125
|
-
# changes
|
126
|
-
#
|
127
|
-
# * Modified Matrix#get to use new Matrix#submatrix functionality.
|
128
|
-
#
|
129
|
-
# * Added Matrix#to_a and Matrix::Complex#to_a methods.
|
130
|
-
#
|
131
|
-
# * Enhanced Vector#set functionality.
|
132
|
-
#
|
133
|
-
# * Added more details, examples, and a warning to Vector#set documentation.
|
134
|
-
#
|
135
|
-
# * Changed Range handling to support Floats for begin and end values where
|
136
|
-
# appropriate.
|
137
|
-
#
|
138
|
-
# * Changed Vector#view_with_stride to require non-zero stride rather then
|
139
|
-
# positive stride.
|
140
|
-
#
|
141
|
-
# * Enhanced Vector::Complex#set functionality.
|
142
|
-
#
|
143
|
-
# * Enhanced Matrix#set. Changed behavior of Matrix#get when called with a
|
144
|
-
# single Fixnum argument; now returns individual element rather than
|
145
|
-
# Vector::View of row. See html/matrix.html for more details. Changed tests
|
146
|
-
# and examples to accomdate the change in Matrix#get.
|
147
|
-
#
|
148
|
-
# * Match to the latest tensor extension (version 0.99)
|
149
|
-
#
|
150
|
-
# * Modified GSL::Matrix::Complex#set to have same (i.e. newly enhanced)
|
151
|
-
# functionality as GSL::Matrix#set. [Possibly incomplete; please report any
|
152
|
-
# discrepancies.]
|
153
|
-
#
|
154
|
-
# * Added #diag alias for Matrix#diagonal.
|
155
|
-
#
|
156
|
-
# * Added #fftshift, #fftshift!, #ifftshift, and #ifftshift! methods to
|
157
|
-
# GSL::Vector::Complex and documented them.
|
158
|
-
#
|
159
|
-
#
|
data/rdoc/cheb.rdoc
DELETED
@@ -1,99 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# = Chebyshev Approximations
|
3
|
-
# This chapter describes routines for computing Chebyshev approximations to
|
4
|
-
# univariate functions. A Chebyshev approximation is a truncation of the series
|
5
|
-
# f(x) = \sum c_n T_n(x),
|
6
|
-
# where the Chebyshev polynomials T_n(x) = \cos(n \arccos x)
|
7
|
-
# provide an orthogonal basis of polynomials on the interval [-1,1]
|
8
|
-
# with the weight function 1 / \sqrt{1-x^2}.
|
9
|
-
# The first few Chebyshev polynomials are,
|
10
|
-
# T_0(x) = 1, T_1(x) = x, T_2(x) = 2 x^2 - 1.
|
11
|
-
# For further information see Abramowitz & Stegun, Chapter 22.
|
12
|
-
#
|
13
|
-
# 1. {GSL::Cheb class}[link:rdoc/cheb_rdoc.html#label-Cheb+class]
|
14
|
-
# 1. {Chebyshev Series Evaluation}[link:rdoc/cheb_rdoc.html#label-Chebyshev+Series+Evaluation]
|
15
|
-
# 1. {Derivatives and Integrals}[link:rdoc/cheb_rdoc.html#label-Derivatives+and+Integrals]
|
16
|
-
# 1. {Examples}[link:rdoc/cheb_rdoc.html#label-Example]
|
17
|
-
#
|
18
|
-
# == <tt>Cheb</tt> class
|
19
|
-
#
|
20
|
-
# ---
|
21
|
-
# * GSL::Cheb.alloc(n)
|
22
|
-
#
|
23
|
-
# This create an instance of the GSL::Cheb class for a Chebyshev series of order n.
|
24
|
-
#
|
25
|
-
#
|
26
|
-
# ---
|
27
|
-
# * GSL::Cheb#init(f, a, b)
|
28
|
-
#
|
29
|
-
# This computes the Chebyshev approximation the function <tt>f</tt> over the range (<tt>a,b</tt>) to the previously specified order. Where <tt>f</tt> is a {GSL::Function}[link:rdoc/function_rdoc.html] object. The computation of the Chebyshev approximation is an O(n^2) process, and requires <tt>n</tt> function evaluations.
|
30
|
-
#
|
31
|
-
# * ex: Approximate a step function defined in (0, 1) by a Chebyshev series of order 40.
|
32
|
-
# f = GSL::Function.alloc { |x|
|
33
|
-
# if x < 0.5
|
34
|
-
# 0.25
|
35
|
-
# else
|
36
|
-
# 0.75
|
37
|
-
# end
|
38
|
-
# }
|
39
|
-
#
|
40
|
-
# cs = GSL::Cheb.alloc(40)
|
41
|
-
# cs.init(f, 0, 1)
|
42
|
-
#
|
43
|
-
# == Chebyshev Series Evaluation
|
44
|
-
# ---
|
45
|
-
# * GSL::Cheb#eval(x)
|
46
|
-
#
|
47
|
-
# This evaluates the Chebyshev series at a given point <tt>x</tt>.
|
48
|
-
#
|
49
|
-
# ---
|
50
|
-
# * GSL::Cheb#eval_n(n, x)
|
51
|
-
#
|
52
|
-
# This evaluates the Chebyshev series at a given point <tt>x</tt>, to (at most) the given order <tt>n</tt>.
|
53
|
-
#
|
54
|
-
# == Derivatives and Integrals
|
55
|
-
#
|
56
|
-
# ---
|
57
|
-
# * GSL::Cheb#calc_deriv()
|
58
|
-
# * GSL::Cheb#deriv()
|
59
|
-
#
|
60
|
-
# This computes the derivative of the series, and returns a new GSL::Cheb object which contains the computed derivative. The reciever is not changed.
|
61
|
-
#
|
62
|
-
# ---
|
63
|
-
# * GSL::Cheb#calc_integ()
|
64
|
-
# * GSL::Cheb#integ()
|
65
|
-
#
|
66
|
-
# This computes the integral of the series, and returns a new GSL::Cheb object which contains the computed integral coefficients. The reciever is not changed.
|
67
|
-
#
|
68
|
-
# == Example
|
69
|
-
# #!/usr/bin/env ruby
|
70
|
-
# require("gsl")
|
71
|
-
#
|
72
|
-
# f = GSL::Function.alloc { |x|
|
73
|
-
# if x < 0.5
|
74
|
-
# 0.25
|
75
|
-
# else
|
76
|
-
# 0.75
|
77
|
-
# end
|
78
|
-
# }
|
79
|
-
#
|
80
|
-
# n = 1000
|
81
|
-
# order = 40
|
82
|
-
# cs = GSL::Cheb.alloc(order)
|
83
|
-
# cs.init(f, 0, 1)
|
84
|
-
#
|
85
|
-
# x = Vector.linspace(0, 1, n)
|
86
|
-
# ff = f.eval(x)
|
87
|
-
# r10 = cs.eval_n(10, x)
|
88
|
-
# r40 = cs.eval(x)
|
89
|
-
# GSL::graph(x, ff, r10, r40)
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# See also the example scripts in <tt>examples/cheb/</tt>.
|
93
|
-
#
|
94
|
-
# {prev}[link:rdoc/diff_rdoc.html]
|
95
|
-
# {next}[link:rdoc/sum_rdoc.html]
|
96
|
-
#
|
97
|
-
# {Reference index}[link:rdoc/ref_rdoc.html]
|
98
|
-
# {top}[link:index.html]
|
99
|
-
#
|
data/rdoc/cholesky_complex.rdoc
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# === Cholesky decomposition (>= GSL-1.10)
|
3
|
-
# A symmetric, positive definite square matrix <tt>A</tt> has
|
4
|
-
# a Cholesky decomposition into a product of a lower triangular matrix
|
5
|
-
# <tt>L</tt> and its transpose <tt>L^T</tt>.
|
6
|
-
# This is sometimes referred to as taking the square-root of a matrix.
|
7
|
-
# The Cholesky decomposition can only be carried out when all the eigenvalues
|
8
|
-
# of the matrix are positive. This decomposition can be used to convert the
|
9
|
-
# linear system <tt>A x = b</tt> into a pair of triangular systems
|
10
|
-
# <tt>L y = b, L^T x = y</tt>,
|
11
|
-
# which can be solved by forward and back-substitution.
|
12
|
-
#
|
13
|
-
# ---
|
14
|
-
# * GSL::Linalg::Complex::Cholesky::decomp(A)
|
15
|
-
# * GSL::Linalg::Complex::cholesky_decomp(A)
|
16
|
-
#
|
17
|
-
# Factorize the positive-definite square matrix <tt>A</tt> into the
|
18
|
-
# Cholesky decomposition <tt>A = L L^H</tt>.
|
19
|
-
# On input only the diagonal and lower-triangular part of the matrix <tt>A</tt>
|
20
|
-
# are needed. The diagonal and lower triangular part of the returned matrix
|
21
|
-
# contain the matrix <tt>L</tt>. The upper triangular part of the
|
22
|
-
# returned matrix contains L^T, and
|
23
|
-
# the diagonal terms being identical for both L and L^T.
|
24
|
-
# If the input matrix is not positive-definite then the decomposition
|
25
|
-
# will fail, returning the error code <tt>GSL::EDOM</tt>.
|
26
|
-
#
|
27
|
-
# ---
|
28
|
-
# * GSL::Linalg::Complex::Cholesky::solve(chol, b, x)
|
29
|
-
# * GSL::Linalg::Complex::cholesky_solve(chol, b, x)
|
30
|
-
#
|
31
|
-
# Solve the system <tt>A x = b</tt> using the Cholesky decomposition
|
32
|
-
# of <tt>A</tt> into the matrix <tt>chol</tt> given by
|
33
|
-
# <tt>GSL::Linalg::Complex::Cholesky::decomp</tt>.
|
34
|
-
#
|
35
|
-
# ---
|
36
|
-
# * GSL::Linalg::Complex::Cholesky::svx(chol, x)
|
37
|
-
# * GSL::Linalg::Complex::cholesky_svx(chol, x)
|
38
|
-
#
|
39
|
-
# Solve the system <tt>A x = b</tt> in-place using the Cholesky decomposition
|
40
|
-
# of <tt>A</tt> into the matrix <tt>chol</tt> given by
|
41
|
-
# <tt>GSL::Linalg::Complex::Cholesky::decomp</tt>. On input <tt>x</tt>
|
42
|
-
# should contain the right-hand side <tt>b</tt>,
|
43
|
-
# which is replaced by the solution on output.
|
44
|
-
#
|
45
|
-
# {back}[link:rdoc/linalg_rdoc.html]
|
46
|
-
#
|
data/rdoc/combi.rdoc
DELETED
@@ -1,125 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# = Combinations
|
3
|
-
# Contents:
|
4
|
-
# 1. {Combination allocation}[link:rdoc/combi_rdoc.html#label-Combination+allocation]
|
5
|
-
# 1. {Methods}[link:rdoc/combi_rdoc.html#label-Methods]
|
6
|
-
# 1. {Accessing combination elements}[link:rdoc/combi_rdoc.html#label-Accessing+combination+elements]
|
7
|
-
# 1. {Combination properties}[link:rdoc/combi_rdoc.html#label-Combination+properties]
|
8
|
-
# 1. {Combination functions}[link:rdoc/combi_rdoc.html#label-Combination+functions]
|
9
|
-
# 1. {Reading and writing combinations}[link:rdoc/combi_rdoc.html#label-Reading+and+writing+combinations]
|
10
|
-
#
|
11
|
-
# == Combination allocation
|
12
|
-
# ---
|
13
|
-
# * GSL::Combination.alloc(n, k)
|
14
|
-
#
|
15
|
-
# These create a new combination with parameters <tt>n, k</tt>.
|
16
|
-
# The combination is not initialized and its elements are undefined.
|
17
|
-
# Use the method <tt>GSL::Combination.calloc</tt> if you want to create a
|
18
|
-
# combination which is initialized to the lexicographically first combination.
|
19
|
-
#
|
20
|
-
# ---
|
21
|
-
# * GSL::Combination.calloc(n, k)
|
22
|
-
#
|
23
|
-
# This creates a new combination with parameters <tt>n, k</tt> and initializes
|
24
|
-
# it to the lexicographically first combination.
|
25
|
-
#
|
26
|
-
# == Methods
|
27
|
-
#
|
28
|
-
# ---
|
29
|
-
# * GSL::Combination#init_first
|
30
|
-
#
|
31
|
-
# This method initializes the combination <tt>self</tt> to the lexicographically
|
32
|
-
# first combination, i.e. (0,1,2,...,k-1).
|
33
|
-
#
|
34
|
-
# ---
|
35
|
-
# * GSL::Combination#init_last
|
36
|
-
#
|
37
|
-
# This method initializes the combination <tt>self</tt> to the lexicographically last
|
38
|
-
# combination, i.e. (n-k,n-k+1,...,n-1).
|
39
|
-
#
|
40
|
-
# === Accessing combination elements
|
41
|
-
# ---
|
42
|
-
# * GSL::Combination#get(i)
|
43
|
-
# * \GSL::Combination#[i]
|
44
|
-
#
|
45
|
-
# This returns the value of the <tt>i</tt>-th element of the combination <tt>self</tt>.
|
46
|
-
#
|
47
|
-
# === Combination properties
|
48
|
-
# ---
|
49
|
-
# * GSL::Combination#n
|
50
|
-
#
|
51
|
-
# Returns the <tt>n</tt> parameter of the combination <tt>self</tt>.
|
52
|
-
#
|
53
|
-
# ---
|
54
|
-
# * GSL::Combination#k
|
55
|
-
#
|
56
|
-
# Returns the <tt>k</tt> parameter of the combination <tt>self</tt>.
|
57
|
-
#
|
58
|
-
# ---
|
59
|
-
# * GSL::Combination#data
|
60
|
-
#
|
61
|
-
# Returns the vector of elements in the combination <tt>self</tt>.
|
62
|
-
#
|
63
|
-
# ---
|
64
|
-
# * GSL::Combination#valid
|
65
|
-
#
|
66
|
-
# This method checks that the combination <tt>self</tt> is valid.
|
67
|
-
# The <tt>k</tt> elements should contain numbers from range 0 .. n-1,
|
68
|
-
# each number at most once. The numbers have to be in increasing order.
|
69
|
-
#
|
70
|
-
# ---
|
71
|
-
# * GSL::Combination#valid?
|
72
|
-
#
|
73
|
-
# Thie returns true if the combination is valid, and false otherwise.
|
74
|
-
#
|
75
|
-
# === Combination functions
|
76
|
-
# ---
|
77
|
-
# * GSL::Combination#next
|
78
|
-
#
|
79
|
-
# This method advances the combination <tt>self</tt> to the next combination in
|
80
|
-
# lexicographic order and returns <tt>GSL::SUCCESS</tt>. If no further combinations are
|
81
|
-
# available it returns <tt>GSL::FAILURE</tt> and leaves <tt>self</tt> unmodified.
|
82
|
-
# Starting with the first combination and repeatedly applying this function will
|
83
|
-
# iterate through all possible combinations of a given order.
|
84
|
-
#
|
85
|
-
# ---
|
86
|
-
# * GSL::Combination#prev
|
87
|
-
#
|
88
|
-
# This method steps backwards from the combination <tt>self</tt> to the previous
|
89
|
-
# combination in lexicographic order, returning <tt>GSL::SUCCESS</tt>.
|
90
|
-
# If no previous combination is available it returns <tt>GSL::FAILURE</tt>
|
91
|
-
# and leaves <tt>self</tt> unmodified.
|
92
|
-
#
|
93
|
-
# === Reading and writing combinations
|
94
|
-
# ---
|
95
|
-
# * GSL::Combination#fwrite(filename)
|
96
|
-
# * GSL::Combination#fwrite(io)
|
97
|
-
# * GSL::Combination#fread(filename)
|
98
|
-
# * GSL::Combination#fread(io)
|
99
|
-
# * GSL::Combination#fprintf(filename, format = "%u")
|
100
|
-
# * GSL::Combination#fprintf(io, format = "%u")
|
101
|
-
# * GSL::Combination#fscanf(filename)
|
102
|
-
# * GSL::Combination#fscanf(io)
|
103
|
-
#
|
104
|
-
#
|
105
|
-
# == Example
|
106
|
-
# #!/usr/bin/env ruby
|
107
|
-
# require("gsl")
|
108
|
-
#
|
109
|
-
# printf("All subsets of {0,1,2,3} by size:\n") ;
|
110
|
-
# for i in 0...4 do
|
111
|
-
# c = GSL::Combination.calloc(4, i);
|
112
|
-
# begin
|
113
|
-
# printf("{");
|
114
|
-
# c.fprintf(STDOUT, " %u");
|
115
|
-
# printf(" }\n");
|
116
|
-
# end while c.next == GSL::SUCCESS
|
117
|
-
# end
|
118
|
-
#
|
119
|
-
# {prev}[link:rdoc/perm_rdoc.html]
|
120
|
-
# {next}[link:rdoc/sort_rdoc.html]
|
121
|
-
#
|
122
|
-
# {Reference index}[link:rdoc/ref_rdoc.html]
|
123
|
-
# {top}[link:index.html]
|
124
|
-
#
|
125
|
-
#
|