carray 1.3.3 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -7
- data/Rakefile +31 -0
- data/carray.gemspec +9 -14
- data/carray.h +4 -0
- data/carray_access.c +50 -8
- data/carray_conversion.c +3 -3
- data/carray_generate.c +67 -1
- data/carray_math.rb +22 -22
- data/carray_operator.c +23 -0
- data/devel/im2col.rb +17 -0
- data/ext/calculus/carray_calculus.c +235 -95
- data/ext/calculus/carray_interp.c +3 -1
- data/ext/calculus/lib/math/calculus.rb +4 -4
- data/lib/carray.rb +32 -1
- data/lib/carray/autoload/autoload_base.rb +0 -4
- data/lib/carray/autoload/autoload_gem_cairo.rb +9 -0
- data/lib/carray/autoload/autoload_gem_ffi.rb +9 -0
- data/lib/carray/autoload/autoload_gem_gnuplot.rb +2 -0
- data/lib/carray/autoload/autoload_gem_io_csv.rb +14 -0
- data/lib/carray/autoload/autoload_gem_io_pg.rb +6 -0
- data/lib/carray/autoload/autoload_gem_io_sqlite3.rb +12 -0
- data/lib/carray/autoload/autoload_gem_narray.rb +10 -0
- data/lib/carray/autoload/autoload_gem_numo_narray.rb +14 -0
- data/lib/carray/autoload/autoload_gem_opencv.rb +16 -0
- data/lib/carray/autoload/autoload_gem_rmagick.rb +23 -0
- data/lib/carray/autoload/{autoload_graphics_zimg.rb → autoload_gem_zimg.rb} +0 -0
- data/lib/carray/base/autoload.rb +47 -5
- data/lib/carray/base/basic.rb +70 -6
- data/lib/carray/base/math.rb +1 -1
- data/lib/carray/base/string.rb +242 -0
- data/lib/carray/base/struct.rb +4 -4
- data/lib/carray/io/table.rb +1 -0
- data/mkmath.rb +12 -2
- data/version.h +5 -5
- metadata +48 -141
- data/Gemfile +0 -8
- data/Gemfile.lock +0 -33
- data/ext/calculus/lib/autoload/autoload_math_calculus.rb +0 -2
- data/ext/fortio/extconf.rb +0 -3
- data/ext/fortio/lib/carray/autoload/autoload_fortran_format.rb +0 -5
- data/ext/fortio/lib/carray/io/fortran_format.rb +0 -43
- data/ext/fortio/lib/fortio.rb +0 -3
- data/ext/fortio/lib/fortio/fortran_format.rb +0 -605
- data/ext/fortio/lib/fortio/fortran_format.tab.rb +0 -536
- data/ext/fortio/lib/fortio/fortran_format.y +0 -215
- data/ext/fortio/lib/fortio/fortran_namelist.rb +0 -151
- data/ext/fortio/lib/fortio/fortran_namelist.tab.rb +0 -470
- data/ext/fortio/lib/fortio/fortran_namelist.y +0 -213
- data/ext/fortio/lib/fortio/fortran_sequential.rb +0 -345
- data/ext/fortio/ruby_fortio.c +0 -182
- data/ext/fortio/test/test_H.rb +0 -5
- data/ext/fortio/test/test_T.rb +0 -7
- data/ext/fortio/test/test_fortran_format.rb +0 -86
- data/ext/fortio/test/test_namelist.rb +0 -25
- data/ext/fortio/test/test_namelist_write.rb +0 -10
- data/ext/fortio/test/test_sequential.rb +0 -13
- data/ext/fortio/test/test_sequential2.rb +0 -13
- data/ext/fortio/work/test.rb +0 -10
- data/ext/fortio/work/test_e.rb +0 -19
- data/ext/fortio/work/test_ep.rb +0 -10
- data/ext/fortio/work/test_parse.rb +0 -12
- data/ext/imagemap/carray_imagemap.c +0 -495
- data/ext/imagemap/doc/call_graph.dot +0 -28
- data/ext/imagemap/draw.c +0 -567
- data/ext/imagemap/extconf.rb +0 -13
- data/ext/imagemap/lib/autoload/autoload_graphics_imagemap.rb +0 -1
- data/ext/imagemap/lib/graphics/imagemap.rb +0 -273
- data/ext/imagemap/lib/image_map.rb +0 -4
- data/ext/imagemap/test/swath_index.rb +0 -83
- data/ext/imagemap/test/swath_warp.rb +0 -99
- data/ext/imagemap/test/test.rb +0 -23
- data/ext/imagemap/test/test_image.rb +0 -42
- data/ext/imagemap/test/test_line.rb +0 -14
- data/ext/imagemap/test/test_rotate.rb +0 -17
- data/ext/imagemap/test/test_triangle.rb +0 -20
- data/ext/imagemap/test/test_warp.rb +0 -26
- data/ext/mathfunc/lib/autoload/autoload_math_mathfunc.rb +0 -1
- data/ext/mathfunc/lib/math/mathfunc.rb +0 -15
- data/ext/narray/README +0 -22
- data/ext/narray/ca_wrap_narray.c +0 -500
- data/ext/narray/carray_narray.c +0 -21
- data/ext/narray/extconf.rb +0 -57
- data/ext/narray/lib/autoload/autoload_math_narray.rb +0 -1
- data/ext/narray/lib/autoload/autoload_math_narray_miss.rb +0 -11
- data/ext/narray/lib/math/narray.rb +0 -17
- data/ext/narray/lib/math/narray_miss.rb +0 -45
- data/lib/carray/autoload/autoload_graphics_gnuplot.rb +0 -2
- data/lib/carray/autoload/autoload_io_csv.rb +0 -14
- data/lib/carray/autoload/autoload_io_pg.rb +0 -6
- data/lib/carray/autoload/autoload_io_sqlite3.rb +0 -12
- data/lib/carray/graphics/gnuplot.rb +0 -2131
- data/lib/carray/graphics/zimg.rb +0 -296
- data/lib/carray/io/csv.rb +0 -572
- data/lib/carray/io/pg.rb +0 -101
- data/lib/carray/io/sqlite3.rb +0 -215
- data/mkmf.log +0 -18
data/lib/carray/base/struct.rb
CHANGED
@@ -97,7 +97,7 @@ class CA::Struct
|
|
97
97
|
class << self
|
98
98
|
|
99
99
|
def inspect
|
100
|
-
return name.
|
100
|
+
return name.nil? ? "AnonStruct" : name
|
101
101
|
end
|
102
102
|
|
103
103
|
def [] (*argv)
|
@@ -267,7 +267,7 @@ end
|
|
267
267
|
class CA::Union < CA::Struct
|
268
268
|
class << self
|
269
269
|
def inspect
|
270
|
-
return name.
|
270
|
+
return name.nil? ? "AnonUnion" : name
|
271
271
|
end
|
272
272
|
end
|
273
273
|
end
|
@@ -562,7 +562,7 @@ class CA::Struct
|
|
562
562
|
output = ""
|
563
563
|
table = self::MEMBER_TABLE
|
564
564
|
stlist = []
|
565
|
-
if self.name.
|
565
|
+
if self.name.nil?
|
566
566
|
if self <= CA::Union
|
567
567
|
prefix = "union"
|
568
568
|
else
|
@@ -584,7 +584,7 @@ class CA::Struct
|
|
584
584
|
when Class
|
585
585
|
if type < CA::Struct
|
586
586
|
stlist << type
|
587
|
-
if type.name.
|
587
|
+
if type.name.nil?
|
588
588
|
if type <= CA::Union
|
589
589
|
prefix = "union"
|
590
590
|
else
|
data/lib/carray/io/table.rb
CHANGED
data/mkmath.rb
CHANGED
@@ -289,7 +289,12 @@ ca_binop_#{name}_#{type} (ca_size_t n, boolean8_t *m, char *ptr1, ca_size_t i1,
|
|
289
289
|
io.puts
|
290
290
|
io.print %{
|
291
291
|
static VALUE rb_ca_#{name} (VALUE self, VALUE other)
|
292
|
-
{
|
292
|
+
{
|
293
|
+
if ( ! rb_ca_test_castable(other) ) {
|
294
|
+
return rb_ca_binop_pass_to_other(self, other, rb_intern("#{op}"));
|
295
|
+
}
|
296
|
+
return rb_ca_call_binop(self, other, ca_binop_#{name});
|
297
|
+
}
|
293
298
|
static VALUE rb_ca_#{name}_bang (VALUE self, VALUE other)
|
294
299
|
{ return rb_ca_call_binop_bang(self, other, ca_binop_#{name}); }
|
295
300
|
}
|
@@ -529,7 +534,12 @@ ca_bincmp_#{name}_#{type} (ca_size_t n, boolean8_t *m,
|
|
529
534
|
io.puts
|
530
535
|
io.print %{
|
531
536
|
static VALUE rb_ca_#{name} (VALUE self, VALUE other)
|
532
|
-
{
|
537
|
+
{
|
538
|
+
if ( ! rb_ca_test_castable(other) ) {
|
539
|
+
return rb_ca_binop_pass_to_other(self, other, rb_intern("#{op}"));
|
540
|
+
}
|
541
|
+
return rb_ca_call_bincmp(self, other, ca_bincmp_#{name});
|
542
|
+
}
|
533
543
|
}
|
534
544
|
DEFINITIONS << io.string
|
535
545
|
if op
|
data/version.h
CHANGED
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
---------------------------------------------------------------------------- */
|
12
12
|
|
13
|
-
#define CA_VERSION "1.
|
14
|
-
#define CA_VERSION_CODE
|
13
|
+
#define CA_VERSION "1.4.0"
|
14
|
+
#define CA_VERSION_CODE 140
|
15
15
|
#define CA_VERSION_MAJOR 1
|
16
|
-
#define CA_VERSION_MINOR
|
17
|
-
#define CA_VERSION_TEENY
|
18
|
-
#define CA_VERSION_DATE "
|
16
|
+
#define CA_VERSION_MINOR 4
|
17
|
+
#define CA_VERSION_TEENY 0
|
18
|
+
#define CA_VERSION_DATE "2020/06/15"
|
metadata
CHANGED
@@ -1,57 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carray
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroki Motoyoshi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: narray
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 0.6.1.1
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 0.6.1.1
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: narray_miss
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '1.3'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.3'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: sqlite3
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.3'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.3'
|
11
|
+
date: 2020-06-15 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
55
13
|
description: |2
|
56
14
|
CArray is a uniform multi-dimensional rectangular array class.
|
57
15
|
It provides the various types of sub-arrays and references
|
@@ -61,17 +19,12 @@ email: ''
|
|
61
19
|
executables: []
|
62
20
|
extensions:
|
63
21
|
- extconf.rb
|
64
|
-
- ext/calculus/extconf.rb
|
65
|
-
- ext/fortio/extconf.rb
|
66
|
-
- ext/imagemap/extconf.rb
|
67
22
|
- ext/mathfunc/extconf.rb
|
68
|
-
- ext/
|
23
|
+
- ext/calculus/extconf.rb
|
69
24
|
extra_rdoc_files: []
|
70
25
|
files:
|
71
26
|
- COPYING
|
72
27
|
- GPL
|
73
|
-
- Gemfile
|
74
|
-
- Gemfile.lock
|
75
28
|
- LEGAL
|
76
29
|
- NOTE
|
77
30
|
- README.md
|
@@ -126,75 +79,33 @@ files:
|
|
126
79
|
- carray_undef.c
|
127
80
|
- carray_utils.c
|
128
81
|
- devel/guess_shape.rb
|
82
|
+
- devel/im2col.rb
|
129
83
|
- ext/calculus/carray_calculus.c
|
130
84
|
- ext/calculus/carray_interp.c
|
131
85
|
- ext/calculus/extconf.rb
|
132
|
-
- ext/calculus/lib/autoload/autoload_math_calculus.rb
|
133
86
|
- ext/calculus/lib/math/calculus.rb
|
134
87
|
- ext/calculus/lib/math/interp/adapter_interp1d.rb
|
135
|
-
- ext/fortio/extconf.rb
|
136
|
-
- ext/fortio/lib/carray/autoload/autoload_fortran_format.rb
|
137
|
-
- ext/fortio/lib/carray/io/fortran_format.rb
|
138
|
-
- ext/fortio/lib/fortio.rb
|
139
|
-
- ext/fortio/lib/fortio/fortran_format.rb
|
140
|
-
- ext/fortio/lib/fortio/fortran_format.tab.rb
|
141
|
-
- ext/fortio/lib/fortio/fortran_format.y
|
142
|
-
- ext/fortio/lib/fortio/fortran_namelist.rb
|
143
|
-
- ext/fortio/lib/fortio/fortran_namelist.tab.rb
|
144
|
-
- ext/fortio/lib/fortio/fortran_namelist.y
|
145
|
-
- ext/fortio/lib/fortio/fortran_sequential.rb
|
146
|
-
- ext/fortio/ruby_fortio.c
|
147
|
-
- ext/fortio/test/test_H.rb
|
148
|
-
- ext/fortio/test/test_T.rb
|
149
|
-
- ext/fortio/test/test_fortran_format.rb
|
150
|
-
- ext/fortio/test/test_namelist.rb
|
151
|
-
- ext/fortio/test/test_namelist_write.rb
|
152
|
-
- ext/fortio/test/test_sequential.rb
|
153
|
-
- ext/fortio/test/test_sequential2.rb
|
154
|
-
- ext/fortio/work/test.rb
|
155
|
-
- ext/fortio/work/test_e.rb
|
156
|
-
- ext/fortio/work/test_ep.rb
|
157
|
-
- ext/fortio/work/test_parse.rb
|
158
|
-
- ext/imagemap/carray_imagemap.c
|
159
|
-
- ext/imagemap/doc/call_graph.dot
|
160
|
-
- ext/imagemap/draw.c
|
161
|
-
- ext/imagemap/extconf.rb
|
162
|
-
- ext/imagemap/lib/autoload/autoload_graphics_imagemap.rb
|
163
|
-
- ext/imagemap/lib/graphics/imagemap.rb
|
164
|
-
- ext/imagemap/lib/image_map.rb
|
165
|
-
- ext/imagemap/test/swath_index.rb
|
166
|
-
- ext/imagemap/test/swath_warp.rb
|
167
|
-
- ext/imagemap/test/test.rb
|
168
|
-
- ext/imagemap/test/test_image.rb
|
169
|
-
- ext/imagemap/test/test_line.rb
|
170
|
-
- ext/imagemap/test/test_rotate.rb
|
171
|
-
- ext/imagemap/test/test_triangle.rb
|
172
|
-
- ext/imagemap/test/test_warp.rb
|
173
88
|
- ext/mathfunc/carray_mathfunc.c
|
174
89
|
- ext/mathfunc/extconf.rb
|
175
|
-
- ext/mathfunc/lib/autoload/autoload_math_mathfunc.rb
|
176
|
-
- ext/mathfunc/lib/math/mathfunc.rb
|
177
90
|
- ext/mathfunc/test/test_hypot.rb
|
178
91
|
- ext/mathfunc/test/test_j0.rb
|
179
92
|
- ext/mathfunc/test/test_jn.rb
|
180
93
|
- ext/mathfunc/test/test_sph.rb
|
181
|
-
- ext/narray/README
|
182
|
-
- ext/narray/ca_wrap_narray.c
|
183
|
-
- ext/narray/carray_narray.c
|
184
|
-
- ext/narray/extconf.rb
|
185
|
-
- ext/narray/lib/autoload/autoload_math_narray.rb
|
186
|
-
- ext/narray/lib/autoload/autoload_math_narray_miss.rb
|
187
|
-
- ext/narray/lib/math/narray.rb
|
188
|
-
- ext/narray/lib/math/narray_miss.rb
|
189
94
|
- extconf.rb
|
190
95
|
- lib/carray.rb
|
191
96
|
- lib/carray/autoload/autoload_base.rb
|
192
|
-
- lib/carray/autoload/
|
193
|
-
- lib/carray/autoload/
|
194
|
-
- lib/carray/autoload/
|
97
|
+
- lib/carray/autoload/autoload_gem_cairo.rb
|
98
|
+
- lib/carray/autoload/autoload_gem_ffi.rb
|
99
|
+
- lib/carray/autoload/autoload_gem_gnuplot.rb
|
100
|
+
- lib/carray/autoload/autoload_gem_io_csv.rb
|
101
|
+
- lib/carray/autoload/autoload_gem_io_pg.rb
|
102
|
+
- lib/carray/autoload/autoload_gem_io_sqlite3.rb
|
103
|
+
- lib/carray/autoload/autoload_gem_narray.rb
|
104
|
+
- lib/carray/autoload/autoload_gem_numo_narray.rb
|
105
|
+
- lib/carray/autoload/autoload_gem_opencv.rb
|
106
|
+
- lib/carray/autoload/autoload_gem_rmagick.rb
|
107
|
+
- lib/carray/autoload/autoload_gem_zimg.rb
|
195
108
|
- lib/carray/autoload/autoload_io_imagemagick.rb
|
196
|
-
- lib/carray/autoload/autoload_io_pg.rb
|
197
|
-
- lib/carray/autoload/autoload_io_sqlite3.rb
|
198
109
|
- lib/carray/autoload/autoload_io_table.rb
|
199
110
|
- lib/carray/autoload/autoload_math_histogram.rb
|
200
111
|
- lib/carray/autoload/autoload_math_interp.rb
|
@@ -209,14 +120,10 @@ files:
|
|
209
120
|
- lib/carray/base/math.rb
|
210
121
|
- lib/carray/base/obsolete.rb
|
211
122
|
- lib/carray/base/serialize.rb
|
123
|
+
- lib/carray/base/string.rb
|
212
124
|
- lib/carray/base/struct.rb
|
213
|
-
- lib/carray/graphics/gnuplot.rb
|
214
|
-
- lib/carray/graphics/zimg.rb
|
215
125
|
- lib/carray/info.rb
|
216
|
-
- lib/carray/io/csv.rb
|
217
126
|
- lib/carray/io/imagemagick.rb
|
218
|
-
- lib/carray/io/pg.rb
|
219
|
-
- lib/carray/io/sqlite3.rb
|
220
127
|
- lib/carray/io/table.rb
|
221
128
|
- lib/carray/math/histogram.rb
|
222
129
|
- lib/carray/math/interp.rb
|
@@ -227,7 +134,6 @@ files:
|
|
227
134
|
- lib/carray/object/ca_obj_link.rb
|
228
135
|
- lib/carray/object/ca_obj_pack.rb
|
229
136
|
- mkmath.rb
|
230
|
-
- mkmf.log
|
231
137
|
- mt19937ar.c
|
232
138
|
- mt19937ar.h
|
233
139
|
- rdoc_main.rb
|
@@ -309,44 +215,46 @@ rdoc_options:
|
|
309
215
|
- rdoc_ext.rb
|
310
216
|
- rdoc_math.rb
|
311
217
|
- rdoc_stat.rb
|
312
|
-
- lib/carray/
|
313
|
-
- lib/carray/
|
314
|
-
- lib/carray/
|
315
|
-
- lib/carray/
|
316
|
-
- lib/carray/
|
317
|
-
- lib/carray/
|
318
|
-
- lib/carray/
|
218
|
+
- lib/carray/info.rb
|
219
|
+
- lib/carray/io/table.rb
|
220
|
+
- lib/carray/io/imagemagick.rb
|
221
|
+
- lib/carray/math/interp.rb
|
222
|
+
- lib/carray/math/interp/adapter_gsl_spline.rb
|
223
|
+
- lib/carray/math/histogram.rb
|
224
|
+
- lib/carray/math/recurrence.rb
|
225
|
+
- lib/carray/object/ca_obj_iterator.rb
|
226
|
+
- lib/carray/object/ca_obj_pack.rb
|
227
|
+
- lib/carray/object/ca_obj_link.rb
|
319
228
|
- lib/carray/autoload/autoload_io_table.rb
|
229
|
+
- lib/carray/autoload/autoload_gem_narray.rb
|
320
230
|
- lib/carray/autoload/autoload_math_histogram.rb
|
321
231
|
- lib/carray/autoload/autoload_math_interp.rb
|
232
|
+
- lib/carray/autoload/autoload_io_imagemagick.rb
|
233
|
+
- lib/carray/autoload/autoload_gem_cairo.rb
|
234
|
+
- lib/carray/autoload/autoload_gem_numo_narray.rb
|
235
|
+
- lib/carray/autoload/autoload_gem_zimg.rb
|
322
236
|
- lib/carray/autoload/autoload_math_recurrence.rb
|
323
|
-
- lib/carray/autoload/
|
237
|
+
- lib/carray/autoload/autoload_gem_io_pg.rb
|
238
|
+
- lib/carray/autoload/autoload_gem_ffi.rb
|
239
|
+
- lib/carray/autoload/autoload_gem_gnuplot.rb
|
240
|
+
- lib/carray/autoload/autoload_gem_opencv.rb
|
241
|
+
- lib/carray/autoload/autoload_gem_io_sqlite3.rb
|
242
|
+
- lib/carray/autoload/autoload_gem_io_csv.rb
|
243
|
+
- lib/carray/autoload/autoload_gem_rmagick.rb
|
244
|
+
- lib/carray/autoload/autoload_base.rb
|
324
245
|
- lib/carray/autoload/autoload_object_link.rb
|
325
246
|
- lib/carray/autoload/autoload_object_pack.rb
|
326
|
-
- lib/carray/
|
327
|
-
- lib/carray/
|
247
|
+
- lib/carray/autoload/autoload_object_iterator.rb
|
248
|
+
- lib/carray/mkmf.rb
|
249
|
+
- lib/carray/base/struct.rb
|
250
|
+
- lib/carray/base/string.rb
|
251
|
+
- lib/carray/base/math.rb
|
328
252
|
- lib/carray/base/inspect.rb
|
329
253
|
- lib/carray/base/iterator.rb
|
330
|
-
- lib/carray/base/
|
254
|
+
- lib/carray/base/basic.rb
|
255
|
+
- lib/carray/base/autoload.rb
|
331
256
|
- lib/carray/base/obsolete.rb
|
332
257
|
- lib/carray/base/serialize.rb
|
333
|
-
- lib/carray/base/struct.rb
|
334
|
-
- lib/carray/graphics/gnuplot.rb
|
335
|
-
- lib/carray/graphics/zimg.rb
|
336
|
-
- lib/carray/info.rb
|
337
|
-
- lib/carray/io/csv.rb
|
338
|
-
- lib/carray/io/imagemagick.rb
|
339
|
-
- lib/carray/io/pg.rb
|
340
|
-
- lib/carray/io/sqlite3.rb
|
341
|
-
- lib/carray/io/table.rb
|
342
|
-
- lib/carray/math/histogram.rb
|
343
|
-
- lib/carray/math/interp/adapter_gsl_spline.rb
|
344
|
-
- lib/carray/math/interp.rb
|
345
|
-
- lib/carray/math/recurrence.rb
|
346
|
-
- lib/carray/mkmf.rb
|
347
|
-
- lib/carray/object/ca_obj_iterator.rb
|
348
|
-
- lib/carray/object/ca_obj_link.rb
|
349
|
-
- lib/carray/object/ca_obj_pack.rb
|
350
258
|
require_paths:
|
351
259
|
- lib
|
352
260
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -360,8 +268,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
360
268
|
- !ruby/object:Gem::Version
|
361
269
|
version: '0'
|
362
270
|
requirements: []
|
363
|
-
|
364
|
-
rubygems_version: 2.7.7
|
271
|
+
rubygems_version: 3.0.3
|
365
272
|
signing_key:
|
366
273
|
specification_version: 4
|
367
274
|
summary: Multi-dimesional array class
|
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: https://rubygems.org/
|
3
|
-
specs:
|
4
|
-
axlsx (2.0.1)
|
5
|
-
htmlentities (~> 4.3.1)
|
6
|
-
nokogiri (>= 1.4.1)
|
7
|
-
rubyzip (~> 1.0.0)
|
8
|
-
htmlentities (4.3.4)
|
9
|
-
mini_portile2 (2.0.0)
|
10
|
-
narray (0.6.1.2)
|
11
|
-
narray_miss (1.3.0)
|
12
|
-
numru-narray
|
13
|
-
nokogiri (1.6.7.2)
|
14
|
-
mini_portile2 (~> 2.0.0.rc2)
|
15
|
-
numru-narray (1.0.3)
|
16
|
-
ruby-ole (1.2.12)
|
17
|
-
rubyzip (1.0.0)
|
18
|
-
spreadsheet (1.1.2)
|
19
|
-
ruby-ole (>= 1.0)
|
20
|
-
sqlite3 (1.3.11)
|
21
|
-
|
22
|
-
PLATFORMS
|
23
|
-
ruby
|
24
|
-
|
25
|
-
DEPENDENCIES
|
26
|
-
axlsx
|
27
|
-
narray
|
28
|
-
narray_miss
|
29
|
-
spreadsheet
|
30
|
-
sqlite3
|
31
|
-
|
32
|
-
BUNDLED WITH
|
33
|
-
1.11.2
|
data/ext/fortio/extconf.rb
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
require "fortio"
|
2
|
-
|
3
|
-
class CArray
|
4
|
-
|
5
|
-
def self.from_fortran_format (fmt, io)
|
6
|
-
case io
|
7
|
-
when String
|
8
|
-
io = StringIO.new(io)
|
9
|
-
end
|
10
|
-
case fmt
|
11
|
-
when String
|
12
|
-
fmt = FortranFormat.new(fmt)
|
13
|
-
end
|
14
|
-
data = []
|
15
|
-
begin
|
16
|
-
data << fmt.read(io)
|
17
|
-
end until io.eof?
|
18
|
-
return data.to_ca
|
19
|
-
end
|
20
|
-
|
21
|
-
def to_fortran_format (fmt, input="")
|
22
|
-
case input
|
23
|
-
when String
|
24
|
-
io = StringIO.new(input)
|
25
|
-
else
|
26
|
-
io = input
|
27
|
-
end
|
28
|
-
case fmt
|
29
|
-
when String
|
30
|
-
fmt = FortranFormat.new(fmt)
|
31
|
-
end
|
32
|
-
n = fmt.count_args
|
33
|
-
attach {
|
34
|
-
self[nil].blocks(0...n).each do |blk|
|
35
|
-
fmt.write(io, *blk.to_a)
|
36
|
-
end
|
37
|
-
}
|
38
|
-
return input
|
39
|
-
end
|
40
|
-
|
41
|
-
end
|
42
|
-
|
43
|
-
|