gsl 1.16.0.6 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +5 -13
  3. data/ChangeLog +6 -0
  4. data/Gemfile +1 -0
  5. data/README.md +77 -1
  6. data/Rakefile +7 -1
  7. data/examples/linalg/QR_solve_narray.rb +2 -1
  8. data/examples/linalg/SV_narray.rb +10 -0
  9. data/examples/linalg/chol_narray.rb +3 -0
  10. data/examples/wavelet/wavelet1.rb +4 -2
  11. data/ext/gsl_native/array.c +10 -0
  12. data/ext/gsl_native/bspline.c +15 -2
  13. data/ext/gsl_native/cheb.c +76 -10
  14. data/ext/gsl_native/common.c +33 -0
  15. data/ext/gsl_native/dht.c +26 -0
  16. data/ext/gsl_native/eigen.c +129 -0
  17. data/ext/gsl_native/extconf.rb +60 -6
  18. data/ext/gsl_native/fft.c +42 -0
  19. data/ext/gsl_native/function.c +18 -0
  20. data/ext/gsl_native/gsl.c +5 -0
  21. data/ext/gsl_native/gsl_nmatrix.c +204 -0
  22. data/ext/gsl_native/histogram.c +42 -0
  23. data/ext/gsl_native/include/rb_gsl.h +4 -0
  24. data/ext/gsl_native/include/rb_gsl_array.h +4 -0
  25. data/ext/gsl_native/include/rb_gsl_common.h +5 -0
  26. data/ext/gsl_native/include/rb_gsl_interp.h +4 -0
  27. data/ext/gsl_native/include/rb_gsl_with_nmatrix.h +28 -0
  28. data/ext/gsl_native/interp.c +14 -0
  29. data/ext/gsl_native/linalg.c +414 -22
  30. data/ext/gsl_native/math.c +64 -0
  31. data/ext/gsl_native/multifit.c +61 -0
  32. data/ext/gsl_native/randist.c +42 -0
  33. data/ext/gsl_native/sf.c +6 -0
  34. data/ext/gsl_native/sf_ellint.c +4 -4
  35. data/ext/gsl_native/sf_mathieu.c +48 -0
  36. data/ext/gsl_native/spline.c +30 -0
  37. data/ext/gsl_native/tamu_anova.c +1 -1
  38. data/gsl.gemspec +8 -1
  39. data/lib/gsl.rb +5 -0
  40. data/lib/gsl/version.rb +1 -1
  41. data/rdoc/nmatrix.rdoc +129 -0
  42. data/rdoc/ref.rdoc +1 -0
  43. data/test.sh +21 -0
  44. data/test/gsl/bspline_test.rb +15 -14
  45. data/test/gsl/combination_test.rb +17 -6
  46. data/test/gsl/dht_test.rb +42 -33
  47. data/test/gsl/nmatrix_tests/nmatrix_cheb_test.rb +34 -0
  48. data/test/gsl/nmatrix_tests/nmatrix_eigen_test.rb +28 -0
  49. data/test/gsl/nmatrix_tests/nmatrix_gsl_test.rb +65 -0
  50. data/test/gsl/nmatrix_tests/nmatrix_interp_test.rb +45 -0
  51. data/test/gsl/nmatrix_tests/nmatrix_linalg_test.rb +100 -0
  52. data/test/gsl/nmatrix_tests/nmatrix_stats_test.rb +88 -0
  53. data/test/gsl/nmatrix_tests/nmatrix_wavelet_test.rb +5 -0
  54. data/test/gsl/randist_test.rb +43 -23
  55. data/test/test_helper.rb +30 -2
  56. metadata +191 -51
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.0.6
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshiki Tsunesada
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-07-03 00:00:00.000000000 Z
14
+ date: 2016-03-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake-compiler
@@ -55,6 +55,20 @@ dependencies:
55
55
  - - ">="
56
56
  - !ruby/object:Gem::Version
57
57
  version: '0'
58
+ - !ruby/object:Gem::Dependency
59
+ name: bundler
60
+ requirement: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - "~>"
63
+ - !ruby/object:Gem::Version
64
+ version: '1.11'
65
+ type: :development
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - "~>"
70
+ - !ruby/object:Gem::Version
71
+ version: '1.11'
58
72
  description: Ruby/GSL is a Ruby interface to the GNU Scientific Library, for numerical
59
73
  computing with Ruby
60
74
  email: mail@daniel-mendler.de
@@ -62,61 +76,118 @@ executables: []
62
76
  extensions:
