numo-narray 0.9.0.4 → 0.9.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -8
- data/Rakefile +9 -0
- data/ext/numo/narray/array.c +178 -47
- data/ext/numo/narray/data.c +105 -97
- data/ext/numo/narray/depend.erb +6 -7
- data/ext/numo/narray/gen/cogen.rb +30 -7
- data/ext/numo/narray/gen/def/bit.rb +17 -14
- data/ext/numo/narray/gen/def/dcomplex.rb +19 -15
- data/ext/numo/narray/gen/def/dfloat.rb +17 -13
- data/ext/numo/narray/gen/def/int16.rb +16 -12
- data/ext/numo/narray/gen/def/int32.rb +16 -12
- data/ext/numo/narray/gen/def/int64.rb +16 -12
- data/ext/numo/narray/gen/def/int8.rb +16 -12
- data/ext/numo/narray/gen/def/robject.rb +18 -14
- data/ext/numo/narray/gen/def/scomplex.rb +19 -15
- data/ext/numo/narray/gen/def/sfloat.rb +17 -13
- data/ext/numo/narray/gen/def/uint16.rb +16 -12
- data/ext/numo/narray/gen/def/uint32.rb +16 -12
- data/ext/numo/narray/gen/def/uint64.rb +16 -12
- data/ext/numo/narray/gen/def/uint8.rb +16 -12
- data/ext/numo/narray/gen/erbpp2.rb +324 -0
- data/ext/numo/narray/gen/narray_def.rb +252 -0
- data/ext/numo/narray/gen/spec.rb +141 -71
- data/ext/numo/narray/gen/tmpl/accum.c +22 -9
- data/ext/numo/narray/gen/tmpl/accum_binary.c +29 -13
- data/ext/numo/narray/gen/tmpl/accum_index.c +38 -16
- data/ext/numo/narray/gen/tmpl/alloc_func.c +107 -0
- data/ext/numo/narray/gen/tmpl/allocate.c +1 -1
- data/ext/numo/narray/gen/tmpl/aref.c +1 -1
- data/ext/numo/narray/gen/tmpl/aset.c +4 -2
- data/ext/numo/narray/gen/tmpl/binary.c +4 -4
- data/ext/numo/narray/gen/tmpl/binary2.c +5 -5
- data/ext/numo/narray/gen/tmpl/binary_s.c +5 -5
- data/ext/numo/narray/gen/tmpl/bincount.c +4 -4
- data/ext/numo/narray/gen/tmpl/cast.c +9 -6
- data/ext/numo/narray/gen/tmpl/cast_array.c +4 -9
- data/ext/numo/narray/gen/tmpl/class.c +9 -0
- data/ext/numo/narray/gen/tmpl/clip.c +118 -0
- data/ext/numo/narray/gen/tmpl/coerce_cast.c +4 -2
- data/ext/numo/narray/gen/tmpl/cond_binary.c +5 -5
- data/ext/numo/narray/gen/tmpl/cond_unary.c +6 -6
- data/ext/numo/narray/gen/tmpl/cum.c +18 -9
- data/ext/numo/narray/gen/tmpl/each.c +2 -2
- data/ext/numo/narray/gen/tmpl/each_with_index.c +2 -2
- data/ext/numo/narray/gen/tmpl/extract.c +2 -2
- data/ext/numo/narray/gen/tmpl/extract_data.c +48 -0
- data/ext/numo/narray/gen/tmpl/eye.c +3 -3
- data/ext/numo/narray/gen/tmpl/fill.c +2 -2
- data/ext/numo/narray/gen/tmpl/format.c +5 -5
- data/ext/numo/narray/gen/tmpl/format_to_a.c +4 -4
- data/ext/numo/narray/gen/tmpl/frexp.c +37 -0
- data/ext/numo/narray/gen/tmpl/init_class.c +20 -0
- data/ext/numo/narray/gen/tmpl/init_module.c +12 -0
- data/ext/numo/narray/gen/tmpl/inspect.c +2 -2
- data/ext/numo/narray/gen/tmpl/lib.c +45 -0
- data/ext/numo/narray/gen/tmpl/logseq.c +1 -1
- data/ext/numo/narray/gen/tmpl/map_with_index.c +2 -2
- data/ext/numo/narray/gen/tmpl/median.c +31 -8
- data/ext/numo/narray/gen/tmpl/minmax.c +24 -24
- data/ext/numo/narray/gen/tmpl/module.c +9 -0
- data/ext/numo/narray/gen/tmpl/new_dim0.c +12 -0
- data/ext/numo/narray/gen/tmpl/poly.c +3 -3
- data/ext/numo/narray/gen/tmpl/pow.c +1 -1
- data/ext/numo/narray/gen/tmpl/powint.c +1 -1
- data/ext/numo/narray/gen/tmpl/qsort.c +10 -3
- data/ext/numo/narray/gen/tmpl/rand.c +1 -1
- data/ext/numo/narray/gen/tmpl/rand_norm.c +1 -1
- data/ext/numo/narray/gen/tmpl/seq.c +1 -1
- data/ext/numo/narray/gen/tmpl/set2.c +5 -5
- data/ext/numo/narray/gen/tmpl/sort.c +29 -14
- data/ext/numo/narray/gen/tmpl/sort_index.c +41 -20
- data/ext/numo/narray/gen/tmpl/store.c +11 -5
- data/ext/numo/narray/gen/tmpl/store_array.c +1 -1
- data/ext/numo/narray/gen/tmpl/store_bit.c +1 -1
- data/ext/numo/narray/gen/tmpl/store_from.c +1 -1
- data/ext/numo/narray/gen/tmpl/store_numeric.c +3 -16
- data/ext/numo/narray/gen/tmpl/to_a.c +2 -2
- data/ext/numo/narray/gen/tmpl/unary.c +7 -7
- data/ext/numo/narray/gen/tmpl/unary2.c +8 -8
- data/ext/numo/narray/gen/tmpl/unary_ret2.c +33 -0
- data/ext/numo/narray/gen/tmpl/unary_s.c +8 -8
- data/ext/numo/narray/gen/tmpl_bit/allocate.c +1 -5
- data/ext/numo/narray/gen/tmpl_bit/aref.c +1 -1
- data/ext/numo/narray/gen/tmpl_bit/aset.c +2 -2
- data/ext/numo/narray/gen/tmpl_bit/binary.c +8 -8
- data/ext/numo/narray/gen/tmpl_bit/bit_count.c +8 -8
- data/ext/numo/narray/gen/tmpl_bit/bit_reduce.c +6 -6
- data/ext/numo/narray/gen/tmpl_bit/each.c +2 -2
- data/ext/numo/narray/gen/tmpl_bit/each_with_index.c +2 -2
- data/ext/numo/narray/gen/tmpl_bit/extract.c +1 -1
- data/ext/numo/narray/gen/tmpl_bit/fill.c +2 -2
- data/ext/numo/narray/gen/tmpl_bit/format.c +5 -5
- data/ext/numo/narray/gen/tmpl_bit/format_to_a.c +2 -2
- data/ext/numo/narray/gen/tmpl_bit/inspect.c +2 -2
- data/ext/numo/narray/gen/tmpl_bit/mask.c +5 -5
- data/ext/numo/narray/gen/tmpl_bit/none_p.c +4 -4
- data/ext/numo/narray/gen/tmpl_bit/store_array.c +2 -2
- data/ext/numo/narray/gen/tmpl_bit/store_bit.c +1 -1
- data/ext/numo/narray/gen/tmpl_bit/store_from.c +1 -1
- data/ext/numo/narray/gen/tmpl_bit/to_a.c +2 -2
- data/ext/numo/narray/gen/tmpl_bit/unary.c +9 -9
- data/ext/numo/narray/gen/tmpl_bit/where.c +6 -6
- data/ext/numo/narray/gen/tmpl_bit/where2.c +8 -8
- data/ext/numo/narray/index.c +46 -30
- data/ext/numo/narray/math.c +12 -6
- data/ext/numo/narray/narray.c +242 -218
- data/ext/numo/narray/ndloop.c +17 -24
- data/ext/numo/narray/numo/intern.h +63 -67
- data/ext/numo/narray/numo/narray.h +38 -13
- data/ext/numo/narray/numo/ndloop.h +1 -1
- data/ext/numo/narray/numo/template.h +1 -1
- data/ext/numo/narray/numo/types/complex.h +8 -4
- data/ext/numo/narray/numo/types/complex_macro.h +118 -1
- data/ext/numo/narray/numo/types/float_macro.h +283 -6
- data/ext/numo/narray/numo/types/robj_macro.h +261 -9
- data/ext/numo/narray/numo/types/xint_macro.h +35 -0
- data/ext/numo/narray/struct.c +34 -15
- data/lib/erbpp.rb +5 -1
- data/lib/erbpp/line_number.rb +10 -3
- data/lib/erbpp/narray_def.rb +55 -25
- data/lib/numo/narray/extra.rb +638 -219
- data/numo-narray.gemspec +1 -0
- data/spec/narray_spec.rb +2 -2
- metadata +17 -14
- data/ext/numo/narray/gen/dtype.erb.c +0 -82
- data/ext/numo/narray/gen/tmpl/cast_numeric.c +0 -22
- data/ext/numo/narray/gen/tmpl/robj_allocate.c +0 -32
- data/ext/numo/narray/gen/tmpl_bit/cast.c +0 -37
- data/ext/numo/narray/gen/tmpl_bit/cast_array.c +0 -18
- data/ext/numo/narray/gen/tmpl_bit/cast_numeric.c +0 -22
- data/ext/numo/narray/gen/tmpl_bit/coerce_cast.c +0 -8
- data/ext/numo/narray/gen/tmpl_bit/map_with_index.c +0 -94
- data/ext/numo/narray/gen/tmpl_bit/store.c +0 -32
- data/ext/numo/narray/gen/tmpl_bit/store_numeric.c +0 -22
data/ext/numo/narray/depend.erb
CHANGED
@@ -13,21 +13,20 @@ TAGS : $(TAGSRC)
|
|
13
13
|
doc :
|
14
14
|
yard doc *.c types/*.c
|
15
15
|
|
16
|
-
C_TMPL = <%=Dir.glob("
|
16
|
+
C_TMPL = <%=Dir.glob("gen/tmpl*/*.c").join(" ")%>
|
17
17
|
|
18
|
-
COGEN =
|
19
|
-
|
20
|
-
DEPENDS = $(C_TMPL) $(DTYPE) <%= __dir__ %>/gen/*.rb
|
18
|
+
COGEN = gen/cogen.rb
|
19
|
+
DEPENDS = $(C_TMPL) gen/*.rb
|
21
20
|
|
22
21
|
<%
|
23
|
-
type_c = [
|
24
|
-
type_rb = Dir.glob("
|
22
|
+
type_c = []
|
23
|
+
type_rb = Dir.glob("gen/def/*.rb")
|
25
24
|
type_rb.each do |s|
|
26
25
|
type_c << c = "types/"+File.basename(s,".rb")+".c"
|
27
26
|
%>
|
28
27
|
<%=c%>: <%=s%> $(DEPENDS)
|
29
28
|
$(MAKEDIRS) $(@D) types
|
30
|
-
ruby $(COGEN) -l -o $@
|
29
|
+
ruby $(COGEN) -l -o $@ <%=s%>
|
31
30
|
<% end %>
|
32
31
|
|
33
32
|
src : <%= type_c.join(" ") %>
|
@@ -1,9 +1,11 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
2
|
|
3
|
+
thisdir = File.dirname(__FILE__)
|
3
4
|
libpath = File.absolute_path(File.dirname(__FILE__))+"/../../../../lib"
|
4
5
|
$LOAD_PATH.unshift libpath
|
5
6
|
|
6
|
-
|
7
|
+
require_relative "./narray_def"
|
8
|
+
|
7
9
|
while true
|
8
10
|
if ARGV[0] == "-l"
|
9
11
|
require "erbpp/line_number"
|
@@ -18,16 +20,37 @@ while true
|
|
18
20
|
end
|
19
21
|
end
|
20
22
|
|
21
|
-
|
22
|
-
puts "usage:\n ruby #{$0} [-l]
|
23
|
+
if ARGV.size != 1
|
24
|
+
puts "usage:\n ruby #{$0} [-l] erb_base [type_file]"
|
23
25
|
exit 1
|
24
26
|
end
|
25
27
|
|
26
|
-
|
28
|
+
type_file, = ARGV
|
29
|
+
type_name = File.basename(type_file,".rb")
|
30
|
+
|
31
|
+
erb_dir = ["tmpl"]
|
32
|
+
erb_dir.unshift("tmpl_bit") if (type_name == "bit")
|
33
|
+
erb_dir.map!{|d| File.join(thisdir,d)}
|
34
|
+
|
35
|
+
code = DefLib.new do
|
36
|
+
set erb_dir: erb_dir
|
37
|
+
set erb_suffix: ".c"
|
38
|
+
set ns_var: "mNumo"
|
39
|
+
|
40
|
+
set file_name: $output||""
|
41
|
+
set include_files: ["numo/types/#{type_name}.h"]
|
42
|
+
set lib_name: "numo_"+type_name
|
43
|
+
|
44
|
+
def_class do
|
45
|
+
extend NArrayMethod
|
46
|
+
extend NArrayType
|
47
|
+
eval File.read(type_file), binding, type_file
|
48
|
+
eval File.read(File.join(thisdir,"spec.rb")), binding, "spec.rb"
|
49
|
+
end
|
50
|
+
end.result
|
27
51
|
|
28
52
|
if $output
|
29
|
-
|
30
|
-
open($output,"w").write(s)
|
53
|
+
open($output,"w").write(code)
|
31
54
|
else
|
32
|
-
|
55
|
+
$stdout.write(code)
|
33
56
|
end
|
@@ -1,18 +1,21 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
set name: "bit"
|
2
|
+
set type_name: "bit"
|
3
|
+
set full_class_name: "Numo::Bit"
|
4
|
+
set class_name: "Bit"
|
5
|
+
set class_alias: nil
|
6
|
+
set class_var: "cT"
|
7
|
+
set ctype: "BIT_DIGIT"
|
3
8
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
is_comparable false
|
15
|
-
is_double_precision false
|
9
|
+
set has_math: false
|
10
|
+
set is_bit: true
|
11
|
+
set is_int: false
|
12
|
+
set is_unsigned: true
|
13
|
+
set is_float: false
|
14
|
+
set is_complex: false
|
15
|
+
set is_object: false
|
16
|
+
set is_real: false
|
17
|
+
set is_comparable: false
|
18
|
+
set is_double_precision: false
|
16
19
|
|
17
20
|
upcast_rb "Integer"
|
18
21
|
upcast_rb "Float", "DFloat"
|
@@ -1,19 +1,23 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
set name: "dcomplex"
|
2
|
+
set type_name: "dcomplex"
|
3
|
+
set full_class_name: "Numo::DComplex"
|
4
|
+
set class_name: "DComplex"
|
5
|
+
set class_alias: "Complex64"
|
6
|
+
set class_var: "cT"
|
7
|
+
set ctype: "dcomplex"
|
8
|
+
set real_class_name: "DFloat"
|
9
|
+
set real_ctype: "double"
|
6
10
|
|
7
|
-
has_math
|
8
|
-
is_bit
|
9
|
-
is_int
|
10
|
-
is_unsigned
|
11
|
-
is_float
|
12
|
-
is_real
|
13
|
-
is_complex
|
14
|
-
is_object
|
15
|
-
is_comparable
|
16
|
-
is_double_precision true
|
11
|
+
set has_math: true
|
12
|
+
set is_bit: false
|
13
|
+
set is_int: false
|
14
|
+
set is_unsigned: false
|
15
|
+
set is_float: true
|
16
|
+
set is_real: false
|
17
|
+
set is_complex: true
|
18
|
+
set is_object: false
|
19
|
+
set is_comparable: false
|
20
|
+
set is_double_precision: true
|
17
21
|
|
18
22
|
upcast_rb "Integer"
|
19
23
|
upcast_rb "Float"
|
@@ -1,17 +1,21 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
set name: "dfloat"
|
2
|
+
set type_name: "dfloat"
|
3
|
+
set full_class_name: "Numo::DFloat"
|
4
|
+
set class_name: "DFloat"
|
5
|
+
set class_alias: "Float64"
|
6
|
+
set class_var: "cT"
|
7
|
+
set ctype: "double"
|
4
8
|
|
5
|
-
has_math
|
6
|
-
is_bit
|
7
|
-
is_int
|
8
|
-
is_unsigned
|
9
|
-
is_float
|
10
|
-
is_complex
|
11
|
-
is_object
|
12
|
-
is_real
|
13
|
-
is_comparable
|
14
|
-
is_double_precision true
|
9
|
+
set has_math: true
|
10
|
+
set is_bit: false
|
11
|
+
set is_int: false
|
12
|
+
set is_unsigned: false
|
13
|
+
set is_float: true
|
14
|
+
set is_complex: false
|
15
|
+
set is_object: false
|
16
|
+
set is_real: true
|
17
|
+
set is_comparable: true
|
18
|
+
set is_double_precision: true
|
15
19
|
|
16
20
|
upcast_rb "Integer"
|
17
21
|
upcast_rb "Float"
|
@@ -1,16 +1,20 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
set name: "int16"
|
2
|
+
set type_name: "int16"
|
3
|
+
set full_class_name: "Numo::Int16"
|
4
|
+
set class_name: "Int16"
|
5
|
+
set class_var: "cT"
|
6
|
+
set ctype: "int16_t"
|
3
7
|
|
4
|
-
has_math
|
5
|
-
is_bit
|
6
|
-
is_int
|
7
|
-
is_unsigned
|
8
|
-
is_float
|
9
|
-
is_complex
|
10
|
-
is_object
|
11
|
-
is_real
|
12
|
-
is_comparable
|
13
|
-
is_double_precision false
|
8
|
+
set has_math: false
|
9
|
+
set is_bit: false
|
10
|
+
set is_int: true
|
11
|
+
set is_unsigned: false
|
12
|
+
set is_float: false
|
13
|
+
set is_complex: false
|
14
|
+
set is_object: false
|
15
|
+
set is_real: true
|
16
|
+
set is_comparable: true
|
17
|
+
set is_double_precision: false
|
14
18
|
|
15
19
|
upcast_rb "Integer"
|
16
20
|
upcast_rb "Float", "DFloat"
|
@@ -1,16 +1,20 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
set name: "int32"
|
2
|
+
set type_name: "int32"
|
3
|
+
set full_class_name: "Numo::Int32"
|
4
|
+
set class_name: "Int32"
|
5
|
+
set class_var: "cT"
|
6
|
+
set ctype: "int32_t"
|
3
7
|
|
4
|
-
has_math
|
5
|
-
is_bit
|
6
|
-
is_int
|
7
|
-
is_unsigned
|
8
|
-
is_float
|
9
|
-
is_complex
|
10
|
-
is_object
|
11
|
-
is_real
|
12
|
-
is_comparable
|
13
|
-
is_double_precision false
|
8
|
+
set has_math: false
|
9
|
+
set is_bit: false
|
10
|
+
set is_int: true
|
11
|
+
set is_unsigned: false
|
12
|
+
set is_float: false
|
13
|
+
set is_complex: false
|
14
|
+
set is_object: false
|
15
|
+
set is_real: true
|
16
|
+
set is_comparable: true
|
17
|
+
set is_double_precision: false
|
14
18
|
|
15
19
|
upcast_rb "Integer"
|
16
20
|
upcast_rb "Float", "DFloat"
|
@@ -1,16 +1,20 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
set name: "int64"
|
2
|
+
set type_name: "int64"
|
3
|
+
set full_class_name: "Numo::Int64"
|
4
|
+
set class_name: "Int64"
|
5
|
+
set class_var: "cT"
|
6
|
+
set ctype: "int64_t"
|
3
7
|
|
4
|
-
has_math
|
5
|
-
is_bit
|
6
|
-
is_int
|
7
|
-
is_unsigned
|
8
|
-
is_float
|
9
|
-
is_complex
|
10
|
-
is_object
|
11
|
-
is_real
|
12
|
-
is_comparable
|
13
|
-
is_double_precision false
|
8
|
+
set has_math: false
|
9
|
+
set is_bit: false
|
10
|
+
set is_int: true
|
11
|
+
set is_unsigned: false
|
12
|
+
set is_float: false
|
13
|
+
set is_complex: false
|
14
|
+
set is_object: false
|
15
|
+
set is_real: true
|
16
|
+
set is_comparable: true
|
17
|
+
set is_double_precision: false
|
14
18
|
|
15
19
|
upcast_rb "Integer"
|
16
20
|
upcast_rb "Float", "DFloat"
|
@@ -1,16 +1,20 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
set name: "int8"
|
2
|
+
set type_name: "int8"
|
3
|
+
set full_class_name: "Numo::Int8"
|
4
|
+
set class_name: "Int8"
|
5
|
+
set class_var: "cT"
|
6
|
+
set ctype: "int8_t"
|
3
7
|
|
4
|
-
has_math
|
5
|
-
is_bit
|
6
|
-
is_int
|
7
|
-
is_unsigned
|
8
|
-
is_float
|
9
|
-
is_complex
|
10
|
-
is_object
|
11
|
-
is_real
|
12
|
-
is_comparable
|
13
|
-
is_double_precision false
|
8
|
+
set has_math: false
|
9
|
+
set is_bit: false
|
10
|
+
set is_int: true
|
11
|
+
set is_unsigned: false
|
12
|
+
set is_float: false
|
13
|
+
set is_complex: false
|
14
|
+
set is_object: false
|
15
|
+
set is_real: true
|
16
|
+
set is_comparable: true
|
17
|
+
set is_double_precision: false
|
14
18
|
|
15
19
|
upcast_rb "Integer"
|
16
20
|
upcast_rb "Float", "DFloat"
|
@@ -1,18 +1,22 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
set name: "robject"
|
2
|
+
set type_name: "robject"
|
3
|
+
set full_class_name: "Numo::RObject"
|
4
|
+
set class_name: "RObject"
|
5
|
+
set class_var: "cT"
|
6
|
+
set ctype: "VALUE"
|
7
|
+
set real_class_name: "RObject"
|
8
|
+
set real_ctype: "VALUE"
|
5
9
|
|
6
|
-
has_math
|
7
|
-
is_bit
|
8
|
-
is_int
|
9
|
-
is_unsigned
|
10
|
-
is_float
|
11
|
-
is_real
|
12
|
-
is_complex
|
13
|
-
is_object
|
14
|
-
is_comparable
|
15
|
-
is_double_precision false
|
10
|
+
set has_math: false
|
11
|
+
set is_bit: false
|
12
|
+
set is_int: true
|
13
|
+
set is_unsigned: false
|
14
|
+
set is_float: true
|
15
|
+
set is_real: true
|
16
|
+
set is_complex: false
|
17
|
+
set is_object: true
|
18
|
+
set is_comparable: true
|
19
|
+
set is_double_precision: false
|
16
20
|
|
17
21
|
upcast_rb "Integer"
|
18
22
|
upcast_rb "Float"
|
@@ -1,19 +1,23 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
set name: "scomplex"
|
2
|
+
set type_name: "scomplex"
|
3
|
+
set full_class_name: "Numo::SComplex"
|
4
|
+
set class_name: "SComplex"
|
5
|
+
set class_alias: "Complex32"
|
6
|
+
set class_var: "cT"
|
7
|
+
set ctype: "Scomplex"
|
8
|
+
set real_class_name: "SFloat"
|
9
|
+
set real_ctype: "float"
|
6
10
|
|
7
|
-
has_math
|
8
|
-
is_bit
|
9
|
-
is_int
|
10
|
-
is_unsigned
|
11
|
-
is_float
|
12
|
-
is_real
|
13
|
-
is_complex
|
14
|
-
is_object
|
15
|
-
is_comparable
|
16
|
-
is_double_precision false
|
11
|
+
set has_math: true
|
12
|
+
set is_bit: false
|
13
|
+
set is_int: false
|
14
|
+
set is_unsigned: false
|
15
|
+
set is_float: true
|
16
|
+
set is_real: false
|
17
|
+
set is_complex: true
|
18
|
+
set is_object: false
|
19
|
+
set is_comparable: false
|
20
|
+
set is_double_precision: false
|
17
21
|
|
18
22
|
upcast_rb "Integer"
|
19
23
|
upcast_rb "Float"
|
@@ -1,17 +1,21 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
set name: "sfloat"
|
2
|
+
set type_name: "sfloat"
|
3
|
+
set full_class_name: "Numo::SFloat"
|
4
|
+
set class_name: "SFloat"
|
5
|
+
set class_alias: "Float32"
|
6
|
+
set class_var: "cT"
|
7
|
+
set ctype: "float"
|
4
8
|
|
5
|
-
has_math
|
6
|
-
is_bit
|
7
|
-
is_int
|
8
|
-
is_unsigned
|
9
|
-
is_float
|
10
|
-
is_complex
|
11
|
-
is_object
|
12
|
-
is_real
|
13
|
-
is_comparable
|
14
|
-
is_double_precision false
|
9
|
+
set has_math: true
|
10
|
+
set is_bit: false
|
11
|
+
set is_int: false
|
12
|
+
set is_unsigned: false
|
13
|
+
set is_float: true
|
14
|
+
set is_complex: false
|
15
|
+
set is_object: false
|
16
|
+
set is_real: true
|
17
|
+
set is_comparable: true
|
18
|
+
set is_double_precision: false
|
15
19
|
|
16
20
|
upcast_rb "Integer"
|
17
21
|
upcast_rb "Float"
|
@@ -1,16 +1,20 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
set name: "uint16"
|
2
|
+
set type_name: "uint16"
|
3
|
+
set full_class_name: "Numo::UInt16"
|
4
|
+
set class_name: "UInt16"
|
5
|
+
set class_var: "cT"
|
6
|
+
set ctype: "u_int16_t"
|
3
7
|
|
4
|
-
has_math
|
5
|
-
is_bit
|
6
|
-
is_int
|
7
|
-
is_unsigned
|
8
|
-
is_float
|
9
|
-
is_complex
|
10
|
-
is_object
|
11
|
-
is_real
|
12
|
-
is_comparable
|
13
|
-
is_double_precision false
|
8
|
+
set has_math: false
|
9
|
+
set is_bit: false
|
10
|
+
set is_int: true
|
11
|
+
set is_unsigned: true
|
12
|
+
set is_float: false
|
13
|
+
set is_complex: false
|
14
|
+
set is_object: false
|
15
|
+
set is_real: true
|
16
|
+
set is_comparable: true
|
17
|
+
set is_double_precision: false
|
14
18
|
|
15
19
|
upcast_rb "Integer"
|
16
20
|
upcast_rb "Float", "DFloat"
|