numo-gsl-integration 0.3.1 → 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.
@@ -0,0 +1,292 @@
1
+ #include "integration_internal.h"
2
+
3
+ #include <float.h>
4
+ #include <math.h>
5
+
6
+ static VALUE integration_cQAWSTable;
7
+
8
+ static int integration_qaws_table_double_equal(double left, double right) {
9
+ double scale = fmax(fabs(left), fabs(right));
10
+
11
+ return fabs(left - right) <= DBL_EPSILON * fmax(1.0, scale) * 4.0;
12
+ }
13
+
14
+ static void integration_qaws_table_free(void *data) {
15
+ integration_qaws_table *table = data;
16
+
17
+ if (table->table != NULL) {
18
+ gsl_integration_qaws_table_free(table->table);
19
+ }
20
+
21
+ xfree(table);
22
+ }
23
+
24
+ static size_t integration_qaws_table_memsize(const void *data) {
25
+ const integration_qaws_table *table = data;
26
+
27
+ if (table == NULL) {
28
+ return 0;
29
+ }
30
+
31
+ return sizeof(integration_qaws_table) +
32
+ (table->table == NULL ? 0 : sizeof(gsl_integration_qaws_table));
33
+ }
34
+
35
+ static const rb_data_type_t integration_qaws_table_type = {
36
+ .wrap_struct_name = "Numo::GSL::Integration::QAWSTable",
37
+ .function =
38
+ {
39
+ .dmark = NULL,
40
+ .dfree = integration_qaws_table_free,
41
+ .dsize = integration_qaws_table_memsize,
42
+ },
43
+ .flags = RUBY_TYPED_FREE_IMMEDIATELY,
44
+ };
45
+
46
+ static VALUE integration_qaws_table_allocate(VALUE klass) {
47
+ integration_qaws_table *table;
48
+ VALUE object = TypedData_Make_Struct(klass, integration_qaws_table,
49
+ &integration_qaws_table_type, table);
50
+
51
+ table->table = NULL;
52
+ table->alpha = 0.0;
53
+ table->beta = 0.0;
54
+ table->mu = 0;
55
+ table->nu = 0;
56
+ table->busy = 0;
57
+
58
+ return object;
59
+ }
60
+
61
+ static VALUE integration_qaws_table_initialize(int argc, VALUE *argv,
62
+ VALUE self) {
63
+ VALUE options;
64
+ VALUE alpha_value;
65
+ VALUE beta_value;
66
+ VALUE mu_value;
67
+ VALUE nu_value;
68
+ ID keywords[] = {rb_intern("alpha"), rb_intern("beta"), rb_intern("mu"),
69
+ rb_intern("nu")};
70
+ VALUE keyword_values[4];
71
+ double alpha;
72
+ double beta;
73
+ int mu;
74
+ int nu;
75
+ integration_qaws_table *table;
76
+
77
+ rb_scan_args(argc, argv, "0:", &options);
78
+
79
+ if (NIL_P(options)) {
80
+ rb_raise(rb_eArgError, "missing keywords: :alpha, :beta, :mu, :nu");
81
+ }
82
+
83
+ rb_get_kwargs(options, keywords, 4, 0, keyword_values);
84
+ alpha_value = keyword_values[0];
85
+ beta_value = keyword_values[1];
86
+ mu_value = keyword_values[2];
87
+ nu_value = keyword_values[3];
88
+
89
+ if (!rb_obj_is_kind_of(alpha_value, rb_cNumeric)) {
90
+ rb_raise(rb_eTypeError, "alpha must be Numeric");
91
+ }
92
+ if (!rb_obj_is_kind_of(beta_value, rb_cNumeric)) {
93
+ rb_raise(rb_eTypeError, "beta must be Numeric");
94
+ }
95
+ if (!RB_INTEGER_TYPE_P(mu_value)) {
96
+ rb_raise(rb_eTypeError, "mu must be an Integer");
97
+ }
98
+ if (!RB_INTEGER_TYPE_P(nu_value)) {
99
+ rb_raise(rb_eTypeError, "nu must be an Integer");
100
+ }
101
+
102
+ alpha = NUM2DBL(alpha_value);
103
+ beta = NUM2DBL(beta_value);
104
+ mu = NUM2INT(mu_value);
105
+ nu = NUM2INT(nu_value);
106
+
107
+ if (!(alpha > -1.0)) {
108
+ rb_raise(rb_eArgError, "alpha must be greater than -1");
109
+ }
110
+ if (!(beta > -1.0)) {
111
+ rb_raise(rb_eArgError, "beta must be greater than -1");
112
+ }
113
+ if (mu != 0 && mu != 1) {
114
+ rb_raise(rb_eArgError, "mu must be 0 or 1");
115
+ }
116
+ if (nu != 0 && nu != 1) {
117
+ rb_raise(rb_eArgError, "nu must be 0 or 1");
118
+ }
119
+
120
+ TypedData_Get_Struct(self, integration_qaws_table,
121
+ &integration_qaws_table_type, table);
122
+ table->alpha = alpha;
123
+ table->beta = beta;
124
+ table->mu = mu;
125
+ table->nu = nu;
126
+ table->table =
127
+ gsl_integration_qaws_table_alloc(alpha, beta, table->mu, table->nu);
128
+
129
+ if (table->table == NULL) {
130
+ rb_memerror();
131
+ }
132
+
133
+ return self;
134
+ }
135
+
136
+ static VALUE integration_qaws_table_alpha(VALUE self) {
137
+ integration_qaws_table *table;
138
+
139
+ TypedData_Get_Struct(self, integration_qaws_table,
140
+ &integration_qaws_table_type, table);
141
+
142
+ return DBL2NUM(table->alpha);
143
+ }
144
+
145
+ static VALUE integration_qaws_table_beta(VALUE self) {
146
+ integration_qaws_table *table;
147
+
148
+ TypedData_Get_Struct(self, integration_qaws_table,
149
+ &integration_qaws_table_type, table);
150
+
151
+ return DBL2NUM(table->beta);
152
+ }
153
+
154
+ static VALUE integration_qaws_table_mu(VALUE self) {
155
+ integration_qaws_table *table;
156
+
157
+ TypedData_Get_Struct(self, integration_qaws_table,
158
+ &integration_qaws_table_type, table);
159
+
160
+ return INT2NUM(table->mu);
161
+ }
162
+
163
+ static VALUE integration_qaws_table_nu(VALUE self) {
164
+ integration_qaws_table *table;
165
+
166
+ TypedData_Get_Struct(self, integration_qaws_table,
167
+ &integration_qaws_table_type, table);
168
+
169
+ return INT2NUM(table->nu);
170
+ }
171
+
172
+ static VALUE integration_qaws_table_closed_p(VALUE self) {
173
+ integration_qaws_table *table;
174
+
175
+ TypedData_Get_Struct(self, integration_qaws_table,
176
+ &integration_qaws_table_type, table);
177
+
178
+ return table->table == NULL ? Qtrue : Qfalse;
179
+ }
180
+
181
+ static VALUE integration_qaws_table_close(VALUE self) {
182
+ integration_qaws_table *table;
183
+
184
+ TypedData_Get_Struct(self, integration_qaws_table,
185
+ &integration_qaws_table_type, table);
186
+
187
+ if (table->busy) {
188
+ rb_raise(rb_eRuntimeError, "table is already in use");
189
+ }
190
+ if (table->table != NULL) {
191
+ gsl_integration_qaws_table_free(table->table);
192
+ table->table = NULL;
193
+ }
194
+
195
+ return Qnil;
196
+ }
197
+
198
+ static VALUE integration_qaws_table_yield(VALUE table) {
199
+ return rb_yield(table);
200
+ }
201
+
202
+ static VALUE integration_qaws_table_open(int argc, VALUE *argv, VALUE klass) {
203
+ VALUE table;
204
+
205
+ table = rb_funcallv_kw(klass, rb_intern("new"), argc, argv, RB_PASS_KEYWORDS);
206
+
207
+ return rb_ensure(integration_qaws_table_yield, table,
208
+ integration_qaws_table_close, table);
209
+ }
210
+
211
+ void integration_qaws_table_use_begin(VALUE table_value, double alpha,
212
+ double beta, int mu, int nu,
213
+ integration_qaws_table_use *use) {
214
+ integration_qaws_table *table;
215
+
216
+ use->table = NULL;
217
+ use->owner = NULL;
218
+
219
+ if (table_value == Qundef) {
220
+ use->table = gsl_integration_qaws_table_alloc(alpha, beta, mu, nu);
221
+ if (use->table == NULL) {
222
+ rb_memerror();
223
+ }
224
+ return;
225
+ }
226
+
227
+ if (!rb_obj_is_kind_of(table_value, integration_cQAWSTable)) {
228
+ rb_raise(rb_eTypeError,
229
+ "table must be a Numo::GSL::Integration::QAWSTable");
230
+ }
231
+
232
+ TypedData_Get_Struct(table_value, integration_qaws_table,
233
+ &integration_qaws_table_type, table);
234
+
235
+ if (table->table == NULL) {
236
+ rb_raise(rb_eRuntimeError, "table is closed");
237
+ }
238
+ if (table->busy) {
239
+ rb_raise(rb_eRuntimeError, "table is already in use");
240
+ }
241
+ if (!integration_qaws_table_double_equal(table->alpha, alpha)) {
242
+ rb_raise(rb_eArgError, "alpha does not match QAWS table");
243
+ }
244
+ if (!integration_qaws_table_double_equal(table->beta, beta)) {
245
+ rb_raise(rb_eArgError, "beta does not match QAWS table");
246
+ }
247
+ if (table->mu != mu) {
248
+ rb_raise(rb_eArgError, "mu does not match QAWS table");
249
+ }
250
+ if (table->nu != nu) {
251
+ rb_raise(rb_eArgError, "nu does not match QAWS table");
252
+ }
253
+
254
+ table->busy = 1;
255
+ use->table = table->table;
256
+ use->owner = table;
257
+ }
258
+
259
+ VALUE integration_qaws_table_use_end(VALUE data) {
260
+ integration_qaws_table_use *use = (integration_qaws_table_use *)data;
261
+
262
+ if (use->owner != NULL) {
263
+ use->owner->busy = 0;
264
+ } else if (use->table != NULL) {
265
+ gsl_integration_qaws_table_free(use->table);
266
+ }
267
+
268
+ use->table = NULL;
269
+ use->owner = NULL;
270
+
271
+ return Qnil;
272
+ }
273
+
274
+ void integration_qaws_table_init(VALUE integration_module) {
275
+ integration_cQAWSTable =
276
+ rb_define_class_under(integration_module, "QAWSTable", rb_cObject);
277
+ rb_define_alloc_func(integration_cQAWSTable, integration_qaws_table_allocate);
278
+ rb_define_method(integration_cQAWSTable, "initialize",
279
+ integration_qaws_table_initialize, -1);
280
+ rb_define_method(integration_cQAWSTable, "alpha",
281
+ integration_qaws_table_alpha, 0);
282
+ rb_define_method(integration_cQAWSTable, "beta", integration_qaws_table_beta,
283
+ 0);
284
+ rb_define_method(integration_cQAWSTable, "mu", integration_qaws_table_mu, 0);
285
+ rb_define_method(integration_cQAWSTable, "nu", integration_qaws_table_nu, 0);
286
+ rb_define_method(integration_cQAWSTable, "closed?",
287
+ integration_qaws_table_closed_p, 0);
288
+ rb_define_method(integration_cQAWSTable, "close",
289
+ integration_qaws_table_close, 0);
290
+ rb_define_singleton_method(integration_cQAWSTable, "open",
291
+ integration_qaws_table_open, -1);
292
+ }
@@ -0,0 +1,194 @@
1
+ #include "integration_internal.h"
2
+
3
+ static VALUE integration_cWorkspace;
4
+
5
+ static void integration_workspace_free(void *data) {
6
+ integration_workspace *workspace = data;
7
+
8
+ if (workspace->workspace != NULL) {
9
+ gsl_integration_workspace_free(workspace->workspace);
10
+ }
11
+
12
+ xfree(workspace);
13
+ }
14
+
15
+ static size_t integration_workspace_memsize(const void *data) {
16
+ return data == NULL ? 0 : sizeof(integration_workspace);
17
+ }
18
+
19
+ static const rb_data_type_t integration_workspace_type = {
20
+ .wrap_struct_name = "Numo::GSL::Integration::Workspace",
21
+ .function =
22
+ {
23
+ .dmark = NULL,
24
+ .dfree = integration_workspace_free,
25
+ .dsize = integration_workspace_memsize,
26
+ },
27
+ .flags = RUBY_TYPED_FREE_IMMEDIATELY,
28
+ };
29
+
30
+ static VALUE integration_workspace_allocate(VALUE klass) {
31
+ integration_workspace *workspace;
32
+ VALUE object = TypedData_Make_Struct(klass, integration_workspace,
33
+ &integration_workspace_type, workspace);
34
+
35
+ workspace->workspace = NULL;
36
+ workspace->limit = 0;
37
+ workspace->busy = 0;
38
+
39
+ return object;
40
+ }
41
+
42
+ static VALUE integration_workspace_initialize(int argc, VALUE *argv,
43
+ VALUE self) {
44
+ VALUE options;
45
+ VALUE limit_value;
46
+ ID keywords[] = {rb_intern("limit")};
47
+ VALUE keyword_values[1];
48
+ integration_workspace *workspace;
49
+
50
+ rb_scan_args(argc, argv, "0:", &options);
51
+ if (NIL_P(options)) {
52
+ rb_raise(rb_eArgError, "missing keyword: :limit");
53
+ }
54
+ rb_get_kwargs(options, keywords, 1, 0, keyword_values);
55
+ limit_value = keyword_values[0];
56
+
57
+ if (!RB_INTEGER_TYPE_P(limit_value)) {
58
+ rb_raise(rb_eTypeError, "limit must be an Integer");
59
+ }
60
+ if (RTEST(rb_funcall(limit_value, rb_intern("<="), 1, INT2FIX(0)))) {
61
+ rb_raise(rb_eArgError, "limit must be positive");
62
+ }
63
+
64
+ TypedData_Get_Struct(self, integration_workspace, &integration_workspace_type,
65
+ workspace);
66
+ workspace->limit = NUM2SIZET(limit_value);
67
+ workspace->workspace = gsl_integration_workspace_alloc(workspace->limit);
68
+ if (workspace->workspace == NULL) {
69
+ rb_memerror();
70
+ }
71
+
72
+ return self;
73
+ }
74
+
75
+ static VALUE integration_workspace_limit(VALUE self) {
76
+ integration_workspace *workspace;
77
+
78
+ TypedData_Get_Struct(self, integration_workspace, &integration_workspace_type,
79
+ workspace);
80
+
81
+ return SIZET2NUM(workspace->limit);
82
+ }
83
+
84
+ static VALUE integration_workspace_closed_p(VALUE self) {
85
+ integration_workspace *workspace;
86
+
87
+ TypedData_Get_Struct(self, integration_workspace, &integration_workspace_type,
88
+ workspace);
89
+
90
+ return workspace->workspace == NULL ? Qtrue : Qfalse;
91
+ }
92
+
93
+ static VALUE integration_workspace_close(VALUE self) {
94
+ integration_workspace *workspace;
95
+
96
+ TypedData_Get_Struct(self, integration_workspace, &integration_workspace_type,
97
+ workspace);
98
+
99
+ if (workspace->busy) {
100
+ rb_raise(rb_eRuntimeError, "workspace is already in use");
101
+ }
102
+ if (workspace->workspace != NULL) {
103
+ gsl_integration_workspace_free(workspace->workspace);
104
+ workspace->workspace = NULL;
105
+ }
106
+
107
+ return Qnil;
108
+ }
109
+
110
+ static VALUE integration_workspace_yield(VALUE workspace) {
111
+ return rb_yield(workspace);
112
+ }
113
+
114
+ static VALUE integration_workspace_open(int argc, VALUE *argv, VALUE klass) {
115
+ VALUE workspace;
116
+
117
+ workspace =
118
+ rb_funcallv_kw(klass, rb_intern("new"), argc, argv, RB_PASS_KEYWORDS);
119
+
120
+ return rb_ensure(integration_workspace_yield, workspace,
121
+ integration_workspace_close, workspace);
122
+ }
123
+
124
+ void integration_workspace_use_begin(VALUE workspace_value, size_t *limit,
125
+ int limit_given,
126
+ integration_workspace_use *use) {
127
+ integration_workspace *workspace;
128
+
129
+ use->workspace = NULL;
130
+ use->owner = NULL;
131
+
132
+ if (workspace_value == Qundef) {
133
+ use->workspace = gsl_integration_workspace_alloc(*limit);
134
+ if (use->workspace == NULL) {
135
+ rb_memerror();
136
+ }
137
+ return;
138
+ }
139
+
140
+ if (!rb_obj_is_kind_of(workspace_value, integration_cWorkspace)) {
141
+ rb_raise(rb_eTypeError,
142
+ "workspace must be a Numo::GSL::Integration::Workspace");
143
+ }
144
+
145
+ TypedData_Get_Struct(workspace_value, integration_workspace,
146
+ &integration_workspace_type, workspace);
147
+ if (workspace->workspace == NULL) {
148
+ rb_raise(rb_eRuntimeError, "workspace is closed");
149
+ }
150
+ if (workspace->busy) {
151
+ rb_raise(rb_eRuntimeError, "workspace is already in use");
152
+ }
153
+ if (limit_given && *limit > workspace->limit) {
154
+ rb_raise(rb_eArgError, "limit exceeds workspace capacity");
155
+ }
156
+ if (!limit_given) {
157
+ *limit = workspace->limit;
158
+ }
159
+
160
+ workspace->busy = 1;
161
+ use->workspace = workspace->workspace;
162
+ use->owner = workspace;
163
+ }
164
+
165
+ VALUE integration_workspace_use_end(VALUE data) {
166
+ integration_workspace_use *use = (integration_workspace_use *)data;
167
+
168
+ if (use->owner != NULL) {
169
+ use->owner->busy = 0;
170
+ } else if (use->workspace != NULL) {
171
+ gsl_integration_workspace_free(use->workspace);
172
+ }
173
+
174
+ use->workspace = NULL;
175
+ use->owner = NULL;
176
+
177
+ return Qnil;
178
+ }
179
+
180
+ void integration_workspace_init(VALUE integration_module) {
181
+ integration_cWorkspace =
182
+ rb_define_class_under(integration_module, "Workspace", rb_cObject);
183
+ rb_define_alloc_func(integration_cWorkspace, integration_workspace_allocate);
184
+ rb_define_method(integration_cWorkspace, "initialize",
185
+ integration_workspace_initialize, -1);
186
+ rb_define_method(integration_cWorkspace, "limit", integration_workspace_limit,
187
+ 0);
188
+ rb_define_method(integration_cWorkspace, "closed?",
189
+ integration_workspace_closed_p, 0);
190
+ rb_define_method(integration_cWorkspace, "close", integration_workspace_close,
191
+ 0);
192
+ rb_define_singleton_method(integration_cWorkspace, "open",
193
+ integration_workspace_open, -1);
194
+ }
@@ -3,7 +3,7 @@
3
3
  module Numo
