carray 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/carray.gemspec +1 -2
- data/carray_access.c +2 -0
- data/lib/carray/base/basic.rb +57 -37
- data/lib/carray/base/obsolete.rb +38 -0
- data/lib/carray/graphics/gnuplot.rb +23 -11
- data/mkmf.log +140 -0
- data/version.h +4 -4
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ea50398fd82431dc1bc7cf02a0eb419646194e46d6a96332b6f22bed6e00f254
|
4
|
+
data.tar.gz: 87cf5b32d5e4449ba85b275915bdc767f9067e1012fe58712eb39447edf6cd43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d5ad8c819c3be008b9281aa6fca197db2e49d009319ee32de09073efef3a772a3a174a00de9a9768be106aac66e33bec2e349d5e3c460a99b1eeb289abe7691
|
7
|
+
data.tar.gz: 41c4b2d57f30806181722cca5348d8d72523adf796bdc19583b8cb22338748d3ea66309cd8213d657c9165352a02663a66bd9da41c751c46252ff57cbd5bc983
|
data/carray.gemspec
CHANGED
@@ -29,9 +29,8 @@ Gem::Specification::new do |s|
|
|
29
29
|
s.files = files
|
30
30
|
s.extensions = [ "extconf.rb" ] +
|
31
31
|
Dir["ext/*/extconf.rb"].select{|f| File.exist?(f) }
|
32
|
-
s.has_rdoc = true
|
33
32
|
s.rdoc_options = [
|
34
|
-
"
|
33
|
+
"-m rdoc_main.rb",
|
35
34
|
"rdoc_main.rb",
|
36
35
|
"rdoc_ext.rb",
|
37
36
|
"rdoc_math.rb",
|
data/carray_access.c
CHANGED
@@ -1489,6 +1489,8 @@ rb_ca_s_scan_index (VALUE self, VALUE rdim, VALUE ridx)
|
|
1489
1489
|
case CA_REG_ADDRESS:
|
1490
1490
|
rb_ary_store(rindex, 0, SIZE2NUM(info.index[0].scalar));
|
1491
1491
|
break;
|
1492
|
+
case CA_REG_FLATTEN:
|
1493
|
+
break;
|
1492
1494
|
case CA_REG_ADDRESS_COMPLEX: {
|
1493
1495
|
volatile VALUE rinfo;
|
1494
1496
|
ca_size_t elements = 1;
|
data/lib/carray/base/basic.rb
CHANGED
@@ -700,6 +700,10 @@ class CArray
|
|
700
700
|
end
|
701
701
|
end
|
702
702
|
|
703
|
+
#
|
704
|
+
#
|
705
|
+
#
|
706
|
+
|
703
707
|
def indices
|
704
708
|
list = Array.new(rank) {|i|
|
705
709
|
rpt = self.dim
|
@@ -737,13 +741,24 @@ class CArray
|
|
737
741
|
end
|
738
742
|
|
739
743
|
# Array#join like method
|
744
|
+
#
|
745
|
+
# > a = CArray.object(3,3).seq("a",:succ)
|
746
|
+
# => <CArray.object(3,3): elem=9 mem=72b
|
747
|
+
# [ [ "a", "b", "c" ],
|
748
|
+
# [ "d", "e", "f" ],
|
749
|
+
# [ "g", "h", "i" ] ]>
|
750
|
+
#
|
751
|
+
# > a.join("\n",",")
|
752
|
+
# => "a,b,c\nd,e,f\ng,h,i"
|
753
|
+
#
|
740
754
|
|
741
755
|
def join (*argv)
|
742
756
|
case argv.size
|
743
757
|
when 0
|
744
758
|
return to_a.join()
|
745
759
|
when 1
|
746
|
-
|
760
|
+
sep = argv.shift
|
761
|
+
return to_a.join(sep)
|
747
762
|
else
|
748
763
|
sep = argv.shift
|
749
764
|
return self[:i, false].map { |s|
|
@@ -786,11 +801,21 @@ class CArray
|
|
786
801
|
|
787
802
|
#
|
788
803
|
# ref = CA_INT([[0,1,2],[1,2,0],[2,0,1]])
|
804
|
+
# a = CArray.int(3,3).seq(1)
|
805
|
+
# b = CArray.int(3,3).seq(11)
|
806
|
+
# c = CArray.int(3,3).seq(21)
|
807
|
+
#
|
808
|
+
# CArray.pickup(CA_OBJECT, ref, [a,b,c])
|
809
|
+
# => <CArray.object(3,3): elem=9 mem=72b
|
810
|
+
# [ [ 1, 12, 23 ],
|
811
|
+
# [ 14, 25, 6 ],
|
812
|
+
# [ 27, 8, 19 ] ]>
|
813
|
+
#
|
789
814
|
# CArray.pickup(CA_OBJECT, ref, ["a","b","c"])
|
790
815
|
# => <CArray.object(3,3): elem=9 mem=36b
|
791
|
-
#
|
792
|
-
#
|
793
|
-
#
|
816
|
+
# [ [ "a", "b", "c" ],
|
817
|
+
# [ "b", "c", "a" ],
|
818
|
+
# [ "c", "a", "b" ] ]>
|
794
819
|
#
|
795
820
|
def self.pickup (data_type, ref, args)
|
796
821
|
out = ref.template(data_type)
|
@@ -980,7 +1005,17 @@ class CArray
|
|
980
1005
|
end
|
981
1006
|
end
|
982
1007
|
|
983
|
-
#
|
1008
|
+
# Returns object carray has elements of splitted carray at dimensions
|
1009
|
+
# which is given by arguments
|
1010
|
+
#
|
1011
|
+
# a = CA_INT([[1,2,3], [4,5,6], [7,8,9]])
|
1012
|
+
#
|
1013
|
+
# a.split(0)
|
1014
|
+
# [1,2,3], [4,5,6], [7,8,9]
|
1015
|
+
#
|
1016
|
+
# a.split(1)
|
1017
|
+
# [1,4,7], [2,5,8], [3,6,9]
|
1018
|
+
#
|
984
1019
|
|
985
1020
|
def split (*argv)
|
986
1021
|
odim = dim.values_at(*argv)
|
@@ -997,13 +1032,14 @@ class CArray
|
|
997
1032
|
return out
|
998
1033
|
end
|
999
1034
|
|
1000
|
-
|
1001
1035
|
end
|
1002
1036
|
|
1003
1037
|
class CAUnboundRepeat
|
1038
|
+
|
1004
1039
|
def template (*argv, &block)
|
1005
1040
|
return parent.template(*argv,&block)[*spec.map{|x| x != :* ? nil : x}]
|
1006
1041
|
end
|
1042
|
+
|
1007
1043
|
end
|
1008
1044
|
|
1009
1045
|
class Numeric
|
@@ -1026,37 +1062,21 @@ class Numeric
|
|
1026
1062
|
end
|
1027
1063
|
end
|
1028
1064
|
|
1029
|
-
|
1030
|
-
:boolean,
|
1031
|
-
:int8,
|
1032
|
-
:uint8,
|
1033
|
-
:int16,
|
1034
|
-
:uint16,
|
1035
|
-
:int32,
|
1036
|
-
:uint32,
|
1037
|
-
:int64,
|
1038
|
-
:uint64,
|
1039
|
-
:float32,
|
1040
|
-
:float64,
|
1041
|
-
:float128,
|
1042
|
-
:cmplx64,
|
1043
|
-
:cmplx128,
|
1044
|
-
:cmplx256,
|
1045
|
-
:byte,
|
1046
|
-
:short,
|
1047
|
-
:int,
|
1048
|
-
:float,
|
1049
|
-
:double,
|
1050
|
-
:complex,
|
1051
|
-
:dcomplex,
|
1052
|
-
:object
|
1053
|
-
].each do |name|
|
1054
|
-
class_eval %{
|
1055
|
-
def #{name} ()
|
1056
|
-
CScalar.new(#{name.inspect}) {self}
|
1057
|
-
end
|
1058
|
-
}
|
1059
|
-
end
|
1065
|
+
end
|
1060
1066
|
|
1067
|
+
module CA
|
1068
|
+
|
1069
|
+
def self.meshgrid (*args)
|
1070
|
+
dim = args.map(&:size)
|
1071
|
+
out = []
|
1072
|
+
args.each_with_index do |arg, i|
|
1073
|
+
newdim = dim.dup
|
1074
|
+
newdim[i] = :%
|
1075
|
+
out[i] = arg[*newdim].to_ca
|
1076
|
+
end
|
1077
|
+
return *out
|
1078
|
+
end
|
1079
|
+
|
1061
1080
|
end
|
1062
1081
|
|
1082
|
+
|
data/lib/carray/base/obsolete.rb
CHANGED
@@ -71,6 +71,7 @@ class CArray
|
|
71
71
|
return b
|
72
72
|
end
|
73
73
|
|
74
|
+
|
74
75
|
=begin
|
75
76
|
def histogram (klass)
|
76
77
|
c = CArray.int32(klass.elements-1)
|
@@ -91,3 +92,40 @@ class CArray
|
|
91
92
|
=end
|
92
93
|
|
93
94
|
end
|
95
|
+
|
96
|
+
class Numeric
|
97
|
+
|
98
|
+
[
|
99
|
+
:boolean,
|
100
|
+
:int8,
|
101
|
+
:uint8,
|
102
|
+
:int16,
|
103
|
+
:uint16,
|
104
|
+
:int32,
|
105
|
+
:uint32,
|
106
|
+
:int64,
|
107
|
+
:uint64,
|
108
|
+
:float32,
|
109
|
+
:float64,
|
110
|
+
:float128,
|
111
|
+
:cmplx64,
|
112
|
+
:cmplx128,
|
113
|
+
:cmplx256,
|
114
|
+
:byte,
|
115
|
+
:short,
|
116
|
+
:int,
|
117
|
+
:float,
|
118
|
+
:double,
|
119
|
+
:complex,
|
120
|
+
:dcomplex,
|
121
|
+
:object
|
122
|
+
].each do |name|
|
123
|
+
class_eval %{
|
124
|
+
def #{name} ()
|
125
|
+
warn "Numeric##{name} will be obsolete"
|
126
|
+
CScalar.new(#{name.inspect}) {self}
|
127
|
+
end
|
128
|
+
}
|
129
|
+
end
|
130
|
+
|
131
|
+
end
|
@@ -28,7 +28,7 @@ class CA::Gnuplot # :nodoc:
|
|
28
28
|
TMPDIR = "."
|
29
29
|
end
|
30
30
|
|
31
|
-
def initialize (command = "gnuplot", stdout: STDOUT, &block)
|
31
|
+
def initialize (command = "gnuplot", stdout: STDOUT, timezone: "", &block)
|
32
32
|
begin
|
33
33
|
@io, @stdout, @stderr = Open3.popen3(command + " -noraise")
|
34
34
|
rescue NotImplementedError
|
@@ -59,7 +59,7 @@ class CA::Gnuplot # :nodoc:
|
|
59
59
|
|
60
60
|
@gnuplot_version = evaluate("GPVAL_VERSION").to_f
|
61
61
|
|
62
|
-
epoch = evaluate %{strftime("%Y-%m-%d",0)}
|
62
|
+
epoch = evaluate %{strftime("%Y-%m-%d %H:%M:%S #{timezone}",0)}
|
63
63
|
@EP_T = Time.parse(epoch)
|
64
64
|
@EP_D = Date.parse(epoch)
|
65
65
|
@EP_DT = DateTime.parse(epoch)
|
@@ -428,35 +428,47 @@ class CA::Gnuplot # :nodoc:
|
|
428
428
|
put("set output '#{text}'")
|
429
429
|
end
|
430
430
|
|
431
|
-
def time (data)
|
431
|
+
def time (data, timezone = nil)
|
432
|
+
|
433
|
+
if timezone
|
434
|
+
epoch = evaluate %{strftime("%Y-%m-%d %H:%M:%S #{timezone}",0)}
|
435
|
+
ep_t = Time.parse(epoch)
|
436
|
+
ep_d = Date.parse(epoch)
|
437
|
+
ep_dt = DateTime.parse(epoch)
|
438
|
+
else
|
439
|
+
ep_t = @EP_T
|
440
|
+
ep_d = @EP_D
|
441
|
+
ep_dt = @EP_DT
|
442
|
+
end
|
443
|
+
|
432
444
|
case data
|
433
445
|
when Numeric
|
434
446
|
data
|
435
447
|
when String
|
436
448
|
Time.parse(data) - @EP_T
|
437
449
|
when Time
|
438
|
-
data -
|
450
|
+
data - ep_t
|
439
451
|
when Date
|
440
|
-
(data -
|
452
|
+
(data - ep_d)*86400
|
441
453
|
when DateTime
|
442
|
-
(data -
|
454
|
+
(data - ep_dt)*86400
|
443
455
|
when CArray
|
444
456
|
return data.convert(CA_DOUBLE){|x|
|
445
457
|
case x
|
446
458
|
when Numeric
|
447
459
|
x
|
448
460
|
when Time
|
449
|
-
x -
|
461
|
+
x - ep_t
|
450
462
|
when Date
|
451
|
-
(x -
|
463
|
+
(x - ep_d)*86400
|
452
464
|
when DateTime
|
453
|
-
(x -
|
465
|
+
(x - ep_dt)*86400
|
454
466
|
when String
|
455
|
-
Time.parse(x) -
|
467
|
+
Time.parse(x) - ep_t
|
456
468
|
end
|
457
469
|
}
|
458
470
|
when Range
|
459
|
-
time(data.first)..time(data.last)
|
471
|
+
time(data.first, timezone)..time(data.last, timezone)
|
460
472
|
end
|
461
473
|
end
|
462
474
|
|
data/mkmf.log
ADDED
@@ -0,0 +1,140 @@
|
|
1
|
+
have_header: checking for sys/types.h... -------------------- yes
|
2
|
+
|
3
|
+
"clang -o conftest -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin17 -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/backward -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0 -I. -I/Users/moto/.rbenv/versions/2.4.1/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 conftest.c -L. -L/Users/moto/.rbenv/versions/2.4.1/lib -L. -L/Users/moto/.rbenv/versions/2.4.1/lib -fstack-protector -L/usr/local/lib -lruby-static -framework CoreFoundation -lpthread -lgmp -ldl -lobjc "
|
4
|
+
ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd and library file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation are out of sync. Falling back to library file for linking.
|
5
|
+
checked program was:
|
6
|
+
/* begin */
|
7
|
+
1: #include "ruby.h"
|
8
|
+
2:
|
9
|
+
3: int main(int argc, char **argv)
|
10
|
+
4: {
|
11
|
+
5: return 0;
|
12
|
+
6: }
|
13
|
+
/* end */
|
14
|
+
|
15
|
+
"clang -E -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin17 -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/backward -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0 -I. -I/Users/moto/.rbenv/versions/2.4.1/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 conftest.c -o conftest.i"
|
16
|
+
checked program was:
|
17
|
+
/* begin */
|
18
|
+
1: #include "ruby.h"
|
19
|
+
2:
|
20
|
+
3: #include <sys/types.h>
|
21
|
+
/* end */
|
22
|
+
|
23
|
+
--------------------
|
24
|
+
|
25
|
+
have_header: checking for stdint.h... -------------------- yes
|
26
|
+
|
27
|
+
"clang -E -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin17 -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/backward -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0 -I. -I/Users/moto/.rbenv/versions/2.4.1/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 conftest.c -o conftest.i"
|
28
|
+
checked program was:
|
29
|
+
/* begin */
|
30
|
+
1: #include "ruby.h"
|
31
|
+
2:
|
32
|
+
3: #include <stdint.h>
|
33
|
+
/* end */
|
34
|
+
|
35
|
+
--------------------
|
36
|
+
|
37
|
+
have_type: checking for int8_t in ruby.h,sys/types.h,stdint.h... -------------------- yes
|
38
|
+
|
39
|
+
"clang -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin17 -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/backward -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0 -I. -I/Users/moto/.rbenv/versions/2.4.1/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 -c conftest.c"
|
40
|
+
checked program was:
|
41
|
+
/* begin */
|
42
|
+
1: #include "ruby.h"
|
43
|
+
2:
|
44
|
+
3: #include <ruby.h>
|
45
|
+
4: #include <sys/types.h>
|
46
|
+
5: #include <stdint.h>
|
47
|
+
6:
|
48
|
+
7: /*top*/
|
49
|
+
8: typedef int8_t conftest_type;
|
50
|
+
9: int conftestval[sizeof(conftest_type)?1:-1];
|
51
|
+
/* end */
|
52
|
+
|
53
|
+
--------------------
|
54
|
+
|
55
|
+
have_type: checking for uint8_t in ruby.h,sys/types.h,stdint.h... -------------------- yes
|
56
|
+
|
57
|
+
"clang -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin17 -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/backward -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0 -I. -I/Users/moto/.rbenv/versions/2.4.1/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 -c conftest.c"
|
58
|
+
checked program was:
|
59
|
+
/* begin */
|
60
|
+
1: #include "ruby.h"
|
61
|
+
2:
|
62
|
+
3: #include <ruby.h>
|
63
|
+
4: #include <sys/types.h>
|
64
|
+
5: #include <stdint.h>
|
65
|
+
6:
|
66
|
+
7: /*top*/
|
67
|
+
8: typedef uint8_t conftest_type;
|
68
|
+
9: int conftestval[sizeof(conftest_type)?1:-1];
|
69
|
+
/* end */
|
70
|
+
|
71
|
+
--------------------
|
72
|
+
|
73
|
+
have_type: checking for int16_t in ruby.h,sys/types.h,stdint.h... -------------------- yes
|
74
|
+
|
75
|
+
"clang -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin17 -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/backward -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0 -I. -I/Users/moto/.rbenv/versions/2.4.1/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 -c conftest.c"
|
76
|
+
checked program was:
|
77
|
+
/* begin */
|
78
|
+
1: #include "ruby.h"
|
79
|
+
2:
|
80
|
+
3: #include <ruby.h>
|
81
|
+
4: #include <sys/types.h>
|
82
|
+
5: #include <stdint.h>
|
83
|
+
6:
|
84
|
+
7: /*top*/
|
85
|
+
8: typedef int16_t conftest_type;
|
86
|
+
9: int conftestval[sizeof(conftest_type)?1:-1];
|
87
|
+
/* end */
|
88
|
+
|
89
|
+
--------------------
|
90
|
+
|
91
|
+
have_type: checking for uint16_t in ruby.h,sys/types.h,stdint.h... -------------------- yes
|
92
|
+
|
93
|
+
"clang -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin17 -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/backward -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0 -I. -I/Users/moto/.rbenv/versions/2.4.1/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 -c conftest.c"
|
94
|
+
checked program was:
|
95
|
+
/* begin */
|
96
|
+
1: #include "ruby.h"
|
97
|
+
2:
|
98
|
+
3: #include <ruby.h>
|
99
|
+
4: #include <sys/types.h>
|
100
|
+
5: #include <stdint.h>
|
101
|
+
6:
|
102
|
+
7: /*top*/
|
103
|
+
8: typedef uint16_t conftest_type;
|
104
|
+
9: int conftestval[sizeof(conftest_type)?1:-1];
|
105
|
+
/* end */
|
106
|
+
|
107
|
+
--------------------
|
108
|
+
|
109
|
+
have_type: checking for int32_t in ruby.h,sys/types.h,stdint.h... -------------------- yes
|
110
|
+
|
111
|
+
"clang -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin17 -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/backward -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0 -I. -I/Users/moto/.rbenv/versions/2.4.1/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 -c conftest.c"
|
112
|
+
checked program was:
|
113
|
+
/* begin */
|
114
|
+
1: #include "ruby.h"
|
115
|
+
2:
|
116
|
+
3: #include <ruby.h>
|
117
|
+
4: #include <sys/types.h>
|
118
|
+
5: #include <stdint.h>
|
119
|
+
6:
|
120
|
+
7: /*top*/
|
121
|
+
8: typedef int32_t conftest_type;
|
122
|
+
9: int conftestval[sizeof(conftest_type)?1:-1];
|
123
|
+
/* end */
|
124
|
+
|
125
|
+
--------------------
|
126
|
+
|
127
|
+
"clang -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin17 -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/backward -I/Users/moto/.rbenv/versions/2.4.1/include/ruby-2.4.0 -I. -I/Users/moto/.rbenv/versions/2.4.1/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 -c conftest.c"
|
128
|
+
checked program was:
|
129
|
+
/* begin */
|
130
|
+
1: #include "ruby.h"
|
131
|
+
2:
|
132
|
+
3: #include <ruby.h>
|
133
|
+
4: #include <sys/types.h>
|
134
|
+
5: #include <stdint.h>
|
135
|
+
6:
|
136
|
+
7: /*top*/
|
137
|
+
8: typedef uint32_t conftest_type;
|
138
|
+
9: int conftestval[sizeof(conftest_type)?1:-1];
|
139
|
+
/* end */
|
140
|
+
|
data/version.h
CHANGED
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
---------------------------------------------------------------------------- */
|
12
12
|
|
13
|
-
#define CA_VERSION "1.3.
|
14
|
-
#define CA_VERSION_CODE
|
13
|
+
#define CA_VERSION "1.3.2"
|
14
|
+
#define CA_VERSION_CODE 132
|
15
15
|
#define CA_VERSION_MAJOR 1
|
16
16
|
#define CA_VERSION_MINOR 3
|
17
|
-
#define CA_VERSION_TEENY
|
18
|
-
#define CA_VERSION_DATE "
|
17
|
+
#define CA_VERSION_TEENY 2
|
18
|
+
#define CA_VERSION_DATE "2018/12/10"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carray
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroki Motoyoshi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10
|
11
|
+
date: 2018-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: narray
|
@@ -227,6 +227,7 @@ files:
|
|
227
227
|
- lib/carray/object/ca_obj_link.rb
|
228
228
|
- lib/carray/object/ca_obj_pack.rb
|
229
229
|
- mkmath.rb
|
230
|
+
- mkmf.log
|
230
231
|
- mt19937ar.c
|
231
232
|
- mt19937ar.h
|
232
233
|
- rdoc_main.rb
|
@@ -303,7 +304,7 @@ licenses: []
|
|
303
304
|
metadata: {}
|
304
305
|
post_install_message:
|
305
306
|
rdoc_options:
|
306
|
-
- "
|
307
|
+
- "-m rdoc_main.rb"
|
307
308
|
- rdoc_main.rb
|
308
309
|
- rdoc_ext.rb
|
309
310
|
- rdoc_math.rb
|
@@ -360,7 +361,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
360
361
|
version: '0'
|
361
362
|
requirements: []
|
362
363
|
rubyforge_project:
|
363
|
-
rubygems_version: 2.
|
364
|
+
rubygems_version: 2.7.7
|
364
365
|
signing_key:
|
365
366
|
specification_version: 4
|
366
367
|
summary: Multi-dimesional array class
|