63
77
  - ext/gsl_native/extconf.rb
64
78
  extra_rdoc_files:
65
- - rdoc/start.rdoc
66
- - rdoc/monte.rdoc
79
+ - rdoc/linalg.rdoc
80
+ - rdoc/narray.rdoc
81
+ - rdoc/multiroot.rdoc
82
+ - rdoc/function.rdoc
83
+ - rdoc/ref.rdoc
84
+ - rdoc/stats.rdoc
67
85
  - rdoc/hist3d.rdoc
68
- - rdoc/ntuple.rdoc
69
- - rdoc/ndlinear.rdoc
86
+ - rdoc/sf.rdoc
87
+ - rdoc/monte.rdoc
88
+ - rdoc/tut.rdoc
89
+ - rdoc/bspline.rdoc
90
+ - rdoc/integration.rdoc
91
+ - rdoc/multimin.rdoc
70
92
  - rdoc/complex.rdoc
71
- - rdoc/dht.rdoc
72
- - rdoc/odeiv.rdoc
73
- - rdoc/perm.rdoc
74
- - rdoc/const.rdoc
75
- - rdoc/nonlinearfit.rdoc
76
- - rdoc/tensor.rdoc
77
- - rdoc/linalg_complex.rdoc
78
- - rdoc/eigen.rdoc
93
+ - rdoc/combi.rdoc
94
+ - rdoc/changes.rdoc
95
+ - rdoc/sort.rdoc
96
+ - rdoc/interp.rdoc
97
+ - rdoc/randist.rdoc
98
+ - rdoc/roots.rdoc
99
+ - rdoc/vector_complex.rdoc
100
+ - rdoc/math.rdoc
79
101
  - rdoc/siman.rdoc
80
- - rdoc/function.rdoc
81
- - rdoc/min.rdoc
102
+ - rdoc/alf.rdoc
103
+ - rdoc/graph.rdoc
104
+ - rdoc/poly.rdoc
105
+ - rdoc/hist.rdoc
82
106
  - rdoc/cholesky_complex.rdoc
107
+ - rdoc/fft.rdoc
108
+ - rdoc/rng.rdoc
109
+ - rdoc/nonlinearfit.rdoc
110
+ - rdoc/const.rdoc
83
111
  - rdoc/qrng.rdoc
84
- - rdoc/multiroot.rdoc
85
- - rdoc/blas.rdoc
86
- - rdoc/wavelet.rdoc
87
- - rdoc/hist.rdoc
88
- - rdoc/math.rdoc
89
- - rdoc/sum.rdoc
90
- - rdoc/sf.rdoc
91
- - rdoc/intro.rdoc
92
- - rdoc/linalg.rdoc
93
- - rdoc/randist.rdoc
94
- - rdoc/tut.rdoc
112
+ - rdoc/ndlinear.rdoc
113
+ - rdoc/linalg_complex.rdoc
114
+ - rdoc/tensor.rdoc
95
115
  - rdoc/matrix.rdoc
116
+ - rdoc/fit.rdoc
117
+ - rdoc/start.rdoc
118
+ - rdoc/dht.rdoc
119
+ - rdoc/nmatrix.rdoc
96
120
  - rdoc/cheb.rdoc
97
- - rdoc/rng.rdoc
98
- - rdoc/vector_complex.rdoc
99
- - rdoc/integration.rdoc
100
- - rdoc/changes.rdoc
101
- - rdoc/bspline.rdoc
102
- - rdoc/graph.rdoc
103
- - rdoc/alf.rdoc
104
- - rdoc/hist2d.rdoc
105
- - rdoc/narray.rdoc
106
- - rdoc/ref.rdoc
121
+ - rdoc/intro.rdoc
122
+ - rdoc/perm.rdoc
123
+ - rdoc/wavelet.rdoc
124
+ - rdoc/odeiv.rdoc
107
125
  - rdoc/vector.rdoc
126
+ - rdoc/min.rdoc
127
+ - rdoc/eigen.rdoc
128
+ - rdoc/ehandling.rdoc
129
+ - rdoc/ntuple.rdoc
130
+ - rdoc/hist2d.rdoc
131
+ - rdoc/blas.rdoc
108
132
  - rdoc/diff.rdoc
109
- - rdoc/stats.rdoc
110
- - rdoc/interp.rdoc
111
- - rdoc/multimin.rdoc
112
- - rdoc/poly.rdoc
113
- - rdoc/roots.rdoc
133
+ - rdoc/sum.rdoc
114
134
  - rdoc/use.rdoc