4
4
  module GSL
5
5
  module Integration
6
- VERSION = "0.3.1"
6
+ VERSION = "0.5.0"
7
7
  end
8
8
  end
9
9
  end
@@ -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,
@@ -116,6 +174,9 @@ module Numo
116
174
  ?alpha: Numeric,
117
175
  ?beta: Numeric
118
176
  ) { (Float) -> Numeric } -> Float
177
+ def self.lebedev: (Integer n) {
178
+ (Float, Float, Float) -> Numeric
179
+ } -> Float
119
180
  end
120
181
  end
121
182
  end
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.3.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiro SATOH
@@ -31,6 +31,7 @@ files:
31
31
  - ext/numo/gsl/integration/glfixed.c
32
32
  - ext/numo/gsl/integration/integration.c
33
33
  - ext/numo/gsl/integration/integration_internal.h
34
+ - ext/numo/gsl/integration/lebedev.c
34
35
  - ext/numo/gsl/integration/options.c
35
36
  - ext/numo/gsl/integration/qag.c
36
37
  - ext/numo/gsl/integration/qagi.c
@@ -41,10 +42,13 @@ files:
41
42
  - ext/numo/gsl/integration/qawc.c
42
43
  - ext/numo/gsl/integration/qawf.c
43
44
  - ext/numo/gsl/integration/qawo.c
45
+ - ext/numo/gsl/integration/qawo_table.c
44
46
  - ext/numo/gsl/integration/qaws.c
47
+ - ext/numo/gsl/integration/qaws_table.c
45
48
  - ext/numo/gsl/integration/qng.c
46
49
  - ext/numo/gsl/integration/resources.c
47
50
  - ext/numo/gsl/integration/romberg.c
51
+ - ext/numo/gsl/integration/workspace.c
48
52
  - lib/numo/gsl/integration.rb
49
53
  - lib/numo/gsl/integration/version.rb
50
54
  - sig/numo/gsl.rbs