numo-gsl-integration 0.4.0 → 0.5.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.
@@ -10,13 +10,61 @@ module Numo
10
10
  GAUSS61: Integer
11
11
  COSINE: Integer
12
12
  SINE: Integer
13
+ class Workspace
14
+ def self.open: [T] (limit: Integer) { (Workspace) -> T } -> T
15
+ def initialize: (limit: Integer) -> void
16
+ def limit: () -> Integer
17
+ def close: () -> nil
18
+ def closed?: () -> bool
19
+ end
20
+ class QAWOTable
21
+ def self.open: [T] (
22
+ omega: Numeric,
23
+ length: Numeric,
24
+ sine: Integer,
25
+ levels: Integer
26
+ ) { (QAWOTable) -> T } -> T
27
+ def initialize: (
28
+ omega: Numeric,
29
+ length: Numeric,
30
+ sine: Integer,
31
+ levels: Integer
32
+ ) -> void
33
+ def omega: () -> Float
34
+ def length: () -> Float
35
+ def sine: () -> Integer
36
+ def levels: () -> Integer
37
+ def close: () -> nil
38
+ def closed?: () -> bool
39
+ end
40
+ class QAWSTable
41
+ def self.open: [T] (
42
+ alpha: Numeric,
43
+ beta: Numeric,
44
+ mu: Integer,
45
+ nu: Integer
46
+ ) { (QAWSTable) -> T } -> T
47
+ def initialize: (
48
+ alpha: Numeric,
49
+ beta: Numeric,
50
+ mu: Integer,
51
+ nu: Integer
52
+ ) -> void
53
+ def alpha: () -> Float
54
+ def beta: () -> Float
55
+ def mu: () -> Integer
56
+ def nu: () -> Integer
57
+ def close: () -> nil
58
+ def closed?: () -> bool
59
+ end
13
60
  def self.qag: (
14
61
  Numeric a,
15
62
  Numeric b,
16
63
  ?epsabs: Numeric,
17
64
  ?epsrel: Numeric,
18
65
  ?limit: Integer,
19
- ?key: Integer
66
+ ?key: Integer,
67
+ ?workspace: Workspace
20
68
  ) { (Float) -> Numeric } -> [Float, Float]
21
69
  def self.qng: (
22
70
  Numeric a,
@@ -29,30 +77,35 @@ module Numo
29
77
  Numeric b,
30
78
  ?epsabs: Numeric,
31
79
  ?epsrel: Numeric,
32
- ?limit: Integer
80
+ ?limit: Integer,
81
+ ?workspace: Workspace
33
82
  ) { (Float) -> Numeric } -> [Float, Float]
34
83
  def self.qagp: (
35
84
  Array[Numeric] points,
36
85
  ?epsabs: Numeric,
37
86
  ?epsrel: Numeric,
38
- ?limit: Integer
87
+ ?limit: Integer,
88
+ ?workspace: Workspace
39
89
  ) { (Float) -> Numeric } -> [Float, Float]
40
90
  def self.qagi: (
41
91
  ?epsabs: Numeric,
42
92
  ?epsrel: Numeric,
43
- ?limit: Integer
93
+ ?limit: Integer,
94
+ ?workspace: Workspace
44
95
  ) { (Float) -> Numeric } -> [Float, Float]
45
96
  def self.qagiu: (
46
97
  Numeric a,
47
98
  ?epsabs: Numeric,
48
99
  ?epsrel: Numeric,
49
- ?limit: Integer
100
+ ?limit: Integer,
101
+ ?workspace: Workspace
50
102
  ) { (Float) -> Numeric } -> [Float, Float]
51
103
  def self.qagil: (
52
104
  Numeric b,
53
105
  ?epsabs: Numeric,
54
106
  ?epsrel: Numeric,
55
- ?limit: Integer
107
+ ?limit: Integer,
108
+ ?workspace: Workspace
56
109
  ) { (Float) -> Numeric } -> [Float, Float]
57
110
  def self.qawc: (
58
111
  Numeric a,
@@ -60,7 +113,8 @@ module Numo
60
113
  Numeric c,
61
114
  ?epsabs: Numeric,
62
115
  ?epsrel: Numeric,
63
- ?limit: Integer
116
+ ?limit: Integer,
117
+ ?workspace: Workspace
64
118
  ) { (Float) -> Numeric } -> [Float, Float]
65
119
  def self.qaws: (
66
120
  Numeric a,
@@ -71,7 +125,9 @@ module Numo
71
125
  Integer nu,
72
126
  ?epsabs: Numeric,
73
127
  ?epsrel: Numeric,
74
- ?limit: Integer
128
+ ?limit: Integer,
129
+ ?workspace: Workspace,
130
+ ?table: QAWSTable
75
131
  ) { (Float) -> Numeric } -> [Float, Float]
76
132
  def self.qawo: (
77
133
  Numeric a,
@@ -80,7 +136,9 @@ module Numo
80
136
  Integer sine,
81
137
  ?epsabs: Numeric,
82
138
  ?epsrel: Numeric,
83
- ?limit: Integer
139
+ ?limit: Integer,
140
+ ?workspace: Workspace,
141
+ ?table: QAWOTable
84
142
  ) { (Float) -> Numeric } -> [Float, Float]
85
143
  def self.qawf: (
86
144
  Numeric a,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: numo-gsl-integration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiro SATOH
@@ -42,10 +42,13 @@ files:
42
42
  - ext/numo/gsl/integration/qawc.c
43
43
  - ext/numo/gsl/integration/qawf.c
44
44
  - ext/numo/gsl/integration/qawo.c
45
+ - ext/numo/gsl/integration/qawo_table.c
45
46
  - ext/numo/gsl/integration/qaws.c
47
+ - ext/numo/gsl/integration/qaws_table.c
46
48
  - ext/numo/gsl/integration/qng.c
47
49
  - ext/numo/gsl/integration/resources.c
48
50
  - ext/numo/gsl/integration/romberg.c
51
+ - ext/numo/gsl/integration/workspace.c
49
52
  - lib/numo/gsl/integration.rb
50
53
  - lib/numo/gsl/integration/version.rb
51
54
  - sig/numo/gsl.rbs