115
- - rdoc/combi.rdoc
116
- - rdoc/fit.rdoc
117
- - rdoc/sort.rdoc
118
- - rdoc/fft.rdoc
119
- - rdoc/ehandling.rdoc
135
+ - tmp/i686-linux/stage/rdoc/linalg.rdoc
136
+ - tmp/i686-linux/stage/rdoc/narray.rdoc
137
+ - tmp/i686-linux/stage/rdoc/multiroot.rdoc
138
+ - tmp/i686-linux/stage/rdoc/function.rdoc
139
+ - tmp/i686-linux/stage/rdoc/ref.rdoc
140
+ - tmp/i686-linux/stage/rdoc/stats.rdoc
141
+ - tmp/i686-linux/stage/rdoc/hist3d.rdoc
142
+ - tmp/i686-linux/stage/rdoc/sf.rdoc
143
+ - tmp/i686-linux/stage/rdoc/monte.rdoc
144
+ - tmp/i686-linux/stage/rdoc/tut.rdoc
145
+ - tmp/i686-linux/stage/rdoc/bspline.rdoc
146
+ - tmp/i686-linux/stage/rdoc/integration.rdoc
147
+ - tmp/i686-linux/stage/rdoc/multimin.rdoc
148
+ - tmp/i686-linux/stage/rdoc/complex.rdoc
149
+ - tmp/i686-linux/stage/rdoc/combi.rdoc
150
+ - tmp/i686-linux/stage/rdoc/changes.rdoc
151
+ - tmp/i686-linux/stage/rdoc/sort.rdoc
152
+ - tmp/i686-linux/stage/rdoc/interp.rdoc
153
+ - tmp/i686-linux/stage/rdoc/randist.rdoc
154
+ - tmp/i686-linux/stage/rdoc/roots.rdoc
155
+ - tmp/i686-linux/stage/rdoc/vector_complex.rdoc
156
+ - tmp/i686-linux/stage/rdoc/math.rdoc
157
+ - tmp/i686-linux/stage/rdoc/siman.rdoc
158
+ - tmp/i686-linux/stage/rdoc/alf.rdoc
159
+ - tmp/i686-linux/stage/rdoc/graph.rdoc
160
+ - tmp/i686-linux/stage/rdoc/poly.rdoc
161
+ - tmp/i686-linux/stage/rdoc/hist.rdoc
162
+ - tmp/i686-linux/stage/rdoc/cholesky_complex.rdoc
163
+ - tmp/i686-linux/stage/rdoc/fft.rdoc
164
+ - tmp/i686-linux/stage/rdoc/rng.rdoc
165
+ - tmp/i686-linux/stage/rdoc/nonlinearfit.rdoc
166
+ - tmp/i686-linux/stage/rdoc/const.rdoc
167
+ - tmp/i686-linux/stage/rdoc/qrng.rdoc
168
+ - tmp/i686-linux/stage/rdoc/ndlinear.rdoc
169
+ - tmp/i686-linux/stage/rdoc/linalg_complex.rdoc
170
+ - tmp/i686-linux/stage/rdoc/tensor.rdoc
171
+ - tmp/i686-linux/stage/rdoc/matrix.rdoc
172
+ - tmp/i686-linux/stage/rdoc/fit.rdoc
173
+ - tmp/i686-linux/stage/rdoc/start.rdoc
174
+ - tmp/i686-linux/stage/rdoc/dht.rdoc
175
+ - tmp/i686-linux/stage/rdoc/nmatrix.rdoc
176
+ - tmp/i686-linux/stage/rdoc/cheb.rdoc
177
+ - tmp/i686-linux/stage/rdoc/intro.rdoc
178
+ - tmp/i686-linux/stage/rdoc/perm.rdoc
179
+ - tmp/i686-linux/stage/rdoc/wavelet.rdoc
180
+ - tmp/i686-linux/stage/rdoc/odeiv.rdoc
181
+ - tmp/i686-linux/stage/rdoc/vector.rdoc
182
+ - tmp/i686-linux/stage/rdoc/min.rdoc
183
+ - tmp/i686-linux/stage/rdoc/eigen.rdoc
184
+ - tmp/i686-linux/stage/rdoc/ehandling.rdoc
185
+ - tmp/i686-linux/stage/rdoc/ntuple.rdoc
186
+ - tmp/i686-linux/stage/rdoc/hist2d.rdoc
187
+ - tmp/i686-linux/stage/rdoc/blas.rdoc
188
+ - tmp/i686-linux/stage/rdoc/diff.rdoc
189
+ - tmp/i686-linux/stage/rdoc/sum.rdoc
190
+ - tmp/i686-linux/stage/rdoc/use.rdoc
120
191
  files:
