rb-gsl 1.16.0 → 1.16.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +6 -0
- data/README +11 -15
- data/Rakefile +6 -10
- data/ext/{alf.c → gsl/alf.c} +1 -1
- data/ext/{array.c → gsl/array.c} +4 -6
- data/ext/{array_complex.c → gsl/array_complex.c} +2 -3
- data/ext/{blas.c → gsl/blas.c} +2 -3
- data/ext/{blas1.c → gsl/blas1.c} +3 -4
- data/ext/{blas2.c → gsl/blas2.c} +3 -4
- data/ext/{blas3.c → gsl/blas3.c} +3 -4
- data/ext/{block.c → gsl/block.c} +11 -12
- data/ext/{block_source.c → gsl/block_source.c} +0 -0
- data/ext/{bspline.c → gsl/bspline.c} +1 -1
- data/ext/{bundle.c → gsl/bundle.c} +0 -0
- data/ext/{cdf.c → gsl/cdf.c} +3 -5
- data/ext/{cheb.c → gsl/cheb.c} +4 -4
- data/ext/{combination.c → gsl/combination.c} +2 -3
- data/ext/{common.c → gsl/common.c} +8 -10
- data/ext/{complex.c → gsl/complex.c} +3 -3
- data/ext/{const.c → gsl/const.c} +2 -3
- data/ext/{const_additional.c → gsl/const_additional.c} +2 -2
- data/ext/{cqp.c → gsl/cqp.c} +1 -1
- data/ext/{deriv.c → gsl/deriv.c} +3 -3
- data/ext/{dht.c → gsl/dht.c} +3 -3
- data/ext/{diff.c → gsl/diff.c} +3 -3
- data/ext/{dirac.c → gsl/dirac.c} +1 -1
- data/ext/{eigen.c → gsl/eigen.c} +16 -16
- data/ext/{error.c → gsl/error.c} +5 -5
- data/ext/gsl/extconf.rb +121 -0
- data/ext/{fcmp.c → gsl/fcmp.c} +0 -2
- data/ext/{fft.c → gsl/fft.c} +1 -2
- data/ext/{fit.c → gsl/fit.c} +1 -2
- data/ext/{fresnel.c → gsl/fresnel.c} +2 -2
- data/ext/{function.c → gsl/function.c} +3 -3
- data/ext/{geometry.c → gsl/geometry.c} +1 -1
- data/ext/{graph.c → gsl/graph.c} +2 -2
- data/ext/{gsl.c → gsl/gsl.c} +2 -10
- data/ext/{gsl_narray.c → gsl/gsl_narray.c} +2 -3
- data/ext/{histogram.c → gsl/histogram.c} +3 -4
- data/ext/{histogram2d.c → gsl/histogram2d.c} +3 -4
- data/ext/{histogram3d.c → gsl/histogram3d.c} +4 -4
- data/ext/{histogram3d_source.c → gsl/histogram3d_source.c} +1 -1
- data/ext/{histogram_find.c → gsl/histogram_find.c} +1 -1
- data/ext/{histogram_oper.c → gsl/histogram_oper.c} +0 -0
- data/ext/{ieee.c → gsl/ieee.c} +4 -8
- data/{include → ext/gsl/include}/rb_gsl.h +4 -19
- data/{include → ext/gsl/include}/rb_gsl_array.h +0 -14
- data/{include → ext/gsl/include}/rb_gsl_cheb.h +0 -2
- data/{include → ext/gsl/include}/rb_gsl_common.h +11 -15
- data/{include → ext/gsl/include}/rb_gsl_complex.h +1 -1
- data/{include → ext/gsl/include}/rb_gsl_const.h +1 -2
- data/ext/gsl/include/rb_gsl_dirac.h +6 -0
- data/{include → ext/gsl/include}/rb_gsl_eigen.h +1 -1
- data/{include → ext/gsl/include}/rb_gsl_fft.h +0 -10
- data/{include → ext/gsl/include}/rb_gsl_fit.h +0 -2
- data/{include → ext/gsl/include}/rb_gsl_function.h +0 -4
- data/{include → ext/gsl/include}/rb_gsl_graph.h +0 -2
- data/{include → ext/gsl/include}/rb_gsl_histogram.h +0 -0
- data/{include → ext/gsl/include}/rb_gsl_histogram3d.h +0 -0
- data/{include → ext/gsl/include}/rb_gsl_integration.h +1 -1
- data/{include → ext/gsl/include}/rb_gsl_interp.h +0 -5
- data/{include → ext/gsl/include}/rb_gsl_linalg.h +2 -5
- data/{include → ext/gsl/include}/rb_gsl_math.h +0 -2
- data/{include → ext/gsl/include}/rb_gsl_odeiv.h +0 -3
- data/{include → ext/gsl/include}/rb_gsl_poly.h +0 -4
- data/{include → ext/gsl/include}/rb_gsl_rational.h +0 -7
- data/{include → ext/gsl/include}/rb_gsl_rng.h +0 -1
- data/{include → ext/gsl/include}/rb_gsl_root.h +1 -1
- data/{include → ext/gsl/include}/rb_gsl_sf.h +0 -5
- data/{include → ext/gsl/include}/rb_gsl_statistics.h +1 -1
- data/{include → ext/gsl/include}/rb_gsl_tensor.h +0 -2
- data/{include → ext/gsl/include}/rb_gsl_with_narray.h +3 -1
- data/{include → ext/gsl/include}/templates_off.h +0 -0
- data/{include → ext/gsl/include}/templates_on.h +0 -0
- data/ext/{integration.c → gsl/integration.c} +4 -6
- data/ext/{interp.c → gsl/interp.c} +1 -6
- data/ext/{jacobi.c → gsl/jacobi.c} +1 -1
- data/ext/{linalg.c → gsl/linalg.c} +3 -4
- data/ext/{linalg_complex.c → gsl/linalg_complex.c} +3 -4
- data/ext/{math.c → gsl/math.c} +2 -3
- data/ext/{matrix.c → gsl/matrix.c} +9 -10
- data/ext/{matrix_complex.c → gsl/matrix_complex.c} +2 -3
- data/ext/{matrix_double.c → gsl/matrix_double.c} +5 -5
- data/ext/{matrix_int.c → gsl/matrix_int.c} +4 -4
- data/ext/{matrix_source.c → gsl/matrix_source.c} +2 -6
- data/ext/{min.c → gsl/min.c} +2 -2
- data/ext/{monte.c → gsl/monte.c} +3 -3
- data/ext/{multifit.c → gsl/multifit.c} +4 -4
- data/ext/{multimin.c → gsl/multimin.c} +5 -5
- data/ext/{multimin_fsdf.c → gsl/multimin_fsdf.c} +1 -1
- data/ext/{multiroots.c → gsl/multiroots.c} +6 -6
- data/ext/{multiset.c → gsl/multiset.c} +1 -1
- data/ext/{ndlinear.c → gsl/ndlinear.c} +1 -1
- data/ext/{nmf.c → gsl/nmf.c} +0 -0
- data/ext/{nmf_wrap.c → gsl/nmf_wrap.c} +0 -0
- data/ext/{ntuple.c → gsl/ntuple.c} +6 -6
- data/ext/{odeiv.c → gsl/odeiv.c} +4 -8
- data/ext/{ool.c → gsl/ool.c} +2 -2
- data/ext/{oper_complex_source.c → gsl/oper_complex_source.c} +2 -4
- data/ext/{permutation.c → gsl/permutation.c} +2 -2
- data/ext/{poly.c → gsl/poly.c} +8 -8
- data/ext/{poly2.c → gsl/poly2.c} +4 -4
- data/ext/{poly_source.c → gsl/poly_source.c} +7 -11
- data/ext/{qrng.c → gsl/qrng.c} +3 -3
- data/ext/{randist.c → gsl/randist.c} +4 -4
- data/ext/{rational.c → gsl/rational.c} +3 -3
- data/ext/{rng.c → gsl/rng.c} +1 -2
- data/ext/{root.c → gsl/root.c} +4 -5
- data/ext/{sf.c → gsl/sf.c} +2 -2
- data/ext/{sf_airy.c → gsl/sf_airy.c} +2 -2
- data/ext/{sf_bessel.c → gsl/sf_bessel.c} +1 -1
- data/ext/{sf_clausen.c → gsl/sf_clausen.c} +1 -1
- data/ext/{sf_coulomb.c → gsl/sf_coulomb.c} +1 -1
- data/ext/{sf_coupling.c → gsl/sf_coupling.c} +1 -1
- data/ext/{sf_dawson.c → gsl/sf_dawson.c} +1 -1
- data/ext/{sf_debye.c → gsl/sf_debye.c} +1 -1
- data/ext/{sf_dilog.c → gsl/sf_dilog.c} +1 -1
- data/ext/{sf_elementary.c → gsl/sf_elementary.c} +1 -1
- data/ext/{sf_ellint.c → gsl/sf_ellint.c} +1 -1
- data/ext/{sf_elljac.c → gsl/sf_elljac.c} +1 -1
- data/ext/{sf_erfc.c → gsl/sf_erfc.c} +1 -1
- data/ext/{sf_exp.c → gsl/sf_exp.c} +1 -1
- data/ext/{sf_expint.c → gsl/sf_expint.c} +1 -1
- data/ext/{sf_fermi_dirac.c → gsl/sf_fermi_dirac.c} +1 -1
- data/ext/{sf_gamma.c → gsl/sf_gamma.c} +1 -1
- data/ext/{sf_gegenbauer.c → gsl/sf_gegenbauer.c} +1 -1
- data/ext/{sf_hyperg.c → gsl/sf_hyperg.c} +1 -1
- data/ext/{sf_laguerre.c → gsl/sf_laguerre.c} +1 -1
- data/ext/{sf_lambert.c → gsl/sf_lambert.c} +1 -1
- data/ext/{sf_legendre.c → gsl/sf_legendre.c} +1 -1
- data/ext/{sf_log.c → gsl/sf_log.c} +1 -1
- data/ext/{sf_mathieu.c → gsl/sf_mathieu.c} +1 -1
- data/ext/{sf_power.c → gsl/sf_power.c} +1 -1
- data/ext/{sf_psi.c → gsl/sf_psi.c} +1 -1
- data/ext/{sf_synchrotron.c → gsl/sf_synchrotron.c} +1 -1
- data/ext/{sf_transport.c → gsl/sf_transport.c} +1 -1
- data/ext/{sf_trigonometric.c → gsl/sf_trigonometric.c} +1 -1
- data/ext/{sf_zeta.c → gsl/sf_zeta.c} +1 -1
- data/ext/{signal.c → gsl/signal.c} +2 -3
- data/ext/{siman.c → gsl/siman.c} +9 -9
- data/ext/{sort.c → gsl/sort.c} +4 -4
- data/ext/{spline.c → gsl/spline.c} +3 -3
- data/ext/{stats.c → gsl/stats.c} +3 -3
- data/ext/{sum.c → gsl/sum.c} +2 -2
- data/ext/{tamu_anova.c → gsl/tamu_anova.c} +1 -1
- data/ext/{tensor.c → gsl/tensor.c} +6 -7
- data/ext/{tensor_source.c → gsl/tensor_source.c} +3 -4
- data/ext/{vector.c → gsl/vector.c} +9 -10
- data/ext/{vector_complex.c → gsl/vector_complex.c} +3 -3
- data/ext/{vector_double.c → gsl/vector_double.c} +5 -6
- data/ext/{vector_int.c → gsl/vector_int.c} +4 -4
- data/ext/{vector_source.c → gsl/vector_source.c} +1 -5
- data/ext/{wavelet.c → gsl/wavelet.c} +3 -4
- data/lib/gsl.rb +13 -3
- data/lib/gsl/gnuplot.rb +1 -1
- data/lib/gsl/version.rb +5 -0
- data/lib/rbgsl.rb +1 -3
- data/rdoc/index.rdoc +0 -9
- metadata +199 -160
- data/VERSION +0 -1
- data/ext/extconf.rb +0 -309
- data/include/rb_gsl_config.h +0 -71
- data/include/rb_gsl_dirac.h +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3baea03d526d67dd34354f8c5247ca9f322f1ebe
|
4
|
+
data.tar.gz: 9bb134da00e571869b96733c7da83c11283c1249
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f10075bbb641ff8048087e0eb61d84b810f105ae2594dddf960fe81592cb98aff8b8d81f15376fc6f87a15005ecd875652a102faa396cf5bea2658f58c9dd3c4
|
7
|
+
data.tar.gz: 13da69c705a085b5f66c847771727c03f3e24eedb36ade6b11c033e207147ae218ee0be7b8b19f84b2f82c0ee152705845d25da35a0716836a1d70f687cdc549
|
data/ChangeLog
CHANGED
data/README
CHANGED
@@ -1,32 +1,28 @@
|
|
1
|
-
=begin
|
2
1
|
== Description
|
2
|
+
|
3
3
|
Ruby/GSL, a ruby interface to GSL (GNU Scientific library)
|
4
4
|
|
5
5
|
== Installation
|
6
|
-
(0) Make sure the command "gsl-config" is in search path.
|
7
|
-
(1) % ruby setup.rb config
|
8
|
-
(2) % ruby setup.rb setup
|
9
|
-
(3) % ruby setup.rb install (as root)
|
10
6
|
|
11
|
-
See
|
7
|
+
See http://blackwinter.github.io/rb-gsl/.
|
12
8
|
|
13
9
|
== Reference
|
14
10
|
|
15
|
-
See
|
11
|
+
See http://blackwinter.github.io/rb-gsl/rdoc/ref_rdoc.
|
16
12
|
|
17
13
|
== Licence
|
14
|
+
|
18
15
|
Ruby/GSL is free software: you can redistribute it and/or modify it
|
19
16
|
under the terms of the GNU General Public License.
|
20
17
|
This library is distributed in the hope that it will be useful, but
|
21
18
|
WITHOUT ANY WARRANTY.
|
22
19
|
|
23
|
-
== Bug
|
24
|
-
|
25
|
-
If you encounter bugs in Ruby/GSL, please
|
26
|
-
|
20
|
+
== Bug Reports
|
21
|
+
|
22
|
+
Any bug reports are welcome. If you encounter bugs in Ruby/GSL, please
|
23
|
+
report them on GitHub: https://github.com/blackwinter/rb-gsl/issues.
|
27
24
|
|
28
|
-
==
|
29
|
-
Yoshiki Tsunesada
|
30
|
-
y-tsunesada at mm dot em-net dot ne dot jp
|
25
|
+
== Authors
|
31
26
|
|
32
|
-
|
27
|
+
* Yoshiki Tsunesada <y-tsunesada at mm dot em-net dot ne dot jp> (Original author)
|
28
|
+
* Jens Wille <mailto:jens.wille@gmail.com>
|
data/Rakefile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
require File.expand_path(%q{../lib/gsl/version}, __FILE__)
|
2
2
|
|
3
3
|
begin
|
4
4
|
require 'hen'
|
@@ -8,7 +8,7 @@ begin
|
|
8
8
|
Hen.lay! {{
|
9
9
|
:gem => {
|
10
10
|
:name => %q{rb-gsl},
|
11
|
-
:version => RB_GSL_VERSION,
|
11
|
+
:version => GSL::RB_GSL_VERSION,
|
12
12
|
:summary => %Q{Ruby interface to the GNU Scientific Library #{note}},
|
13
13
|
:description => %Q{Ruby/GSL is a Ruby interface to the GNU Scientific Library, for numerical computing with Ruby #{note}},
|
14
14
|
:authors => ['Yoshiki Tsunesada', 'David MacMahon', 'Jens Wille'],
|
@@ -19,20 +19,16 @@ begin
|
|
19
19
|
:requirements => ['GSL (http://www.gnu.org/software/gsl/)'],
|
20
20
|
:require_paths => %w[lib lib/gsl lib/ool ext],
|
21
21
|
|
22
|
-
:extra_files => FileList['examples/**/*', '
|
22
|
+
:extra_files => FileList['examples/**/*', 'rdoc/*'].to_a,
|
23
23
|
|
24
|
-
:extension => {
|
25
|
-
:lib_dir => 'lib',
|
26
|
-
:ext_dir => 'ext',
|
27
|
-
:cross_compile => false
|
28
|
-
},
|
24
|
+
:extension => { :cross_compile => false },
|
29
25
|
|
30
|
-
:required_ruby_version => '>= 1.8.
|
26
|
+
:required_ruby_version => '>= 1.8.7'
|
31
27
|
},
|
32
28
|
:rdoc => {
|
33
29
|
:title => 'Ruby/GSL{version: (v%s)}',
|
34
30
|
:rdoc_files => FileList['rdoc/*'].to_a,
|
35
|
-
:exclude => %w[ext
|
31
|
+
:exclude => %w[ext lib],
|
36
32
|
:main => 'rdoc/index.rdoc'
|
37
33
|
},
|
38
34
|
:test => {
|
data/ext/{alf.c → gsl/alf.c}
RENAMED
data/ext/{array.c → gsl/array.c}
RENAMED
@@ -9,13 +9,11 @@
|
|
9
9
|
WITHOUT ANY WARRANTY.
|
10
10
|
*/
|
11
11
|
|
12
|
-
#include "
|
13
|
-
|
14
|
-
#include "
|
15
|
-
#include "rb_gsl_array.h"
|
16
|
-
#include "rb_gsl_complex.h"
|
12
|
+
#include "include/rb_gsl_common.h"
|
13
|
+
#include "include/rb_gsl_array.h"
|
14
|
+
#include "include/rb_gsl_complex.h"
|
17
15
|
#ifdef HAVE_NARRAY_H
|
18
|
-
#include "rb_gsl_with_narray.h"
|
16
|
+
#include "include/rb_gsl_with_narray.h"
|
19
17
|
#endif
|
20
18
|
|
21
19
|
/* global variables */
|
@@ -8,10 +8,9 @@
|
|
8
8
|
This library is distributed in the hope that it will be useful, but
|
9
9
|
WITHOUT ANY WARRANTY.
|
10
10
|
*/
|
11
|
-
#include "rb_gsl_config.h"
|
12
11
|
|
13
|
-
#include "rb_gsl_complex.h"
|
14
|
-
#include "rb_gsl_array.h"
|
12
|
+
#include "include/rb_gsl_complex.h"
|
13
|
+
#include "include/rb_gsl_array.h"
|
15
14
|
|
16
15
|
enum {
|
17
16
|
GSL_COMPLEX_ADD,
|
data/ext/{blas.c → gsl/blas.c}
RENAMED
@@ -8,11 +8,10 @@
|
|
8
8
|
This library is distributed in the hope that it will be useful, but
|
9
9
|
WITHOUT ANY WARRANTY.
|
10
10
|
*/
|
11
|
-
#include "rb_gsl_config.h"
|
12
11
|
|
13
12
|
#include <gsl/gsl_blas.h>
|
14
|
-
#include "rb_gsl_common.h"
|
15
|
-
#include "rb_gsl_array.h"
|
13
|
+
#include "include/rb_gsl_common.h"
|
14
|
+
#include "include/rb_gsl_array.h"
|
16
15
|
|
17
16
|
void Init_gsl_blas1(VALUE module);
|
18
17
|
void Init_gsl_blas2(VALUE module);
|
data/ext/{blas1.c → gsl/blas1.c}
RENAMED
@@ -8,12 +8,11 @@
|
|
8
8
|
This library is distributed in the hope that it will be useful, but
|
9
9
|
WITHOUT ANY WARRANTY.
|
10
10
|
*/
|
11
|
-
#include "rb_gsl_config.h"
|
12
11
|
|
13
12
|
#include <gsl/gsl_blas.h>
|
14
|
-
#include "rb_gsl_complex.h"
|
15
|
-
#include "rb_gsl_array.h"
|
16
|
-
#include "rb_gsl_common.h"
|
13
|
+
#include "include/rb_gsl_complex.h"
|
14
|
+
#include "include/rb_gsl_array.h"
|
15
|
+
#include "include/rb_gsl_common.h"
|
17
16
|
|
18
17
|
static int get_vector1(int argc, VALUE *argv, VALUE obj, gsl_vector **x);
|
19
18
|
static int get_vector_complex1(int argc, VALUE *argv, VALUE obj, gsl_vector_complex **x);
|
data/ext/{blas2.c → gsl/blas2.c}
RENAMED
@@ -8,12 +8,11 @@
|
|
8
8
|
This library is distributed in the hope that it will be useful, but
|
9
9
|
WITHOUT ANY WARRANTY.
|
10
10
|
*/
|
11
|
-
#include "rb_gsl_config.h"
|
12
11
|
|
13
12
|
#include <gsl/gsl_blas.h>
|
14
|
-
#include "rb_gsl_common.h"
|
15
|
-
#include "rb_gsl_complex.h"
|
16
|
-
#include "rb_gsl_array.h"
|
13
|
+
#include "include/rb_gsl_common.h"
|
14
|
+
#include "include/rb_gsl_complex.h"
|
15
|
+
#include "include/rb_gsl_array.h"
|
17
16
|
|
18
17
|
static void define_const(VALUE module);
|
19
18
|
|
data/ext/{blas3.c → gsl/blas3.c}
RENAMED
@@ -8,12 +8,11 @@
|
|
8
8
|
This library is distributed in the hope that it will be useful, but
|
9
9
|
WITHOUT ANY WARRANTY.
|
10
10
|
*/
|
11
|
-
#include "rb_gsl_config.h"
|
12
11
|
|
13
12
|
#include <gsl/gsl_blas.h>
|
14
|
-
#include "rb_gsl_common.h"
|
15
|
-
#include "rb_gsl_complex.h"
|
16
|
-
#include "rb_gsl_array.h"
|
13
|
+
#include "include/rb_gsl_common.h"
|
14
|
+
#include "include/rb_gsl_complex.h"
|
15
|
+
#include "include/rb_gsl_array.h"
|
17
16
|
|
18
17
|
static VALUE rb_gsl_blas_dgemm(int argc, VALUE *argv, VALUE obj)
|
19
18
|
{
|
data/ext/{block.c → gsl/block.c}
RENAMED
@@ -14,31 +14,30 @@
|
|
14
14
|
which are provided by the GSL source.
|
15
15
|
*/
|
16
16
|
|
17
|
-
#include "
|
18
|
-
#include "
|
19
|
-
#include "
|
20
|
-
#include "
|
21
|
-
#include "rb_gsl_poly.h"
|
17
|
+
#include "include/rb_gsl_array.h"
|
18
|
+
#include "include/rb_gsl_histogram.h"
|
19
|
+
#include "include/rb_gsl_complex.h"
|
20
|
+
#include "include/rb_gsl_poly.h"
|
22
21
|
|
23
22
|
#ifdef HAVE_NARRAY_H
|
24
|
-
#include "rb_gsl_with_narray.h"
|
23
|
+
#include "include/rb_gsl_with_narray.h"
|
25
24
|
#endif
|
26
25
|
|
27
26
|
#define BASE_DOUBLE
|
28
|
-
#include "templates_on.h"
|
27
|
+
#include "include/templates_on.h"
|
29
28
|
#include "block_source.c"
|
30
|
-
#include "templates_off.h"
|
29
|
+
#include "include/templates_off.h"
|
31
30
|
#undef BASE_DOUBLE
|
32
31
|
|
33
32
|
#define BASE_INT
|
34
|
-
#include "templates_on.h"
|
33
|
+
#include "include/templates_on.h"
|
35
34
|
#include "block_source.c"
|
36
|
-
#include "templates_off.h"
|
35
|
+
#include "include/templates_off.h"
|
37
36
|
#undef BASE_INT
|
38
37
|
|
39
38
|
#define BASE_UCHAR
|
40
|
-
#include "templates_on.h"
|
39
|
+
#include "include/templates_on.h"
|
41
40
|
#include "block_source.c"
|
42
|
-
#include "templates_off.h"
|
41
|
+
#include "include/templates_off.h"
|
43
42
|
#undef BASE_UCHAR
|
44
43
|
|
File without changes
|
File without changes
|
data/ext/{cdf.c → gsl/cdf.c}
RENAMED
@@ -9,12 +9,10 @@
|
|
9
9
|
WITHOUT ANY WARRANTY.
|
10
10
|
*/
|
11
11
|
|
12
|
-
#include "rb_gsl_config.h"
|
13
|
-
|
14
12
|
#ifdef GSL_1_4_LATER
|
15
|
-
#include "rb_gsl_array.h"
|
16
|
-
#include "rb_gsl_common.h"
|
17
|
-
#include "rb_gsl_rng.h"
|
13
|
+
#include "include/rb_gsl_array.h"
|
14
|
+
#include "include/rb_gsl_common.h"
|
15
|
+
#include "include/rb_gsl_rng.h"
|
18
16
|
#include <gsl/gsl_randist.h>
|
19
17
|
#include <gsl/gsl_cdf.h>
|
20
18
|
|
data/ext/{cheb.c → gsl/cheb.c}
RENAMED
@@ -9,10 +9,10 @@
|
|
9
9
|
WITHOUT ANY WARRANTY.
|
10
10
|
*/
|
11
11
|
|
12
|
-
#include "rb_gsl.h"
|
13
|
-
#include "rb_gsl_common.h"
|
14
|
-
#include "rb_gsl_array.h"
|
15
|
-
#include "rb_gsl_function.h"
|
12
|
+
#include "include/rb_gsl.h"
|
13
|
+
#include "include/rb_gsl_common.h"
|
14
|
+
#include "include/rb_gsl_array.h"
|
15
|
+
#include "include/rb_gsl_function.h"
|
16
16
|
#include <gsl/gsl_math.h>
|
17
17
|
#include <gsl/gsl_chebyshev.h>
|
18
18
|
#ifdef HAVE_NARRAY_H
|
@@ -9,10 +9,9 @@
|
|
9
9
|
WITHOUT ANY WARRANTY.
|
10
10
|
*/
|
11
11
|
|
12
|
-
#include "rb_gsl_config.h"
|
13
12
|
#ifdef GSL_1_1_LATER
|
14
|
-
#include "rb_gsl_common.h"
|
15
|
-
#include "rb_gsl_array.h"
|
13
|
+
#include "include/rb_gsl_common.h"
|
14
|
+
#include "include/rb_gsl_array.h"
|
16
15
|
|
17
16
|
static VALUE cgsl_combination_data;
|
18
17
|
|
@@ -9,16 +9,14 @@
|
|
9
9
|
WITHOUT ANY WARRANTY.
|
10
10
|
*/
|
11
11
|
|
12
|
-
#include "
|
13
|
-
|
14
|
-
#include "rb_gsl_array.h"
|
15
|
-
#include "rb_gsl_histogram.h"
|
12
|
+
#include "include/rb_gsl_array.h"
|
13
|
+
#include "include/rb_gsl_histogram.h"
|
16
14
|
#include <string.h>
|
17
15
|
#include <ctype.h>
|
18
16
|
|
19
17
|
FILE* rb_gsl_open_writefile(VALUE io, int *flag)
|
20
18
|
{
|
21
|
-
#ifdef
|
19
|
+
#ifdef HAVE_RUBY_IO_H
|
22
20
|
rb_io_t *fptr = NULL;
|
23
21
|
#else
|
24
22
|
OpenFile *fptr = NULL;
|
@@ -34,14 +32,14 @@ FILE* rb_gsl_open_writefile(VALUE io, int *flag)
|
|
34
32
|
case T_FILE:
|
35
33
|
GetOpenFile(io, fptr);
|
36
34
|
/*
|
37
|
-
#ifdef
|
35
|
+
#ifdef HAVE_RUBY_IO_H
|
38
36
|
name = STR2CSTR(fptr->pathv);
|
39
37
|
#else
|
40
38
|
name = fptr->path;
|
41
39
|
#endif
|
42
40
|
*/
|
43
41
|
rb_io_check_writable(fptr);
|
44
|
-
#ifdef
|
42
|
+
#ifdef HAVE_RUBY_IO_H
|
45
43
|
fp = rb_io_stdio_file(fptr);
|
46
44
|
#else
|
47
45
|
fp = GetWriteFile(fptr);
|
@@ -59,7 +57,7 @@ FILE* rb_gsl_open_writefile(VALUE io, int *flag)
|
|
59
57
|
|
60
58
|
FILE* rb_gsl_open_readfile(VALUE io, int *flag)
|
61
59
|
{
|
62
|
-
#ifdef
|
60
|
+
#ifdef HAVE_RUBY_IO_H
|
63
61
|
rb_io_t *fptr = NULL;
|
64
62
|
#else
|
65
63
|
OpenFile *fptr = NULL;
|
@@ -75,14 +73,14 @@ FILE* rb_gsl_open_readfile(VALUE io, int *flag)
|
|
75
73
|
case T_FILE:
|
76
74
|
GetOpenFile(io, fptr);
|
77
75
|
/*
|
78
|
-
#ifdef
|
76
|
+
#ifdef HAVE_RUBY_IO_H
|
79
77
|
name = STR2CSTR(fptr->pathv);
|
80
78
|
#else
|
81
79
|
name = fptr->path;
|
82
80
|
#endif
|
83
81
|
*/
|
84
82
|
rb_io_check_readable(fptr);
|
85
|
-
#ifdef
|
83
|
+
#ifdef HAVE_RUBY_IO_H
|
86
84
|
fp = rb_io_stdio_file(fptr);
|
87
85
|
#else
|
88
86
|
fp = fptr->f;
|
@@ -9,9 +9,9 @@
|
|
9
9
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
10
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
11
11
|
*/
|
12
|
-
|
13
|
-
#include "rb_gsl_complex.h"
|
14
|
-
#include "rb_gsl_array.h"
|
12
|
+
|
13
|
+
#include "include/rb_gsl_complex.h"
|
14
|
+
#include "include/rb_gsl_array.h"
|
15
15
|
|
16
16
|
VALUE cgsl_complex;
|
17
17
|
|
data/ext/{const.c → gsl/const.c}
RENAMED
@@ -9,15 +9,14 @@
|
|
9
9
|
WITHOUT ANY WARRANTY.
|
10
10
|
*/
|
11
11
|
|
12
|
-
#include "
|
13
|
-
#include "rb_gsl_const.h"
|
12
|
+
#include "include/rb_gsl_const.h"
|
14
13
|
|
15
14
|
static void rb_gsl_const_mks(VALUE module);
|
16
15
|
static void rb_gsl_const_cgs(VALUE module);
|
17
16
|
static void rb_gsl_const_num(VALUE module);
|
18
17
|
void Init_gsl_const_additional(VALUE mmks, VALUE mcgs, VALUE mnum);
|
19
18
|
|
20
|
-
#
|
19
|
+
#ifndef GSL_1_4_LATER
|
21
20
|
static void rb_gsl_const_mks(VALUE module)
|
22
21
|
{
|
23
22
|
rb_define_const(module, "SPEED_OF_LIGHT",
|
@@ -8,8 +8,8 @@
|
|
8
8
|
This library is distributed in the hope that it will be useful, but
|
9
9
|
WITHOUT ANY WARRANTY.
|
10
10
|
*/
|
11
|
-
|
12
|
-
#include "rb_gsl_const.h"
|
11
|
+
|
12
|
+
#include "include/rb_gsl_const.h"
|
13
13
|
|
14
14
|
#ifndef GSL_1_4_9_LATER
|
15
15
|
#define MKS_STEFAN_BOLTZMANN_CONSTANT (5.6703993443638e-08)
|
data/ext/{cqp.c → gsl/cqp.c}
RENAMED
data/ext/{deriv.c → gsl/deriv.c}
RENAMED
@@ -8,10 +8,10 @@
|
|
8
8
|
This library is distributed in the hope that it will be useful, but
|
9
9
|
WITHOUT ANY WARRANTY.
|
10
10
|
*/
|
11
|
-
|
11
|
+
|
12
12
|
#ifdef GSL_1_4_9_LATER
|
13
|
-
#include "rb_gsl_common.h"
|
14
|
-
#include "rb_gsl_function.h"
|
13
|
+
#include "include/rb_gsl_common.h"
|
14
|
+
#include "include/rb_gsl_function.h"
|
15
15
|
#include <gsl/gsl_math.h>
|
16
16
|
#include <gsl/gsl_deriv.h>
|
17
17
|
#define RB_GSL_DERIV_H_DEFAULT (1e-8)
|