numo-gsl-integration 0.1.0 → 0.3.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +28 -6
- data/README.md +19 -24
- data/docs/error-handling.md +8 -14
- data/docs/routines.md +318 -214
- data/ext/numo/gsl/integration/callback.c +3 -4
- data/ext/numo/gsl/integration/cquad.c +1 -0
- data/ext/numo/gsl/integration/fixed.c +163 -0
- data/ext/numo/gsl/integration/glfixed.c +14 -3
- data/ext/numo/gsl/integration/integration.c +12 -0
- data/ext/numo/gsl/integration/integration_internal.h +3 -1
- data/ext/numo/gsl/integration/qagi.c +1 -0
- data/ext/numo/gsl/integration/qagil.c +8 -0
- data/ext/numo/gsl/integration/qagiu.c +8 -0
- data/ext/numo/gsl/integration/qagp.c +21 -9
- data/ext/numo/gsl/integration/qags.c +1 -0
- data/ext/numo/gsl/integration/qawc.c +8 -0
- data/ext/numo/gsl/integration/qawf.c +3 -0
- data/ext/numo/gsl/integration/qawo.c +3 -0
- data/ext/numo/gsl/integration/qaws.c +6 -0
- data/ext/numo/gsl/integration/romberg.c +1 -0
- data/lib/numo/gsl/integration/version.rb +1 -1
- data/lib/numo/gsl/integration.rb +0 -12
- data/sig/numo/gsl/integration.rbs +8 -18
- data/sig/numo/gsl.rbs +1 -1
- metadata +3 -22
|
@@ -2,10 +2,6 @@ module Numo
|
|
|
2
2
|
module GSL
|
|
3
3
|
module Integration
|
|
4
4
|
VERSION: String
|
|
5
|
-
|
|
6
|
-
class Error < ::Numo::GSL::GslError
|
|
7
|
-
end
|
|
8
|
-
|
|
9
5
|
GAUSS15: Integer
|
|
10
6
|
GAUSS21: Integer
|
|
11
7
|
GAUSS31: Integer
|
|
@@ -14,7 +10,6 @@ module Numo
|
|
|
14
10
|
GAUSS61: Integer
|
|
15
11
|
COSINE: Integer
|
|
16
12
|
SINE: Integer
|
|
17
|
-
|
|
18
13
|
def self.qag: (
|
|
19
14
|
Numeric a,
|
|
20
15
|
Numeric b,
|
|
@@ -23,14 +18,12 @@ module Numo
|
|
|
23
18
|
?limit: Integer,
|
|
24
19
|
?key: Integer
|
|
25
20
|
) { (Float) -> Numeric } -> [Float, Float]
|
|
26
|
-
|
|
27
21
|
def self.qng: (
|
|
28
22
|
Numeric a,
|
|
29
23
|
Numeric b,
|
|
30
24
|
?epsabs: Numeric,
|
|
31
25
|
?epsrel: Numeric
|
|
32
26
|
) { (Float) -> Numeric } -> [Float, Float, Integer]
|
|
33
|
-
|
|
34
27
|
def self.qags: (
|
|
35
28
|
Numeric a,
|
|
36
29
|
Numeric b,
|
|
@@ -38,34 +31,29 @@ module Numo
|
|
|
38
31
|
?epsrel: Numeric,
|
|
39
32
|
?limit: Integer
|
|
40
33
|
) { (Float) -> Numeric } -> [Float, Float]
|
|
41
|
-
|
|
42
34
|
def self.qagp: (
|
|
43
35
|
Array[Numeric] points,
|
|
44
36
|
?epsabs: Numeric,
|
|
45
37
|
?epsrel: Numeric,
|
|
46
38
|
?limit: Integer
|
|
47
39
|
) { (Float) -> Numeric } -> [Float, Float]
|
|
48
|
-
|
|
49
40
|
def self.qagi: (
|
|
50
41
|
?epsabs: Numeric,
|
|
51
42
|
?epsrel: Numeric,
|
|
52
43
|
?limit: Integer
|
|
53
44
|
) { (Float) -> Numeric } -> [Float, Float]
|
|
54
|
-
|
|
55
45
|
def self.qagiu: (
|
|
56
46
|
Numeric a,
|
|
57
47
|
?epsabs: Numeric,
|
|
58
48
|
?epsrel: Numeric,
|
|
59
49
|
?limit: Integer
|
|
60
50
|
) { (Float) -> Numeric } -> [Float, Float]
|
|
61
|
-
|
|
62
51
|
def self.qagil: (
|
|
63
52
|
Numeric b,
|
|
64
53
|
?epsabs: Numeric,
|
|
65
54
|
?epsrel: Numeric,
|
|
66
55
|
?limit: Integer
|
|
67
56
|
) { (Float) -> Numeric } -> [Float, Float]
|
|
68
|
-
|
|
69
57
|
def self.qawc: (
|
|
70
58
|
Numeric a,
|
|
71
59
|
Numeric b,
|
|
@@ -74,7 +62,6 @@ module Numo
|
|
|
74
62
|
?epsrel: Numeric,
|
|
75
63
|
?limit: Integer
|
|
76
64
|
) { (Float) -> Numeric } -> [Float, Float]
|
|
77
|
-
|
|
78
65
|
def self.qaws: (
|
|
79
66
|
Numeric a,
|
|
80
67
|
Numeric b,
|
|
@@ -86,7 +73,6 @@ module Numo
|
|
|
86
73
|
?epsrel: Numeric,
|
|
87
74
|
?limit: Integer
|
|
88
75
|
) { (Float) -> Numeric } -> [Float, Float]
|
|
89
|
-
|
|
90
76
|
def self.qawo: (
|
|
91
77
|
Numeric a,
|
|
92
78
|
Numeric b,
|
|
@@ -96,7 +82,6 @@ module Numo
|
|
|
96
82
|
?epsrel: Numeric,
|
|
97
83
|
?limit: Integer
|
|
98
84
|
) { (Float) -> Numeric } -> [Float, Float]
|
|
99
|
-
|
|
100
85
|
def self.qawf: (
|
|
101
86
|
Numeric a,
|
|
102
87
|
Numeric omega,
|
|
@@ -104,7 +89,6 @@ module Numo
|
|
|
104
89
|
?epsabs: Numeric,
|
|
105
90
|
?limit: Integer
|
|
106
91
|
) { (Float) -> Numeric } -> [Float, Float]
|
|
107
|
-
|
|
108
92
|
def self.cquad: (
|
|
109
93
|
Numeric a,
|
|
110
94
|
Numeric b,
|
|
@@ -112,7 +96,6 @@ module Numo
|
|
|
112
96
|
?epsrel: Numeric,
|
|
113
97
|
?limit: Integer
|
|
114
98
|
) { (Float) -> Numeric } -> [Float, Float, Integer]
|
|
115
|
-
|
|
116
99
|
def self.romberg: (
|
|
117
100
|
Numeric a,
|
|
118
101
|
Numeric b,
|
|
@@ -120,12 +103,19 @@ module Numo
|
|
|
120
103
|
?epsrel: Numeric,
|
|
121
104
|
?limit: Integer
|
|
122
105
|
) { (Float) -> Numeric } -> [Float, Integer]
|
|
123
|
-
|
|
124
106
|
def self.glfixed: (
|
|
125
107
|
Numeric a,
|
|
126
108
|
Numeric b,
|
|
127
109
|
?order: Integer
|
|
128
110
|
) { (Float) -> Numeric } -> Float
|
|
111
|
+
def self.fixed: (
|
|
112
|
+
(:legendre | :chebyshev | :chebyshev2 | :gegenbauer | :jacobi | :laguerre | :hermite | :exponential | :rational) type,
|
|
113
|
+
order: Integer,
|
|
114
|
+
a: Numeric,
|
|
115
|
+
b: Numeric,
|
|
116
|
+
?alpha: Numeric,
|
|
117
|
+
?beta: Numeric
|
|
118
|
+
) { (Float) -> Numeric } -> Float
|
|
129
119
|
end
|
|
130
120
|
end
|
|
131
121
|
end
|
data/sig/numo/gsl.rbs
CHANGED
metadata
CHANGED
|
@@ -1,34 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: numo-gsl-integration
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Takahiro SATOH
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
-
dependencies:
|
|
12
|
-
- !ruby/object:Gem::Dependency
|
|
13
|
-
name: numo-gsl-alt
|
|
14
|
-
requirement: !ruby/object:Gem::Requirement
|
|
15
|
-
requirements:
|
|
16
|
-
- - ">="
|
|
17
|
-
- !ruby/object:Gem::Version
|
|
18
|
-
version: 0.1.3
|
|
19
|
-
- - "<"
|
|
20
|
-
- !ruby/object:Gem::Version
|
|
21
|
-
version: '0.2'
|
|
22
|
-
type: :runtime
|
|
23
|
-
prerelease: false
|
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
-
requirements:
|
|
26
|
-
- - ">="
|
|
27
|
-
- !ruby/object:Gem::Version
|
|
28
|
-
version: 0.1.3
|
|
29
|
-
- - "<"
|
|
30
|
-
- !ruby/object:Gem::Version
|
|
31
|
-
version: '0.2'
|
|
11
|
+
dependencies: []
|
|
32
12
|
description: Provides GNU Scientific Library numerical integration routines under
|
|
33
13
|
Numo::GSL::Integration.
|
|
34
14
|
email:
|
|
@@ -47,6 +27,7 @@ files:
|
|
|
47
27
|
- ext/numo/gsl/integration/callback.c
|
|
48
28
|
- ext/numo/gsl/integration/cquad.c
|
|
49
29
|
- ext/numo/gsl/integration/extconf.rb
|
|
30
|
+
- ext/numo/gsl/integration/fixed.c
|
|
50
31
|
- ext/numo/gsl/integration/glfixed.c
|
|
51
32
|
- ext/numo/gsl/integration/integration.c
|
|
52
33
|
- ext/numo/gsl/integration/integration_internal.h
|