121
192
  - ".gitignore"
122
193
  - ".travis.yml"
@@ -508,6 +579,7 @@ files:
508
579
  - ext/gsl_native/graph.c
509
580
  - ext/gsl_native/gsl.c
510
581
  - ext/gsl_native/gsl_narray.c
582
+ - ext/gsl_native/gsl_nmatrix.c
511
583
  - ext/gsl_native/histogram.c
512
584
  - ext/gsl_native/histogram2d.c
513
585
  - ext/gsl_native/histogram3d.c
@@ -542,6 +614,7 @@ files:
542
614
  - ext/gsl_native/include/rb_gsl_statistics.h
543
615
  - ext/gsl_native/include/rb_gsl_tensor.h
544
616
  - ext/gsl_native/include/rb_gsl_with_narray.h
617
+ - ext/gsl_native/include/rb_gsl_with_nmatrix.h
545
618
  - ext/gsl_native/include/templates_off.h
546
619
  - ext/gsl_native/include/templates_on.h
547
620
  - ext/gsl_native/integration.c
@@ -663,6 +736,7 @@ files:
663
736
  - rdoc/multiroot.rdoc
664
737
  - rdoc/narray.rdoc
665
738
  - rdoc/ndlinear.rdoc
739
+ - rdoc/nmatrix.rdoc
666
740
  - rdoc/nonlinearfit.rdoc
667
741
  - rdoc/ntuple.rdoc
668
742
  - rdoc/odeiv.rdoc
@@ -685,6 +759,7 @@ files:
685
759
  - rdoc/vector.rdoc
686
760
  - rdoc/vector_complex.rdoc
687
761
  - rdoc/wavelet.rdoc
762
+ - test.sh
688
763
  - test/gsl/blas_test.rb
689
764
  - test/gsl/bspline_test.rb
690
765
  - test/gsl/cdf_test.rb
@@ -711,6 +786,13 @@ files:
711
786
  - test/gsl/multimin_test.rb
712
787
  - test/gsl/multiroot_test.rb
713
788
  - test/gsl/multiset_test.rb
789
+ - test/gsl/nmatrix_tests/nmatrix_cheb_test.rb
790
+ - test/gsl/nmatrix_tests/nmatrix_eigen_test.rb
791
+ - test/gsl/nmatrix_tests/nmatrix_gsl_test.rb
792
+ - test/gsl/nmatrix_tests/nmatrix_interp_test.rb
793
+ - test/gsl/nmatrix_tests/nmatrix_linalg_test.rb
794
+ - test/gsl/nmatrix_tests/nmatrix_stats_test.rb
795
+ - test/gsl/nmatrix_tests/nmatrix_wavelet_test.rb
714
796
  - test/gsl/odeiv_test.rb
715
797
  - test/gsl/oper_test.rb
716
798
  - test/gsl/poly_test.rb
@@ -727,16 +809,74 @@ files:
727
809
  - test/gsl/wavelet_test.rb
728
810
  - test/gsl_test.rb
729
811
  - test/test_helper.rb
