cumo 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +27 -0
- data/.travis.yml +5 -0
- data/3rd_party/mkmf-cu/.gitignore +36 -0
- data/3rd_party/mkmf-cu/Gemfile +3 -0
- data/3rd_party/mkmf-cu/LICENSE +21 -0
- data/3rd_party/mkmf-cu/README.md +36 -0
- data/3rd_party/mkmf-cu/Rakefile +11 -0
- data/3rd_party/mkmf-cu/bin/mkmf-cu-nvcc +4 -0
- data/3rd_party/mkmf-cu/lib/mkmf-cu.rb +32 -0
- data/3rd_party/mkmf-cu/lib/mkmf-cu/cli.rb +80 -0
- data/3rd_party/mkmf-cu/lib/mkmf-cu/nvcc.rb +157 -0
- data/3rd_party/mkmf-cu/mkmf-cu.gemspec +16 -0
- data/3rd_party/mkmf-cu/test/test_mkmf-cu.rb +67 -0
- data/CODE_OF_CONDUCT.md +46 -0
- data/Gemfile +8 -0
- data/LICENSE.txt +82 -0
- data/README.md +252 -0
- data/Rakefile +43 -0
- data/bench/broadcast_fp32.rb +138 -0
- data/bench/cumo_bench.rb +193 -0
- data/bench/numo_bench.rb +138 -0
- data/bench/reduction_fp32.rb +117 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/cumo.gemspec +32 -0
- data/ext/cumo/cuda/cublas.c +278 -0
- data/ext/cumo/cuda/driver.c +421 -0
- data/ext/cumo/cuda/memory_pool.cpp +185 -0
- data/ext/cumo/cuda/memory_pool_impl.cpp +308 -0
- data/ext/cumo/cuda/memory_pool_impl.hpp +370 -0
- data/ext/cumo/cuda/memory_pool_impl_test.cpp +554 -0
- data/ext/cumo/cuda/nvrtc.c +207 -0
- data/ext/cumo/cuda/runtime.c +167 -0
- data/ext/cumo/cumo.c +148 -0
- data/ext/cumo/depend.erb +58 -0
- data/ext/cumo/extconf.rb +179 -0
- data/ext/cumo/include/cumo.h +25 -0
- data/ext/cumo/include/cumo/compat.h +23 -0
- data/ext/cumo/include/cumo/cuda/cublas.h +153 -0
- data/ext/cumo/include/cumo/cuda/cumo_thrust.hpp +187 -0
- data/ext/cumo/include/cumo/cuda/cumo_thrust_complex.hpp +79 -0
- data/ext/cumo/include/cumo/cuda/driver.h +22 -0
- data/ext/cumo/include/cumo/cuda/memory_pool.h +28 -0
- data/ext/cumo/include/cumo/cuda/nvrtc.h +22 -0
- data/ext/cumo/include/cumo/cuda/runtime.h +40 -0
- data/ext/cumo/include/cumo/indexer.h +238 -0
- data/ext/cumo/include/cumo/intern.h +142 -0
- data/ext/cumo/include/cumo/intern_fwd.h +38 -0
- data/ext/cumo/include/cumo/intern_kernel.h +6 -0
- data/ext/cumo/include/cumo/narray.h +429 -0
- data/ext/cumo/include/cumo/narray_kernel.h +149 -0
- data/ext/cumo/include/cumo/ndloop.h +95 -0
- data/ext/cumo/include/cumo/reduce_kernel.h +126 -0
- data/ext/cumo/include/cumo/template.h +158 -0
- data/ext/cumo/include/cumo/template_kernel.h +77 -0
- data/ext/cumo/include/cumo/types/bit.h +40 -0
- data/ext/cumo/include/cumo/types/bit_kernel.h +34 -0
- data/ext/cumo/include/cumo/types/complex.h +402 -0
- data/ext/cumo/include/cumo/types/complex_kernel.h +414 -0
- data/ext/cumo/include/cumo/types/complex_macro.h +382 -0
- data/ext/cumo/include/cumo/types/complex_macro_kernel.h +186 -0
- data/ext/cumo/include/cumo/types/dcomplex.h +46 -0
- data/ext/cumo/include/cumo/types/dcomplex_kernel.h +13 -0
- data/ext/cumo/include/cumo/types/dfloat.h +47 -0
- data/ext/cumo/include/cumo/types/dfloat_kernel.h +14 -0
- data/ext/cumo/include/cumo/types/float_def.h +34 -0
- data/ext/cumo/include/cumo/types/float_def_kernel.h +39 -0
- data/ext/cumo/include/cumo/types/float_macro.h +191 -0
- data/ext/cumo/include/cumo/types/float_macro_kernel.h +158 -0
- data/ext/cumo/include/cumo/types/int16.h +24 -0
- data/ext/cumo/include/cumo/types/int16_kernel.h +23 -0
- data/ext/cumo/include/cumo/types/int32.h +24 -0
- data/ext/cumo/include/cumo/types/int32_kernel.h +19 -0
- data/ext/cumo/include/cumo/types/int64.h +24 -0
- data/ext/cumo/include/cumo/types/int64_kernel.h +19 -0
- data/ext/cumo/include/cumo/types/int8.h +24 -0
- data/ext/cumo/include/cumo/types/int8_kernel.h +19 -0
- data/ext/cumo/include/cumo/types/int_macro.h +67 -0
- data/ext/cumo/include/cumo/types/int_macro_kernel.h +48 -0
- data/ext/cumo/include/cumo/types/real_accum.h +486 -0
- data/ext/cumo/include/cumo/types/real_accum_kernel.h +101 -0
- data/ext/cumo/include/cumo/types/robj_macro.h +80 -0
- data/ext/cumo/include/cumo/types/robj_macro_kernel.h +0 -0
- data/ext/cumo/include/cumo/types/robject.h +27 -0
- data/ext/cumo/include/cumo/types/robject_kernel.h +7 -0
- data/ext/cumo/include/cumo/types/scomplex.h +46 -0
- data/ext/cumo/include/cumo/types/scomplex_kernel.h +13 -0
- data/ext/cumo/include/cumo/types/sfloat.h +48 -0
- data/ext/cumo/include/cumo/types/sfloat_kernel.h +14 -0
- data/ext/cumo/include/cumo/types/uint16.h +25 -0
- data/ext/cumo/include/cumo/types/uint16_kernel.h +20 -0
- data/ext/cumo/include/cumo/types/uint32.h +25 -0
- data/ext/cumo/include/cumo/types/uint32_kernel.h +20 -0
- data/ext/cumo/include/cumo/types/uint64.h +25 -0
- data/ext/cumo/include/cumo/types/uint64_kernel.h +20 -0
- data/ext/cumo/include/cumo/types/uint8.h +25 -0
- data/ext/cumo/include/cumo/types/uint8_kernel.h +20 -0
- data/ext/cumo/include/cumo/types/uint_macro.h +58 -0
- data/ext/cumo/include/cumo/types/uint_macro_kernel.h +38 -0
- data/ext/cumo/include/cumo/types/xint_macro.h +169 -0
- data/ext/cumo/include/cumo/types/xint_macro_kernel.h +88 -0
- data/ext/cumo/narray/SFMT-params.h +97 -0
- data/ext/cumo/narray/SFMT-params19937.h +46 -0
- data/ext/cumo/narray/SFMT.c +620 -0
- data/ext/cumo/narray/SFMT.h +167 -0
- data/ext/cumo/narray/array.c +638 -0
- data/ext/cumo/narray/data.c +961 -0
- data/ext/cumo/narray/gen/cogen.rb +56 -0
- data/ext/cumo/narray/gen/cogen_kernel.rb +58 -0
- data/ext/cumo/narray/gen/def/bit.rb +37 -0
- data/ext/cumo/narray/gen/def/dcomplex.rb +39 -0
- data/ext/cumo/narray/gen/def/dfloat.rb +37 -0
- data/ext/cumo/narray/gen/def/int16.rb +36 -0
- data/ext/cumo/narray/gen/def/int32.rb +36 -0
- data/ext/cumo/narray/gen/def/int64.rb +36 -0
- data/ext/cumo/narray/gen/def/int8.rb +36 -0
- data/ext/cumo/narray/gen/def/robject.rb +37 -0
- data/ext/cumo/narray/gen/def/scomplex.rb +39 -0
- data/ext/cumo/narray/gen/def/sfloat.rb +37 -0
- data/ext/cumo/narray/gen/def/uint16.rb +36 -0
- data/ext/cumo/narray/gen/def/uint32.rb +36 -0
- data/ext/cumo/narray/gen/def/uint64.rb +36 -0
- data/ext/cumo/narray/gen/def/uint8.rb +36 -0
- data/ext/cumo/narray/gen/erbpp2.rb +346 -0
- data/ext/cumo/narray/gen/narray_def.rb +268 -0
- data/ext/cumo/narray/gen/spec.rb +425 -0
- data/ext/cumo/narray/gen/tmpl/accum.c +86 -0
- data/ext/cumo/narray/gen/tmpl/accum_binary.c +121 -0
- data/ext/cumo/narray/gen/tmpl/accum_binary_kernel.cu +61 -0
- data/ext/cumo/narray/gen/tmpl/accum_index.c +119 -0
- data/ext/cumo/narray/gen/tmpl/accum_index_kernel.cu +66 -0
- data/ext/cumo/narray/gen/tmpl/accum_kernel.cu +12 -0
- data/ext/cumo/narray/gen/tmpl/alloc_func.c +107 -0
- data/ext/cumo/narray/gen/tmpl/allocate.c +37 -0
- data/ext/cumo/narray/gen/tmpl/aref.c +66 -0
- data/ext/cumo/narray/gen/tmpl/aref_cpu.c +50 -0
- data/ext/cumo/narray/gen/tmpl/aset.c +56 -0
- data/ext/cumo/narray/gen/tmpl/binary.c +162 -0
- data/ext/cumo/narray/gen/tmpl/binary2.c +70 -0
- data/ext/cumo/narray/gen/tmpl/binary2_kernel.cu +15 -0
- data/ext/cumo/narray/gen/tmpl/binary_kernel.cu +31 -0
- data/ext/cumo/narray/gen/tmpl/binary_s.c +45 -0
- data/ext/cumo/narray/gen/tmpl/binary_s_kernel.cu +15 -0
- data/ext/cumo/narray/gen/tmpl/bincount.c +181 -0
- data/ext/cumo/narray/gen/tmpl/cast.c +44 -0
- data/ext/cumo/narray/gen/tmpl/cast_array.c +13 -0
- data/ext/cumo/narray/gen/tmpl/class.c +9 -0
- data/ext/cumo/narray/gen/tmpl/class_kernel.cu +6 -0
- data/ext/cumo/narray/gen/tmpl/clip.c +121 -0
- data/ext/cumo/narray/gen/tmpl/coerce_cast.c +10 -0
- data/ext/cumo/narray/gen/tmpl/complex_accum_kernel.cu +129 -0
- data/ext/cumo/narray/gen/tmpl/cond_binary.c +68 -0
- data/ext/cumo/narray/gen/tmpl/cond_binary_kernel.cu +18 -0
- data/ext/cumo/narray/gen/tmpl/cond_unary.c +46 -0
- data/ext/cumo/narray/gen/tmpl/cum.c +50 -0
- data/ext/cumo/narray/gen/tmpl/each.c +47 -0
- data/ext/cumo/narray/gen/tmpl/each_with_index.c +70 -0
- data/ext/cumo/narray/gen/tmpl/ewcomp.c +79 -0
- data/ext/cumo/narray/gen/tmpl/ewcomp_kernel.cu +19 -0
- data/ext/cumo/narray/gen/tmpl/extract.c +22 -0
- data/ext/cumo/narray/gen/tmpl/extract_cpu.c +26 -0
- data/ext/cumo/narray/gen/tmpl/extract_data.c +53 -0
- data/ext/cumo/narray/gen/tmpl/eye.c +105 -0
- data/ext/cumo/narray/gen/tmpl/eye_kernel.cu +19 -0
- data/ext/cumo/narray/gen/tmpl/fill.c +52 -0
- data/ext/cumo/narray/gen/tmpl/fill_kernel.cu +29 -0
- data/ext/cumo/narray/gen/tmpl/float_accum_kernel.cu +106 -0
- data/ext/cumo/narray/gen/tmpl/format.c +62 -0
- data/ext/cumo/narray/gen/tmpl/format_to_a.c +49 -0
- data/ext/cumo/narray/gen/tmpl/frexp.c +38 -0
- data/ext/cumo/narray/gen/tmpl/gemm.c +203 -0
- data/ext/cumo/narray/gen/tmpl/init_class.c +20 -0
- data/ext/cumo/narray/gen/tmpl/init_module.c +12 -0
- data/ext/cumo/narray/gen/tmpl/inspect.c +21 -0
- data/ext/cumo/narray/gen/tmpl/lib.c +50 -0
- data/ext/cumo/narray/gen/tmpl/lib_kernel.cu +24 -0
- data/ext/cumo/narray/gen/tmpl/logseq.c +102 -0
- data/ext/cumo/narray/gen/tmpl/logseq_kernel.cu +31 -0
- data/ext/cumo/narray/gen/tmpl/map_with_index.c +98 -0
- data/ext/cumo/narray/gen/tmpl/median.c +66 -0
- data/ext/cumo/narray/gen/tmpl/minmax.c +47 -0
- data/ext/cumo/narray/gen/tmpl/module.c +9 -0
- data/ext/cumo/narray/gen/tmpl/module_kernel.cu +1 -0
- data/ext/cumo/narray/gen/tmpl/new_dim0.c +15 -0
- data/ext/cumo/narray/gen/tmpl/new_dim0_kernel.cu +8 -0
- data/ext/cumo/narray/gen/tmpl/poly.c +50 -0
- data/ext/cumo/narray/gen/tmpl/pow.c +97 -0
- data/ext/cumo/narray/gen/tmpl/pow_kernel.cu +29 -0
- data/ext/cumo/narray/gen/tmpl/powint.c +17 -0
- data/ext/cumo/narray/gen/tmpl/qsort.c +212 -0
- data/ext/cumo/narray/gen/tmpl/rand.c +168 -0
- data/ext/cumo/narray/gen/tmpl/rand_norm.c +121 -0
- data/ext/cumo/narray/gen/tmpl/real_accum_kernel.cu +75 -0
- data/ext/cumo/narray/gen/tmpl/seq.c +112 -0
- data/ext/cumo/narray/gen/tmpl/seq_kernel.cu +43 -0
- data/ext/cumo/narray/gen/tmpl/set2.c +57 -0
- data/ext/cumo/narray/gen/tmpl/sort.c +48 -0
- data/ext/cumo/narray/gen/tmpl/sort_index.c +111 -0
- data/ext/cumo/narray/gen/tmpl/store.c +41 -0
- data/ext/cumo/narray/gen/tmpl/store_array.c +187 -0
- data/ext/cumo/narray/gen/tmpl/store_array_kernel.cu +58 -0
- data/ext/cumo/narray/gen/tmpl/store_bit.c +86 -0
- data/ext/cumo/narray/gen/tmpl/store_bit_kernel.cu +66 -0
- data/ext/cumo/narray/gen/tmpl/store_from.c +81 -0
- data/ext/cumo/narray/gen/tmpl/store_from_kernel.cu +58 -0
- data/ext/cumo/narray/gen/tmpl/store_kernel.cu +3 -0
- data/ext/cumo/narray/gen/tmpl/store_numeric.c +9 -0
- data/ext/cumo/narray/gen/tmpl/to_a.c +43 -0
- data/ext/cumo/narray/gen/tmpl/unary.c +132 -0
- data/ext/cumo/narray/gen/tmpl/unary2.c +60 -0
- data/ext/cumo/narray/gen/tmpl/unary_kernel.cu +72 -0
- data/ext/cumo/narray/gen/tmpl/unary_ret2.c +34 -0
- data/ext/cumo/narray/gen/tmpl/unary_s.c +86 -0
- data/ext/cumo/narray/gen/tmpl/unary_s_kernel.cu +58 -0
- data/ext/cumo/narray/gen/tmpl_bit/allocate.c +24 -0
- data/ext/cumo/narray/gen/tmpl_bit/aref.c +54 -0
- data/ext/cumo/narray/gen/tmpl_bit/aref_cpu.c +57 -0
- data/ext/cumo/narray/gen/tmpl_bit/aset.c +56 -0
- data/ext/cumo/narray/gen/tmpl_bit/binary.c +98 -0
- data/ext/cumo/narray/gen/tmpl_bit/bit_count.c +64 -0
- data/ext/cumo/narray/gen/tmpl_bit/bit_count_cpu.c +88 -0
- data/ext/cumo/narray/gen/tmpl_bit/bit_count_kernel.cu +76 -0
- data/ext/cumo/narray/gen/tmpl_bit/bit_reduce.c +133 -0
- data/ext/cumo/narray/gen/tmpl_bit/each.c +48 -0
- data/ext/cumo/narray/gen/tmpl_bit/each_with_index.c +70 -0
- data/ext/cumo/narray/gen/tmpl_bit/extract.c +30 -0
- data/ext/cumo/narray/gen/tmpl_bit/extract_cpu.c +29 -0
- data/ext/cumo/narray/gen/tmpl_bit/fill.c +69 -0
- data/ext/cumo/narray/gen/tmpl_bit/format.c +64 -0
- data/ext/cumo/narray/gen/tmpl_bit/format_to_a.c +51 -0
- data/ext/cumo/narray/gen/tmpl_bit/inspect.c +21 -0
- data/ext/cumo/narray/gen/tmpl_bit/mask.c +136 -0
- data/ext/cumo/narray/gen/tmpl_bit/none_p.c +14 -0
- data/ext/cumo/narray/gen/tmpl_bit/store_array.c +108 -0
- data/ext/cumo/narray/gen/tmpl_bit/store_bit.c +70 -0
- data/ext/cumo/narray/gen/tmpl_bit/store_from.c +60 -0
- data/ext/cumo/narray/gen/tmpl_bit/to_a.c +47 -0
- data/ext/cumo/narray/gen/tmpl_bit/unary.c +81 -0
- data/ext/cumo/narray/gen/tmpl_bit/where.c +90 -0
- data/ext/cumo/narray/gen/tmpl_bit/where2.c +95 -0
- data/ext/cumo/narray/index.c +880 -0
- data/ext/cumo/narray/kwargs.c +153 -0
- data/ext/cumo/narray/math.c +142 -0
- data/ext/cumo/narray/narray.c +1948 -0
- data/ext/cumo/narray/ndloop.c +2105 -0
- data/ext/cumo/narray/rand.c +45 -0
- data/ext/cumo/narray/step.c +474 -0
- data/ext/cumo/narray/struct.c +886 -0
- data/lib/cumo.rb +3 -0
- data/lib/cumo/cuda.rb +11 -0
- data/lib/cumo/cuda/compile_error.rb +36 -0
- data/lib/cumo/cuda/compiler.rb +161 -0
- data/lib/cumo/cuda/device.rb +47 -0
- data/lib/cumo/cuda/link_state.rb +31 -0
- data/lib/cumo/cuda/module.rb +40 -0
- data/lib/cumo/cuda/nvrtc_program.rb +27 -0
- data/lib/cumo/linalg.rb +12 -0
- data/lib/cumo/narray.rb +2 -0
- data/lib/cumo/narray/extra.rb +1278 -0
- data/lib/erbpp.rb +294 -0
- data/lib/erbpp/line_number.rb +137 -0
- data/lib/erbpp/narray_def.rb +381 -0
- data/numo-narray-version +1 -0
- data/run.gdb +7 -0
- metadata +353 -0
@@ -0,0 +1,56 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
|
3
|
+
thisdir = File.dirname(__FILE__)
|
4
|
+
libpath = File.absolute_path(File.dirname(__FILE__))+"/../../../../lib"
|
5
|
+
$LOAD_PATH.unshift libpath
|
6
|
+
|
7
|
+
require_relative "./narray_def"
|
8
|
+
|
9
|
+
while true
|
10
|
+
if ARGV[0] == "-l"
|
11
|
+
require "erbpp/line_number"
|
12
|
+
ARGV.shift
|
13
|
+
elsif ARGV[0] == "-o"
|
14
|
+
ARGV.shift
|
15
|
+
$output = ARGV.shift
|
16
|
+
require "fileutils"
|
17
|
+
FileUtils.rm_f($output)
|
18
|
+
else
|
19
|
+
break
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
if ARGV.size != 1
|
24
|
+
puts "usage:\n ruby #{$0} [-l] erb_base [type_file]"
|
25
|
+
exit 1
|
26
|
+
end
|
27
|
+
|
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: "mCumo"
|
39
|
+
|
40
|
+
set file_name: $output||""
|
41
|
+
set type_name: type_name
|
42
|
+
set lib_name: "cumo_"+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
|
51
|
+
|
52
|
+
if $output
|
53
|
+
open($output,"w").write(code)
|
54
|
+
else
|
55
|
+
$stdout.write(code)
|
56
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
|
3
|
+
thisdir = File.dirname(__FILE__)
|
4
|
+
libpath = File.absolute_path(File.dirname(__FILE__))+"/../../../../lib"
|
5
|
+
$LOAD_PATH.unshift libpath
|
6
|
+
|
7
|
+
require_relative "./narray_def"
|
8
|
+
|
9
|
+
while true
|
10
|
+
if ARGV[0] == "-l"
|
11
|
+
require "erbpp/line_number"
|
12
|
+
ARGV.shift
|
13
|
+
elsif ARGV[0] == "-o"
|
14
|
+
ARGV.shift
|
15
|
+
$output = ARGV.shift
|
16
|
+
require "fileutils"
|
17
|
+
FileUtils.rm_f($output)
|
18
|
+
else
|
19
|
+
break
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
if ARGV.size != 1
|
24
|
+
puts "usage:\n ruby #{$0} [-l] erb_base [type_file]"
|
25
|
+
exit 1
|
26
|
+
end
|
27
|
+
|
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: "_kernel.cu"
|
38
|
+
set ns_var: "mCumo"
|
39
|
+
|
40
|
+
set file_name: $output||""
|
41
|
+
set type_name: type_name
|
42
|
+
set lib_name: "cumo_"+type_name
|
43
|
+
|
44
|
+
set opt_indexer_ndim: File.read(File.expand_path("../../../include/cumo/indexer.h", __FILE__)).match(/CUMO_NA_INDEXER_OPTIMIZED_NDIM (\d+)/)[1].to_i
|
45
|
+
|
46
|
+
def_class do
|
47
|
+
extend NArrayMethod
|
48
|
+
extend NArrayType
|
49
|
+
eval File.read(type_file), binding, type_file
|
50
|
+
eval File.read(File.join(thisdir,"spec.rb")), binding, "spec.rb"
|
51
|
+
end
|
52
|
+
end.result
|
53
|
+
|
54
|
+
if $output
|
55
|
+
open($output,"w").write(code)
|
56
|
+
else
|
57
|
+
$stdout.write(code)
|
58
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
set name: "bit"
|
2
|
+
set type_name: "bit"
|
3
|
+
set full_class_name: "Cumo::Bit"
|
4
|
+
set class_name: "Bit"
|
5
|
+
set class_alias: nil
|
6
|
+
set class_var: "cT"
|
7
|
+
set ctype: "BIT_DIGIT"
|
8
|
+
|
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
|
19
|
+
set need_align: false
|
20
|
+
|
21
|
+
upcast_rb "Integer"
|
22
|
+
upcast_rb "Float", "DFloat"
|
23
|
+
upcast_rb "Complex", "DComplex"
|
24
|
+
|
25
|
+
upcast "RObject", "RObject"
|
26
|
+
upcast "DComplex", "DComplex"
|
27
|
+
upcast "SComplex", "SComplex"
|
28
|
+
upcast "DFloat", "DFloat"
|
29
|
+
upcast "SFloat", "SFloat"
|
30
|
+
upcast "Int64", "Int64"
|
31
|
+
upcast "Int32", "Int32"
|
32
|
+
upcast "Int16", "Int16"
|
33
|
+
upcast "Int8", "Int8"
|
34
|
+
upcast "UInt64", "UInt64"
|
35
|
+
upcast "UInt32", "UInt32"
|
36
|
+
upcast "UInt16", "UInt16"
|
37
|
+
upcast "UInt8", "UInt8"
|
@@ -0,0 +1,39 @@
|
|
1
|
+
set name: "dcomplex"
|
2
|
+
set type_name: "dcomplex"
|
3
|
+
set full_class_name: "Cumo::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"
|
10
|
+
|
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
|
21
|
+
set need_align: true
|
22
|
+
|
23
|
+
upcast_rb "Integer"
|
24
|
+
upcast_rb "Float"
|
25
|
+
upcast_rb "Complex"
|
26
|
+
|
27
|
+
upcast "RObject", "RObject"
|
28
|
+
upcast "DComplex", "DComplex"
|
29
|
+
upcast "SComplex", "DComplex"
|
30
|
+
upcast "DFloat", "DComplex"
|
31
|
+
upcast "SFloat", "DComplex"
|
32
|
+
upcast "Int64", "DComplex"
|
33
|
+
upcast "Int32", "DComplex"
|
34
|
+
upcast "Int16", "DComplex"
|
35
|
+
upcast "Int8", "DComplex"
|
36
|
+
upcast "UInt64", "DComplex"
|
37
|
+
upcast "UInt32", "DComplex"
|
38
|
+
upcast "UInt16", "DComplex"
|
39
|
+
upcast "UInt8", "DComplex"
|
@@ -0,0 +1,37 @@
|
|
1
|
+
set name: "dfloat"
|
2
|
+
set type_name: "dfloat"
|
3
|
+
set full_class_name: "Cumo::DFloat"
|
4
|
+
set class_name: "DFloat"
|
5
|
+
set class_alias: "Float64"
|
6
|
+
set class_var: "cT"
|
7
|
+
set ctype: "double"
|
8
|
+
|
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
|
19
|
+
set need_align: true
|
20
|
+
|
21
|
+
upcast_rb "Integer"
|
22
|
+
upcast_rb "Float"
|
23
|
+
upcast_rb "Complex", "DComplex"
|
24
|
+
|
25
|
+
upcast "RObject", "RObject"
|
26
|
+
upcast "DComplex", "DComplex"
|
27
|
+
upcast "SComplex", "DComplex"
|
28
|
+
upcast "DFloat", "DFloat"
|
29
|
+
upcast "SFloat", "DFloat"
|
30
|
+
upcast "Int64", "DFloat"
|
31
|
+
upcast "Int32", "DFloat"
|
32
|
+
upcast "Int16", "DFloat"
|
33
|
+
upcast "Int8", "DFloat"
|
34
|
+
upcast "UInt64", "DFloat"
|
35
|
+
upcast "UInt32", "DFloat"
|
36
|
+
upcast "UInt16", "DFloat"
|
37
|
+
upcast "UInt8", "DFloat"
|
@@ -0,0 +1,36 @@
|
|
1
|
+
set name: "int16"
|
2
|
+
set type_name: "int16"
|
3
|
+
set full_class_name: "Cumo::Int16"
|
4
|
+
set class_name: "Int16"
|
5
|
+
set class_var: "cT"
|
6
|
+
set ctype: "int16_t"
|
7
|
+
|
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
|
18
|
+
set need_align: true
|
19
|
+
|
20
|
+
upcast_rb "Integer"
|
21
|
+
upcast_rb "Float", "DFloat"
|
22
|
+
upcast_rb "Complex", "DComplex"
|
23
|
+
|
24
|
+
upcast "RObject", "RObject"
|
25
|
+
upcast "DComplex", "DComplex"
|
26
|
+
upcast "SComplex", "SComplex"
|
27
|
+
upcast "DFloat", "DFloat"
|
28
|
+
upcast "SFloat", "SFloat"
|
29
|
+
upcast "Int64", "Int64"
|
30
|
+
upcast "Int32", "Int32"
|
31
|
+
upcast "Int16"
|
32
|
+
upcast "Int8"
|
33
|
+
upcast "UInt64", "Int64"
|
34
|
+
upcast "UInt32", "Int32"
|
35
|
+
upcast "UInt16"
|
36
|
+
upcast "UInt8"
|
@@ -0,0 +1,36 @@
|
|
1
|
+
set name: "int32"
|
2
|
+
set type_name: "int32"
|
3
|
+
set full_class_name: "Cumo::Int32"
|
4
|
+
set class_name: "Int32"
|
5
|
+
set class_var: "cT"
|
6
|
+
set ctype: "int32_t"
|
7
|
+
|
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
|
18
|
+
set need_align: true
|
19
|
+
|
20
|
+
upcast_rb "Integer"
|
21
|
+
upcast_rb "Float", "DFloat"
|
22
|
+
upcast_rb "Complex", "DComplex"
|
23
|
+
|
24
|
+
upcast "RObject", "RObject"
|
25
|
+
upcast "DComplex", "DComplex"
|
26
|
+
upcast "SComplex", "SComplex"
|
27
|
+
upcast "DFloat", "DFloat"
|
28
|
+
upcast "SFloat", "SFloat"
|
29
|
+
upcast "Int64", "Int64"
|
30
|
+
upcast "Int32"
|
31
|
+
upcast "Int16"
|
32
|
+
upcast "Int8"
|
33
|
+
upcast "UInt64", "Int64"
|
34
|
+
upcast "UInt32"
|
35
|
+
upcast "UInt16"
|
36
|
+
upcast "UInt8"
|
@@ -0,0 +1,36 @@
|
|
1
|
+
set name: "int64"
|
2
|
+
set type_name: "int64"
|
3
|
+
set full_class_name: "Cumo::Int64"
|
4
|
+
set class_name: "Int64"
|
5
|
+
set class_var: "cT"
|
6
|
+
set ctype: "int64_t"
|
7
|
+
|
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
|
18
|
+
set need_align: true
|
19
|
+
|
20
|
+
upcast_rb "Integer"
|
21
|
+
upcast_rb "Float", "DFloat"
|
22
|
+
upcast_rb "Complex", "DComplex"
|
23
|
+
|
24
|
+
upcast "RObject", "RObject"
|
25
|
+
upcast "DComplex", "DComplex"
|
26
|
+
upcast "SComplex", "SComplex"
|
27
|
+
upcast "DFloat", "DFloat"
|
28
|
+
upcast "SFloat", "SFloat"
|
29
|
+
upcast "Int64"
|
30
|
+
upcast "Int32"
|
31
|
+
upcast "Int16"
|
32
|
+
upcast "Int8"
|
33
|
+
upcast "UInt64"
|
34
|
+
upcast "UInt32"
|
35
|
+
upcast "UInt16"
|
36
|
+
upcast "UInt8"
|
@@ -0,0 +1,36 @@
|
|
1
|
+
set name: "int8"
|
2
|
+
set type_name: "int8"
|
3
|
+
set full_class_name: "Cumo::Int8"
|
4
|
+
set class_name: "Int8"
|
5
|
+
set class_var: "cT"
|
6
|
+
set ctype: "int8_t"
|
7
|
+
|
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
|
18
|
+
set need_align: false
|
19
|
+
|
20
|
+
upcast_rb "Integer"
|
21
|
+
upcast_rb "Float", "DFloat"
|
22
|
+
upcast_rb "Complex", "DComplex"
|
23
|
+
|
24
|
+
upcast "RObject", "RObject"
|
25
|
+
upcast "DComplex", "DComplex"
|
26
|
+
upcast "SComplex", "SComplex"
|
27
|
+
upcast "DFloat", "DFloat"
|
28
|
+
upcast "SFloat", "SFloat"
|
29
|
+
upcast "Int64", "Int64"
|
30
|
+
upcast "Int32", "Int32"
|
31
|
+
upcast "Int16", "Int16"
|
32
|
+
upcast "Int8", "Int8"
|
33
|
+
upcast "UInt64", "Int64"
|
34
|
+
upcast "UInt32", "Int64"
|
35
|
+
upcast "UInt16", "Int32"
|
36
|
+
upcast "UInt8", "Int16"
|
@@ -0,0 +1,37 @@
|
|
1
|
+
set name: "robject"
|
2
|
+
set type_name: "robject"
|
3
|
+
set full_class_name: "Cumo::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"
|
9
|
+
|
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
|
20
|
+
set need_align: false
|
21
|
+
|
22
|
+
upcast_rb "Integer"
|
23
|
+
upcast_rb "Float"
|
24
|
+
upcast_rb "Complex"
|
25
|
+
|
26
|
+
upcast "DComplex", "RObject"
|
27
|
+
upcast "SComplex", "RObject"
|
28
|
+
upcast "DFloat", "RObject"
|
29
|
+
upcast "SFloat", "RObject"
|
30
|
+
upcast "Int64", "RObject"
|
31
|
+
upcast "Int32", "RObject"
|
32
|
+
upcast "Int16", "RObject"
|
33
|
+
upcast "Int8", "RObject"
|
34
|
+
upcast "UInt64", "RObject"
|
35
|
+
upcast "UInt32", "RObject"
|
36
|
+
upcast "UInt16", "RObject"
|
37
|
+
upcast "UInt8", "RObject"
|
@@ -0,0 +1,39 @@
|
|
1
|
+
set name: "scomplex"
|
2
|
+
set type_name: "scomplex"
|
3
|
+
set full_class_name: "Cumo::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"
|
10
|
+
|
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
|
21
|
+
set need_align: true
|
22
|
+
|
23
|
+
upcast_rb "Integer"
|
24
|
+
upcast_rb "Float"
|
25
|
+
upcast_rb "Complex"
|
26
|
+
|
27
|
+
upcast "RObject", "RObject"
|
28
|
+
upcast "DComplex", "DComplex"
|
29
|
+
upcast "SComplex", "SComplex"
|
30
|
+
upcast "DFloat", "DComplex"
|
31
|
+
upcast "SFloat", "SComplex"
|
32
|
+
upcast "Int64", "SComplex"
|
33
|
+
upcast "Int32", "SComplex"
|
34
|
+
upcast "Int16", "SComplex"
|
35
|
+
upcast "Int8", "SComplex"
|
36
|
+
upcast "UInt64", "SComplex"
|
37
|
+
upcast "UInt32", "SComplex"
|
38
|
+
upcast "UInt16", "SComplex"
|
39
|
+
upcast "UInt8", "SComplex"
|