multiarray 0.5.0 → 0.5.1
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.
- data/Rakefile +39 -5
- data/TODO +11 -66
- data/lib/multiarray.rb +59 -12
- data/lib/multiarray/binarymethod.rb +195 -0
- data/lib/multiarray/{binary.rb → binaryop.rb} +27 -12
- data/lib/multiarray/bool.rb +8 -2
- data/lib/multiarray/diagonal.rb +26 -27
- data/lib/multiarray/element.rb +23 -5
- data/lib/multiarray/float.rb +142 -0
- data/lib/multiarray/gcccontext.rb +29 -25
- data/lib/multiarray/gccfunction.rb +24 -7
- data/lib/multiarray/gcctype.rb +26 -16
- data/lib/multiarray/gccvalue.rb +144 -74
- data/lib/multiarray/inject.rb +12 -15
- data/lib/multiarray/int.rb +109 -82
- data/lib/multiarray/lambda.rb +23 -1
- data/lib/multiarray/lookup.rb +14 -1
- data/lib/multiarray/malloc.rb +2 -2
- data/lib/multiarray/methods.rb +93 -0
- data/lib/multiarray/multiarray.rb +2 -12
- data/lib/multiarray/node.rb +103 -173
- data/lib/multiarray/object.rb +19 -1
- data/lib/multiarray/operations.rb +189 -9
- data/lib/multiarray/pointer.rb +9 -1
- data/lib/multiarray/rgb.rb +401 -0
- data/lib/multiarray/sequence.rb +56 -14
- data/lib/multiarray/unarymethod.rb +185 -0
- data/lib/multiarray/{unary.rb → unaryop.rb} +20 -11
- data/lib/multiarray/variable.rb +8 -0
- data/test/tc_bool.rb +32 -20
- data/test/tc_float.rb +192 -0
- data/test/tc_int.rb +52 -24
- data/test/tc_lazy.rb +109 -0
- data/test/tc_multiarray.rb +136 -2
- data/test/tc_object.rb +29 -11
- data/test/tc_rgb.rb +217 -0
- data/test/tc_sequence.rb +184 -52
- data/test/ts_multiarray.rb +3 -0
- metadata +42 -15
data/test/ts_multiarray.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multiarray
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 5
|
8
|
+
- 1
|
9
|
+
version: 0.5.1
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Jan Wedekind
|
@@ -9,29 +14,36 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date: 2010-
|
17
|
+
date: 2010-08-15 00:00:00 +01:00
|
13
18
|
default_executable:
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: malloc
|
17
|
-
|
18
|
-
|
19
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
20
25
|
requirements:
|
21
26
|
- - ~>
|
22
27
|
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 1
|
30
|
+
- 0
|
23
31
|
version: "1.0"
|
24
|
-
|
32
|
+
type: :runtime
|
33
|
+
version_requirements: *id001
|
25
34
|
- !ruby/object:Gem::Dependency
|
26
35
|
name: rake
|
27
|
-
|
28
|
-
|
29
|
-
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
+
none: false
|
30
39
|
requirements:
|
31
40
|
- - ">="
|
32
41
|
- !ruby/object:Gem::Version
|
42
|
+
segments:
|
43
|
+
- 0
|
33
44
|
version: "0"
|
34
|
-
|
45
|
+
type: :development
|
46
|
+
version_requirements: *id002
|
35
47
|
description: This Ruby-extension defines Hornetseye::MultiArray and other native datatypes. Hornetseye::MultiArray provides multi-dimensional Ruby arrays with elements of same type. The extension is designed to be mostly compatible with Masahiro Tanaka's NArray. However it allows the definition of custom element types and operations on them. This work was also inspired by Ronald Garcia's boost::multi_array and by Todd Veldhuizen's Blitz++.
|
36
48
|
email: jan@wedesoft.de
|
37
49
|
executables: []
|
@@ -52,31 +64,39 @@ files:
|
|
52
64
|
- lib/multiarray/gcctype.rb
|
53
65
|
- lib/multiarray/bool.rb
|
54
66
|
- lib/multiarray/element.rb
|
55
|
-
- lib/multiarray/unary.rb
|
56
67
|
- lib/multiarray/gcccache.rb
|
68
|
+
- lib/multiarray/binarymethod.rb
|
57
69
|
- lib/multiarray/int.rb
|
58
70
|
- lib/multiarray/gccfunction.rb
|
71
|
+
- lib/multiarray/float.rb
|
59
72
|
- lib/multiarray/diagonal.rb
|
60
73
|
- lib/multiarray/inject.rb
|
61
74
|
- lib/multiarray/list.rb
|
75
|
+
- lib/multiarray/binaryop.rb
|
62
76
|
- lib/multiarray/pointer.rb
|
63
77
|
- lib/multiarray/lambda.rb
|
64
78
|
- lib/multiarray/sequence.rb
|
79
|
+
- lib/multiarray/methods.rb
|
80
|
+
- lib/multiarray/unarymethod.rb
|
65
81
|
- lib/multiarray/multiarray.rb
|
66
82
|
- lib/multiarray/node.rb
|
83
|
+
- lib/multiarray/unaryop.rb
|
67
84
|
- lib/multiarray/malloc.rb
|
68
|
-
- lib/multiarray/binary.rb
|
69
85
|
- lib/multiarray/index.rb
|
86
|
+
- lib/multiarray/rgb.rb
|
70
87
|
- lib/multiarray/gcccontext.rb
|
71
88
|
- lib/multiarray/lookup.rb
|
72
89
|
- lib/multiarray/gccvalue.rb
|
73
90
|
- lib/multiarray.rb
|
74
91
|
- test/ts_multiarray.rb
|
92
|
+
- test/tc_float.rb
|
75
93
|
- test/tc_sequence.rb
|
94
|
+
- test/tc_rgb.rb
|
76
95
|
- test/tc_multiarray.rb
|
77
96
|
- test/tc_bool.rb
|
78
97
|
- test/tc_object.rb
|
79
98
|
- test/tc_int.rb
|
99
|
+
- test/tc_lazy.rb
|
80
100
|
has_rdoc: yard
|
81
101
|
homepage: http://wedesoft.github.com/multiarray/
|
82
102
|
licenses: []
|
@@ -87,27 +107,34 @@ rdoc_options:
|
|
87
107
|
require_paths:
|
88
108
|
- lib
|
89
109
|
required_ruby_version: !ruby/object:Gem::Requirement
|
110
|
+
none: false
|
90
111
|
requirements:
|
91
112
|
- - ">="
|
92
113
|
- !ruby/object:Gem::Version
|
114
|
+
segments:
|
115
|
+
- 0
|
93
116
|
version: "0"
|
94
|
-
version:
|
95
117
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
|
+
none: false
|
96
119
|
requirements:
|
97
120
|
- - ">="
|
98
121
|
- !ruby/object:Gem::Version
|
122
|
+
segments:
|
123
|
+
- 0
|
99
124
|
version: "0"
|
100
|
-
version:
|
101
125
|
requirements: []
|
102
126
|
|
103
127
|
rubyforge_project: hornetseye
|
104
|
-
rubygems_version: 1.3.
|
128
|
+
rubygems_version: 1.3.7
|
105
129
|
signing_key:
|
106
130
|
specification_version: 3
|
107
131
|
summary: Multi-dimensional and uniform Ruby arrays
|
108
132
|
test_files:
|
133
|
+
- test/tc_float.rb
|
109
134
|
- test/tc_sequence.rb
|
135
|
+
- test/tc_rgb.rb
|
110
136
|
- test/tc_multiarray.rb
|
111
137
|
- test/tc_bool.rb
|
112
138
|
- test/tc_object.rb
|
113
139
|
- test/tc_int.rb
|
140
|
+
- test/tc_lazy.rb
|