812
+ - tmp/i686-linux/stage/rdoc/alf.rdoc
813
+ - tmp/i686-linux/stage/rdoc/blas.rdoc
814
+ - tmp/i686-linux/stage/rdoc/bspline.rdoc
815
+ - tmp/i686-linux/stage/rdoc/changes.rdoc
816
+ - tmp/i686-linux/stage/rdoc/cheb.rdoc
817
+ - tmp/i686-linux/stage/rdoc/cholesky_complex.rdoc
818
+ - tmp/i686-linux/stage/rdoc/combi.rdoc
819
+ - tmp/i686-linux/stage/rdoc/complex.rdoc
820
+ - tmp/i686-linux/stage/rdoc/const.rdoc
821
+ - tmp/i686-linux/stage/rdoc/dht.rdoc
822
+ - tmp/i686-linux/stage/rdoc/diff.rdoc
823
+ - tmp/i686-linux/stage/rdoc/ehandling.rdoc
824
+ - tmp/i686-linux/stage/rdoc/eigen.rdoc
825
+ - tmp/i686-linux/stage/rdoc/fft.rdoc
826
+ - tmp/i686-linux/stage/rdoc/fit.rdoc
827
+ - tmp/i686-linux/stage/rdoc/function.rdoc
828
+ - tmp/i686-linux/stage/rdoc/graph.rdoc
829
+ - tmp/i686-linux/stage/rdoc/hist.rdoc
830
+ - tmp/i686-linux/stage/rdoc/hist2d.rdoc
831
+ - tmp/i686-linux/stage/rdoc/hist3d.rdoc
832
+ - tmp/i686-linux/stage/rdoc/integration.rdoc
833
+ - tmp/i686-linux/stage/rdoc/interp.rdoc
834
+ - tmp/i686-linux/stage/rdoc/intro.rdoc
835
+ - tmp/i686-linux/stage/rdoc/linalg.rdoc
836
+ - tmp/i686-linux/stage/rdoc/linalg_complex.rdoc
837
+ - tmp/i686-linux/stage/rdoc/math.rdoc
838
+ - tmp/i686-linux/stage/rdoc/matrix.rdoc
839
+ - tmp/i686-linux/stage/rdoc/min.rdoc
840
+ - tmp/i686-linux/stage/rdoc/monte.rdoc
841
+ - tmp/i686-linux/stage/rdoc/multimin.rdoc
842
+ - tmp/i686-linux/stage/rdoc/multiroot.rdoc
843
+ - tmp/i686-linux/stage/rdoc/narray.rdoc
844
+ - tmp/i686-linux/stage/rdoc/ndlinear.rdoc
845
+ - tmp/i686-linux/stage/rdoc/nmatrix.rdoc
846
+ - tmp/i686-linux/stage/rdoc/nonlinearfit.rdoc
847
+ - tmp/i686-linux/stage/rdoc/ntuple.rdoc
848
+ - tmp/i686-linux/stage/rdoc/odeiv.rdoc
849
+ - tmp/i686-linux/stage/rdoc/perm.rdoc
850
+ - tmp/i686-linux/stage/rdoc/poly.rdoc
851
+ - tmp/i686-linux/stage/rdoc/qrng.rdoc
852
+ - tmp/i686-linux/stage/rdoc/randist.rdoc
853
+ - tmp/i686-linux/stage/rdoc/ref.rdoc
854
+ - tmp/i686-linux/stage/rdoc/rng.rdoc
855
+ - tmp/i686-linux/stage/rdoc/roots.rdoc
856
+ - tmp/i686-linux/stage/rdoc/sf.rdoc
857
+ - tmp/i686-linux/stage/rdoc/siman.rdoc
858
+ - tmp/i686-linux/stage/rdoc/sort.rdoc
859
+ - tmp/i686-linux/stage/rdoc/start.rdoc
860
+ - tmp/i686-linux/stage/rdoc/stats.rdoc
861
+ - tmp/i686-linux/stage/rdoc/sum.rdoc
862
+ - tmp/i686-linux/stage/rdoc/tensor.rdoc
863
+ - tmp/i686-linux/stage/rdoc/tut.rdoc
864
+ - tmp/i686-linux/stage/rdoc/use.rdoc
865
+ - tmp/i686-linux/stage/rdoc/vector.rdoc
866
+ - tmp/i686-linux/stage/rdoc/vector_complex.rdoc
867
+ - tmp/i686-linux/stage/rdoc/wavelet.rdoc
730
868
  - uncrustify.cfg
731
869
  homepage: http://github.com/SciRuby/rb-gsl
732
870
  licenses:
733
871
  - GPL-2.0
734
872
  metadata: {}
735
- post_install_message: gsl can be installed with or without narray support. Please
736
- install narray before and reinstall gsl if it is missing.
873
+ post_install_message: "\n gsl can be installed with or without narray support.
874
+ Please install\n narray before and reinstall gsl if it is missing.\n\n gsl
875
+ is also now compatible with NMatrix. Please install nmatrix before\n installing
876
+ gsl.\n "
737
877
  rdoc_options:
738
878
  - "--title"
739
- - Ruby/GSL (1.16.0.6)
879
+ - Ruby/GSL (2.1.0)
740
880
  - "--charset"
741
881
  - UTF-8
742
882
  - "--line-numbers"
@@ -760,7 +900,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
760
900
  requirements:
761
901
  - GSL (http://www.gnu.org/software/gsl/)
762
902
  rubyforge_project:
763
- rubygems_version: 2.2.2
903
+ rubygems_version: 2.4.6
764
904
  signing_key:
765
905
  specification_version: 4
766
906
  summary: Ruby interface to the GNU Scientific Library