mdarray 0.4.3.pre-java → 0.5.0-java
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +82 -14
- data/Rakefile +8 -2
- data/doc/BinaryOperator.html +227 -0
- data/doc/BitwiseOperators.html +135 -0
- data/doc/BooleanFunctions.html +135 -0
- data/doc/BooleanMDArray.html +193 -0
- data/doc/ByteMDArray.html +271 -0
- data/doc/Colt.html +269 -0
- data/doc/ComparisonOperators.html +135 -0
- data/doc/Const.html +490 -0
- data/doc/Csv.html +589 -0
- data/doc/DDescriptive.html +4373 -0
- data/doc/DoubleMDArray.html +555 -0
- data/doc/DoubleStatList.html +256 -0
- data/doc/FastBinaryOperator.html +743 -0
- data/doc/FastBoolean.html +512 -0
- data/doc/FastUnaryOperator.html +583 -0
- data/doc/FloatMDArray.html +237 -0
- data/doc/FunctionCreation.html +520 -0
- data/doc/FunctionMap.html +813 -0
- data/doc/GenericFunctions.html +135 -0
- data/doc/IntMDArray.html +259 -0
- data/doc/LongMDArray.html +257 -0
- data/doc/MDArray.html +9639 -0
- data/doc/MDArray/Counter.html +2767 -0
- data/doc/MDArray/IteratorFast.html +872 -0
- data/doc/MDArray/IteratorFastBoolean.html +384 -0
- data/doc/MDArray/IteratorFastByte.html +373 -0
- data/doc/MDArray/IteratorFastChar.html +384 -0
- data/doc/MDArray/IteratorFastDouble.html +384 -0
- data/doc/MDArray/IteratorFastFloat.html +384 -0
- data/doc/MDArray/IteratorFastInt.html +384 -0
- data/doc/MDArray/IteratorFastLong.html +384 -0
- data/doc/MDArray/IteratorFastShort.html +384 -0
- data/doc/MDArrayTest.html +125 -0
- data/doc/NonNumericalMDArray.html +177 -0
- data/doc/NumericFunctions.html +297 -0
- data/doc/NumericalMDArray.html +278 -0
- data/doc/Operator.html +826 -0
- data/doc/Proc.html +1097 -0
- data/doc/RubyBinaryOperator.html +526 -0
- data/doc/RubyFunctions.html +232 -0
- data/doc/RubyMath.html +135 -0
- data/doc/RubyStats.html +135 -0
- data/doc/RubyUnaryOperator.html +510 -0
- data/doc/ShortMDArray.html +267 -0
- data/doc/StatList.html +1176 -0
- data/doc/StringMDArray.html +181 -0
- data/doc/StructureMDArray.html +181 -0
- data/doc/UnaryOperator.html +227 -0
- data/doc/UserFunction.html +297 -0
- data/doc/_index.html +467 -0
- data/doc/class_list.html +53 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +338 -0
- data/doc/file.README.html +173 -0
- data/doc/file_list.html +55 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +173 -0
- data/doc/js/app.js +214 -0
- data/doc/js/full_list.js +173 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +2524 -0
- data/doc/top-level-namespace.html +114 -0
- data/lib/colt/colt.rb +56 -0
- data/lib/colt/colt_mdarray.rb +95 -0
- data/lib/colt/double_descriptive.rb +636 -0
- data/lib/colt/probability.rb +12 -0
- data/lib/colt/stat_list.rb +192 -0
- data/lib/env.rb +5 -1
- data/lib/mdarray.rb +5 -0
- data/lib/mdarray/access.rb +2 -2
- data/lib/mdarray/creation.rb +34 -19
- data/lib/mdarray/csv.rb +61 -0
- data/lib/mdarray/fast_operators.rb +241 -0
- data/lib/mdarray/operators.rb +18 -0
- data/lib/mdarray/ruby_operators.rb +2 -18
- data/lib/mdarray/ruby_stats.rb +1 -1
- data/lib/mdarray/views.rb +8 -8
- data/target/helper.jar +0 -0
- data/test/colt/VALE3.csv +3437 -0
- data/test/colt/VALE3.xlsx +0 -0
- data/test/colt/VALE3_short-err.csv +20 -0
- data/test/colt/VALE3_short.csv +20 -0
- data/test/colt/VALE3_short.xlsx +0 -0
- data/test/colt/test_complete.rb +25 -0
- data/test/colt/test_stat_list.rb +128 -0
- data/test/colt/test_statistics.rb +114 -0
- data/test/complete.rb +25 -0
- data/test/env.rb +54 -30
- data/test/{arithmetic_casting.rb → mdarray/arithmetic_casting.rb} +0 -0
- data/test/{test_access.rb → mdarray/test_access.rb} +0 -0
- data/test/{test_boolean.rb → mdarray/test_boolean.rb} +0 -2
- data/test/{test_comparison.rb → mdarray/test_comparison.rb} +0 -0
- data/test/{test_complete.rb → mdarray/test_complete.rb} +3 -14
- data/test/{test_counter.rb → mdarray/test_counter.rb} +0 -0
- data/test/{test_creation.rb → mdarray/test_creation.rb} +0 -0
- data/test/{test_error.rb → mdarray/test_error.rb} +8 -5
- data/test/{test_operator.rb → mdarray/test_operator.rb} +6 -2
- data/test/{test_speed.rb → mdarray/test_performance.rb} +74 -39
- data/test/{test_printing.rb → mdarray/test_printing.rb} +0 -1
- data/test/{test_shape.rb → mdarray/test_shape.rb} +0 -0
- data/test/mdarray/test_statistics.rb +80 -0
- data/test/{test_trigonometry.rb → mdarray/test_trigonometry.rb} +0 -0
- data/test/{test_views.rb → mdarray/test_views.rb} +0 -0
- data/vendor/parallelcolt-0.10.0.jar +0 -0
- data/version.rb +1 -1
- metadata +122 -39
- data/test/test_lazy.rb +0 -52
- data/test/test_statistics.rb +0 -38
@@ -0,0 +1,278 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: NumericalMDArray
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.5.2
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '';
|
20
|
+
framesUrl = "frames.html#!" + escape(window.location.href);
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="_index.html">Index (N)</a> »
|
35
|
+
|
36
|
+
|
37
|
+
<span class="title">NumericalMDArray</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: NumericalMDArray
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName"><span class='object_link'><a href="MDArray.html" title="MDArray (class)">MDArray</a></span></span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next"><span class='object_link'><a href="MDArray.html" title="MDArray (class)">MDArray</a></span></li>
|
82
|
+
|
83
|
+
<li class="next">NumericalMDArray</li>
|
84
|
+
|
85
|
+
</ul>
|
86
|
+
<a href="#" class="inheritanceTree">show all</a>
|
87
|
+
|
88
|
+
</dd>
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<dt class="r2">Includes:</dt>
|
96
|
+
<dd class="r2"><span class='object_link'><a href="ComparisonOperators.html" title="ComparisonOperators (module)">ComparisonOperators</a></span>, <span class='object_link'><a href="NumericFunctions.html" title="NumericFunctions (module)">NumericFunctions</a></span>, <span class='object_link'><a href="RubyMath.html" title="RubyMath (module)">RubyMath</a></span></dd>
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
<dt class="r1 last">Defined in:</dt>
|
103
|
+
<dd class="r1 last">lib/mdarray/hierarchy.rb<span class="defines">,<br />
|
104
|
+
lib/mdarray/ruby_math.rb,<br /> lib/mdarray/ruby_numeric_functions.rb</span>
|
105
|
+
</dd>
|
106
|
+
|
107
|
+
</dl>
|
108
|
+
<div class="clear"></div>
|
109
|
+
|
110
|
+
<div id="subclasses">
|
111
|
+
<h2>Direct Known Subclasses</h2>
|
112
|
+
<p class="children"><span class='object_link'><a href="DoubleMDArray.html" title="DoubleMDArray (class)">DoubleMDArray</a></span></p>
|
113
|
+
</div>
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
<h2>Instance Attribute Summary</h2>
|
121
|
+
|
122
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="MDArray.html" title="MDArray (class)">MDArray</a></span></h3>
|
123
|
+
<p class="inherited"><span class='object_link'><a href="MDArray.html#binary_operator-instance_method" title="MDArray#binary_operator (method)">#binary_operator</a></span>, <span class='object_link'><a href="MDArray.html#coerced-instance_method" title="MDArray#coerced (method)">#coerced</a></span>, <span class='object_link'><a href="MDArray.html#float_output_precision%3D-instance_method" title="MDArray#float_output_precision= (method)">#float_output_precision</a></span>, <span class='object_link'><a href="MDArray.html#float_output_suppress_small%3D-instance_method" title="MDArray#float_output_suppress_small= (method)">#float_output_suppress_small</a></span>, <span class='object_link'><a href="MDArray.html#formatter%3D-instance_method" title="MDArray#formatter= (method)">#formatter</a></span>, <span class='object_link'><a href="MDArray.html#inf_str%3D-instance_method" title="MDArray#inf_str= (method)">#inf_str</a></span>, <span class='object_link'><a href="MDArray.html#int_output_size%3D-instance_method" title="MDArray#int_output_size= (method)">#int_output_size</a></span>, <span class='object_link'><a href="MDArray.html#local_index-instance_method" title="MDArray#local_index (method)">#local_index</a></span>, <span class='object_link'><a href="MDArray.html#local_iterator-instance_method" title="MDArray#local_iterator (method)">#local_iterator</a></span>, <span class='object_link'><a href="MDArray.html#max_line_width%3D-instance_method" title="MDArray#max_line_width= (method)">#max_line_width</a></span>, <span class='object_link'><a href="MDArray.html#nan_str%3D-instance_method" title="MDArray#nan_str= (method)">#nan_str</a></span>, <span class='object_link'><a href="MDArray.html#nc_array-instance_method" title="MDArray#nc_array (method)">#nc_array</a></span>, <span class='object_link'><a href="MDArray.html#prefix%3D-instance_method" title="MDArray#prefix= (method)">#prefix</a></span>, <span class='object_link'><a href="MDArray.html#separator%3D-instance_method" title="MDArray#separator= (method)">#separator</a></span>, <span class='object_link'><a href="MDArray.html#summary_edge_items%3D-instance_method" title="MDArray#summary_edge_items= (method)">#summary_edge_items</a></span>, <span class='object_link'><a href="MDArray.html#summary_threshold%3D-instance_method" title="MDArray#summary_threshold= (method)">#summary_threshold</a></span>, <span class='object_link'><a href="MDArray.html#type-instance_method" title="MDArray#type (method)">#type</a></span>, <span class='object_link'><a href="MDArray.html#unary_operator-instance_method" title="MDArray#unary_operator (method)">#unary_operator</a></span></p>
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
<h2>
|
128
|
+
Instance Method Summary
|
129
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
130
|
+
</h2>
|
131
|
+
|
132
|
+
<ul class="summary">
|
133
|
+
|
134
|
+
<li class="public ">
|
135
|
+
<span class="summary_signature">
|
136
|
+
|
137
|
+
<a href="#coerce-instance_method" title="#coerce (instance method)">- (Object) <strong>coerce</strong>(num) </a>
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
</span>
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
152
|
+
|
153
|
+
</li>
|
154
|
+
|
155
|
+
|
156
|
+
</ul>
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="RubyFunctions.html" title="RubyFunctions (module)">RubyFunctions</a></span></h3>
|
175
|
+
<p class="inherited"><span class='object_link'><a href="RubyFunctions.html#ruby_binary_function-instance_method" title="RubyFunctions#ruby_binary_function (method)">#ruby_binary_function</a></span>, <span class='object_link'><a href="RubyFunctions.html#ruby_unary_function-instance_method" title="RubyFunctions#ruby_unary_function (method)">#ruby_unary_function</a></span></p>
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="FunctionCreation.html" title="FunctionCreation (module)">FunctionCreation</a></span></h3>
|
186
|
+
<p class="inherited"><span class='object_link'><a href="FunctionCreation.html#make_binary_op-instance_method" title="FunctionCreation#make_binary_op (method)">#make_binary_op</a></span>, <span class='object_link'><a href="FunctionCreation.html#make_binary_operators-instance_method" title="FunctionCreation#make_binary_operators (method)">#make_binary_operators</a></span>, <span class='object_link'><a href="FunctionCreation.html#make_comparison_op-instance_method" title="FunctionCreation#make_comparison_op (method)">#make_comparison_op</a></span>, <span class='object_link'><a href="FunctionCreation.html#make_unary_op-instance_method" title="FunctionCreation#make_unary_op (method)">#make_unary_op</a></span>, <span class='object_link'><a href="FunctionCreation.html#make_unary_operators-instance_method" title="FunctionCreation#make_unary_operators (method)">#make_unary_operators</a></span></p>
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="NumericFunctions.html" title="NumericFunctions (module)">NumericFunctions</a></span></h3>
|
197
|
+
<p class="inherited"><span class='object_link'><a href="NumericFunctions.html#fast_add-instance_method" title="NumericFunctions#fast_add (method)">#fast_add</a></span>, <span class='object_link'><a href="NumericFunctions.html#zero%3F-instance_method" title="NumericFunctions#zero? (method)">#zero?</a></span></p>
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="MDArray.html" title="MDArray (class)">MDArray</a></span></h3>
|
214
|
+
<p class="inherited"><span class='object_link'><a href="MDArray.html#%5B%5D-instance_method" title="MDArray#[] (method)">#[]</a></span>, <span class='object_link'><a href="MDArray.html#%5B%5D%3D-instance_method" title="MDArray#[]= (method)">#[]=</a></span>, <span class='object_link'><a href="MDArray.html#apply_over_axes-instance_method" title="MDArray#apply_over_axes (method)">#apply_over_axes</a></span>, <span class='object_link'><a href="MDArray.html#arange-class_method" title="MDArray.arange (method)">arange</a></span>, <span class='object_link'><a href="MDArray.html#boolean-class_method" title="MDArray.boolean (method)">boolean</a></span>, <span class='object_link'><a href="MDArray.html#build-class_method" title="MDArray.build (method)">build</a></span>, <span class='object_link'><a href="MDArray.html#build_from_nc_array-class_method" title="MDArray.build_from_nc_array (method)">build_from_nc_array</a></span>, <span class='object_link'><a href="MDArray.html#byte-class_method" title="MDArray.byte (method)">byte</a></span>, <span class='object_link'><a href="MDArray.html#char-class_method" title="MDArray.char (method)">char</a></span>, <span class='object_link'><a href="MDArray.html#compatible-instance_method" title="MDArray#compatible (method)">#compatible</a></span>, <span class='object_link'><a href="MDArray.html#copy-instance_method" title="MDArray#copy (method)">#copy</a></span>, <span class='object_link'><a href="MDArray.html#csv1d-instance_method" title="MDArray#csv1d (method)">#csv1d</a></span>, <span class='object_link'><a href="MDArray.html#double-class_method" title="MDArray.double (method)">double</a></span>, <span class='object_link'><a href="MDArray.html#dtype-instance_method" title="MDArray#dtype (method)">#dtype</a></span>, <span class='object_link'><a href="MDArray.html#each-instance_method" title="MDArray#each (method)">#each</a></span>, <span class='object_link'><a href="MDArray.html#each_cont-instance_method" title="MDArray#each_cont (method)">#each_cont</a></span>, <span class='object_link'><a href="MDArray.html#each_slice-instance_method" title="MDArray#each_slice (method)">#each_slice</a></span>, <span class='object_link'><a href="MDArray.html#each_with_counter-instance_method" title="MDArray#each_with_counter (method)">#each_with_counter</a></span>, <span class='object_link'><a href="MDArray.html#float-class_method" title="MDArray.float (method)">float</a></span>, <span class='object_link'><a href="MDArray.html#fromfunction-class_method" title="MDArray.fromfunction (method)">fromfunction</a></span>, <span class='object_link'><a href="MDArray.html#function_map_to_csv-class_method" title="MDArray.function_map_to_csv (method)">function_map_to_csv</a></span>, <span class='object_link'><a href="MDArray.html#get-instance_method" title="MDArray#get (method)">#get</a></span>, <span class='object_link'><a href="MDArray.html#get_binary_op-instance_method" title="MDArray#get_binary_op (method)">#get_binary_op</a></span>, <span class='object_link'><a href="MDArray.html#get_counter-instance_method" title="MDArray#get_counter (method)">#get_counter</a></span>, <span class='object_link'><a href="MDArray.html#get_current_index-instance_method" title="MDArray#get_current_index (method)">#get_current_index</a></span>, <span class='object_link'><a href="MDArray.html#get_element_type-instance_method" title="MDArray#get_element_type (method)">#get_element_type</a></span>, <span class='object_link'><a href="MDArray.html#get_index-instance_method" title="MDArray#get_index (method)">#get_index</a></span>, <span class='object_link'><a href="MDArray.html#get_iterator_fast-instance_method" title="MDArray#get_iterator_fast (method)">#get_iterator_fast</a></span>, <span class='object_link'><a href="MDArray.html#get_next-instance_method" title="MDArray#get_next (method)">#get_next</a></span>, <span class='object_link'><a href="MDArray.html#get_rank-instance_method" title="MDArray#get_rank (method)">#get_rank</a></span>, <span class='object_link'><a href="MDArray.html#get_shape-instance_method" title="MDArray#get_shape (method)">#get_shape</a></span>, <span class='object_link'><a href="MDArray.html#get_size-instance_method" title="MDArray#get_size (method)">#get_size</a></span>, <span class='object_link'><a href="MDArray.html#get_unary_op-instance_method" title="MDArray#get_unary_op (method)">#get_unary_op</a></span>, <span class='object_link'><a href="MDArray.html#init_with-class_method" title="MDArray.init_with (method)">init_with</a></span>, <span class='object_link'><a href="MDArray.html#initialize-instance_method" title="MDArray#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="MDArray.html#int-class_method" title="MDArray.int (method)">int</a></span>, <span class='object_link'><a href="MDArray.html#linspace-class_method" title="MDArray.linspace (method)">linspace</a></span>, <span class='object_link'><a href="MDArray.html#long-class_method" title="MDArray.long (method)">long</a></span>, <span class='object_link'><a href="MDArray.html#make_binary_op-class_method" title="MDArray.make_binary_op (method)">make_binary_op</a></span>, <span class='object_link'><a href="MDArray.html#make_unary_op-class_method" title="MDArray.make_unary_op (method)">make_unary_op</a></span>, <span class='object_link'><a href="MDArray.html#ndenumerate-instance_method" title="MDArray#ndenumerate (method)">#ndenumerate</a></span>, <span class='object_link'><a href="MDArray.html#ndim-instance_method" title="MDArray#ndim (method)">#ndim</a></span>, <span class='object_link'><a href="MDArray.html#next-instance_method" title="MDArray#next (method)">#next</a></span>, <span class='object_link'><a href="MDArray.html#ones-class_method" title="MDArray.ones (method)">ones</a></span>, <span class='object_link'><a href="MDArray.html#permute-instance_method" title="MDArray#permute (method)">#permute</a></span>, <span class='object_link'><a href="MDArray.html#print-instance_method" title="MDArray#print (method)">#print</a></span>, <span class='object_link'><a href="MDArray.html#print1d-instance_method" title="MDArray#print1d (method)">#print1d</a></span>, <span class='object_link'><a href="MDArray.html#print_function_map-class_method" title="MDArray.print_function_map (method)">print_function_map</a></span>, <span class='object_link'><a href="MDArray.html#printing_defaults-instance_method" title="MDArray#printing_defaults (method)">#printing_defaults</a></span>, <span class='object_link'><a href="MDArray.html#rank-instance_method" title="MDArray#rank (method)">#rank</a></span>, <span class='object_link'><a href="MDArray.html#reduce-instance_method" title="MDArray#reduce (method)">#reduce</a></span>, <span class='object_link'><a href="MDArray.html#register_function-class_method" title="MDArray.register_function (method)">register_function</a></span>, <span class='object_link'><a href="MDArray.html#reset_traversal-instance_method" title="MDArray#reset_traversal (method)">#reset_traversal</a></span>, <span class='object_link'><a href="MDArray.html#reshape-instance_method" title="MDArray#reshape (method)">#reshape</a></span>, <span class='object_link'><a href="MDArray.html#reshape%21-instance_method" title="MDArray#reshape! (method)">#reshape!</a></span>, <span class='object_link'><a href="MDArray.html#section-instance_method" title="MDArray#section (method)">#section</a></span>, <span class='object_link'><a href="MDArray.html#section%3F-instance_method" title="MDArray#section? (method)">#section?</a></span>, <span class='object_link'><a href="MDArray.html#section_with_stride-instance_method" title="MDArray#section_with_stride (method)">#section_with_stride</a></span>, <span class='object_link'><a href="MDArray.html#select_function-class_method" title="MDArray.select_function (method)">select_function</a></span>, <span class='object_link'><a href="MDArray.html#set-instance_method" title="MDArray#set (method)">#set</a></span>, <span class='object_link'><a href="MDArray.html#set_next-instance_method" title="MDArray#set_next (method)">#set_next</a></span>, <span class='object_link'><a href="MDArray.html#shape-instance_method" title="MDArray#shape (method)">#shape</a></span>, <span class='object_link'><a href="MDArray.html#short-class_method" title="MDArray.short (method)">short</a></span>, <span class='object_link'><a href="MDArray.html#size-instance_method" title="MDArray#size (method)">#size</a></span>, <span class='object_link'><a href="MDArray.html#slice-instance_method" title="MDArray#slice (method)">#slice</a></span>, <span class='object_link'><a href="MDArray.html#string-class_method" title="MDArray.string (method)">string</a></span>, <span class='object_link'><a href="MDArray.html#structure-class_method" title="MDArray.structure (method)">structure</a></span>, <span class='object_link'><a href="MDArray.html#to_csv-instance_method" title="MDArray#to_csv (method)">#to_csv</a></span>, <span class='object_link'><a href="MDArray.html#to_s-instance_method" title="MDArray#to_s (method)">#to_s</a></span>, <span class='object_link'><a href="MDArray.html#to_string-instance_method" title="MDArray#to_string (method)">#to_string</a></span>, <span class='object_link'><a href="MDArray.html#transpose-instance_method" title="MDArray#transpose (method)">#transpose</a></span>, <span class='object_link'><a href="MDArray.html#typed_arange-class_method" title="MDArray.typed_arange (method)">typed_arange</a></span>, <span class='object_link'><a href="MDArray.html#upcast-class_method" title="MDArray.upcast (method)">upcast</a></span></p>
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
<div id="constructor_details" class="method_details_list">
|
223
|
+
<h2>Constructor Details</h2>
|
224
|
+
|
225
|
+
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="MDArray.html#initialize-instance_method" title="MDArray#initialize (method)">MDArray</a></span></p>
|
226
|
+
|
227
|
+
</div>
|
228
|
+
|
229
|
+
|
230
|
+
<div id="instance_method_details" class="method_details_list">
|
231
|
+
<h2>Instance Method Details</h2>
|
232
|
+
|
233
|
+
|
234
|
+
<div class="method_details first">
|
235
|
+
<h3 class="signature first" id="coerce-instance_method">
|
236
|
+
|
237
|
+
- (<tt>Object</tt>) <strong>coerce</strong>(num)
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
</h3><table class="source_code">
|
244
|
+
<tr>
|
245
|
+
<td>
|
246
|
+
<pre class="lines">
|
247
|
+
|
248
|
+
|
249
|
+
28
|
250
|
+
29
|
251
|
+
30
|
252
|
+
31</pre>
|
253
|
+
</td>
|
254
|
+
<td>
|
255
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/hierarchy.rb', line 28</span>
|
256
|
+
|
257
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_coerce identifier id'>coerce</span><span class='lparen token'>(</span><span class='rubyid_num identifier id'>num</span><span class='rparen token'>)</span>
|
258
|
+
<span class='rubyid_coerced_mdarray identifier id'>coerced_mdarray</span> <span class='assign token'>=</span> <span class='rubyid_coerced_build identifier id'>coerced_build</span><span class='lparen token'>(</span><span class='rubyid_@type ivar id'>@type</span><span class='comma token'>,</span> <span class='rubyid_@nc_array ivar id'>@nc_array</span><span class='rparen token'>)</span>
|
259
|
+
<span class='lbrack token'>[</span><span class='rubyid_coerced_mdarray identifier id'>coerced_mdarray</span><span class='comma token'>,</span> <span class='rubyid_num identifier id'>num</span><span class='rbrack token'>]</span>
|
260
|
+
<span class='rubyid_end end kw'>end</span>
|
261
|
+
</pre>
|
262
|
+
</td>
|
263
|
+
</tr>
|
264
|
+
</table>
|
265
|
+
</div>
|
266
|
+
|
267
|
+
</div>
|
268
|
+
|
269
|
+
</div>
|
270
|
+
|
271
|
+
<div id="footer">
|
272
|
+
Generated on Thu May 16 12:48:38 2013 by
|
273
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
274
|
+
0.8.5.2 (ruby-1.9.3).
|
275
|
+
</div>
|
276
|
+
|
277
|
+
</body>
|
278
|
+
</html>
|
data/doc/Operator.html
ADDED
@@ -0,0 +1,826 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: Operator
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.5.2
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '';
|
20
|
+
framesUrl = "frames.html#!" + escape(window.location.href);
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="_index.html">Index (O)</a> »
|
35
|
+
|
36
|
+
|
37
|
+
<span class="title">Operator</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: Operator
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName">Object</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">Operator</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
<dt class="r2 last">Defined in:</dt>
|
97
|
+
<dd class="r2 last">lib/mdarray/operators.rb</dd>
|
98
|
+
|
99
|
+
</dl>
|
100
|
+
<div class="clear"></div>
|
101
|
+
|
102
|
+
<div id="subclasses">
|
103
|
+
<h2>Direct Known Subclasses</h2>
|
104
|
+
<p class="children"><span class='object_link'><a href="BinaryOperator.html" title="BinaryOperator (class)">BinaryOperator</a></span>, <span class='object_link'><a href="UnaryOperator.html" title="UnaryOperator (class)">UnaryOperator</a></span></p>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
111
|
+
<ul class="summary">
|
112
|
+
|
113
|
+
<li class="public ">
|
114
|
+
<span class="summary_signature">
|
115
|
+
|
116
|
+
<a href="#arity-instance_method" title="#arity (instance method)">- (Object) <strong>arity</strong> </a>
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
</span>
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
<span class="note title readonly">readonly</span>
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
<span class="summary_desc"><div class='inline'>
|
136
|
+
<p>number of arguments to the operator.</p>
|
137
|
+
</div></span>
|
138
|
+
|
139
|
+
</li>
|
140
|
+
|
141
|
+
|
142
|
+
<li class="public ">
|
143
|
+
<span class="summary_signature">
|
144
|
+
|
145
|
+
<a href="#exec_type-instance_method" title="#exec_type (instance method)">- (Object) <strong>exec_type</strong> </a>
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
</span>
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
<span class="note title readonly">readonly</span>
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
<span class="summary_desc"><div class='inline'>
|
165
|
+
<p>type of operator execution, e.g., default, in_place, numeric.</p>
|
166
|
+
</div></span>
|
167
|
+
|
168
|
+
</li>
|
169
|
+
|
170
|
+
|
171
|
+
<li class="public ">
|
172
|
+
<span class="summary_signature">
|
173
|
+
|
174
|
+
<a href="#force_type-instance_method" title="#force_type (instance method)">- (Object) <strong>force_type</strong> </a>
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
</span>
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
<span class="note title readonly">readonly</span>
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
<span class="summary_desc"><div class='inline'>
|
194
|
+
<p>force this type as the result type.</p>
|
195
|
+
</div></span>
|
196
|
+
|
197
|
+
</li>
|
198
|
+
|
199
|
+
|
200
|
+
<li class="public ">
|
201
|
+
<span class="summary_signature">
|
202
|
+
|
203
|
+
<a href="#name-instance_method" title="#name (instance method)">- (Object) <strong>name</strong> </a>
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
</span>
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
<span class="note title readonly">readonly</span>
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
<span class="summary_desc"><div class='inline'>
|
223
|
+
<p>Returns the value of attribute name.</p>
|
224
|
+
</div></span>
|
225
|
+
|
226
|
+
</li>
|
227
|
+
|
228
|
+
|
229
|
+
<li class="public ">
|
230
|
+
<span class="summary_signature">
|
231
|
+
|
232
|
+
<a href="#post_condition-instance_method" title="#post_condition (instance method)">- (Object) <strong>post_condition</strong> </a>
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
</span>
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
<span class="note title readonly">readonly</span>
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
<span class="summary_desc"><div class='inline'>
|
252
|
+
<p>proc to be executed after the operator's execution.</p>
|
253
|
+
</div></span>
|
254
|
+
|
255
|
+
</li>
|
256
|
+
|
257
|
+
|
258
|
+
<li class="public ">
|
259
|
+
<span class="summary_signature">
|
260
|
+
|
261
|
+
<a href="#pre_condition-instance_method" title="#pre_condition (instance method)">- (Object) <strong>pre_condition</strong> </a>
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
</span>
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
<span class="note title readonly">readonly</span>
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
<span class="summary_desc"><div class='inline'>
|
281
|
+
<p>proc to be executed before the operator's execution.</p>
|
282
|
+
</div></span>
|
283
|
+
|
284
|
+
</li>
|
285
|
+
|
286
|
+
|
287
|
+
<li class="public ">
|
288
|
+
<span class="summary_signature">
|
289
|
+
|
290
|
+
<a href="#type-instance_method" title="#type (instance method)">- (Object) <strong>type</strong> </a>
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
</span>
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
<span class="note title readonly">readonly</span>
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
<span class="summary_desc"><div class='inline'>
|
310
|
+
<p>resulting type of the operation.</p>
|
311
|
+
</div></span>
|
312
|
+
|
313
|
+
</li>
|
314
|
+
|
315
|
+
|
316
|
+
</ul>
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
<h2>
|
323
|
+
Instance Method Summary
|
324
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
325
|
+
</h2>
|
326
|
+
|
327
|
+
<ul class="summary">
|
328
|
+
|
329
|
+
<li class="public ">
|
330
|
+
<span class="summary_signature">
|
331
|
+
|
332
|
+
<a href="#exec-instance_method" title="#exec (instance method)">- (Object) <strong>exec</strong>(*args) </a>
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
</span>
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
<span class="summary_desc"><div class='inline'>
|
347
|
+
<p>?????????????????????????????.</p>
|
348
|
+
</div></span>
|
349
|
+
|
350
|
+
</li>
|
351
|
+
|
352
|
+
|
353
|
+
<li class="public ">
|
354
|
+
<span class="summary_signature">
|
355
|
+
|
356
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Operator) <strong>initialize</strong>(name, arity, exec_type, force_type = nil, pre_condition = nil, post_condition = nil) </a>
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
</span>
|
361
|
+
|
362
|
+
|
363
|
+
<span class="note title constructor">constructor</span>
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
<span class="summary_desc"><div class='inline'>
|
373
|
+
<p>?????????????????????????????.</p>
|
374
|
+
</div></span>
|
375
|
+
|
376
|
+
</li>
|
377
|
+
|
378
|
+
|
379
|
+
</ul>
|
380
|
+
|
381
|
+
|
382
|
+
<div id="constructor_details" class="method_details_list">
|
383
|
+
<h2>Constructor Details</h2>
|
384
|
+
|
385
|
+
<div class="method_details first">
|
386
|
+
<h3 class="signature first" id="initialize-instance_method">
|
387
|
+
|
388
|
+
- (<tt><span class='object_link'><a href="" title="Operator (class)">Operator</a></span></tt>) <strong>initialize</strong>(name, arity, exec_type, force_type = nil, pre_condition = nil, post_condition = nil)
|
389
|
+
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
</h3><div class="docstring">
|
395
|
+
<div class="discussion">
|
396
|
+
<hr style="height: 10px">
|
397
|
+
<hr style="height: 10px">
|
398
|
+
|
399
|
+
|
400
|
+
</div>
|
401
|
+
</div>
|
402
|
+
<div class="tags">
|
403
|
+
|
404
|
+
|
405
|
+
</div><table class="source_code">
|
406
|
+
<tr>
|
407
|
+
<td>
|
408
|
+
<pre class="lines">
|
409
|
+
|
410
|
+
|
411
|
+
87
|
412
|
+
88
|
413
|
+
89
|
414
|
+
90
|
415
|
+
91
|
416
|
+
92
|
417
|
+
93
|
418
|
+
94
|
419
|
+
95
|
420
|
+
96
|
421
|
+
97
|
422
|
+
98</pre>
|
423
|
+
</td>
|
424
|
+
<td>
|
425
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/operators.rb', line 87</span>
|
426
|
+
|
427
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='rubyid_name identifier id'>name</span><span class='comma token'>,</span> <span class='rubyid_arity identifier id'>arity</span><span class='comma token'>,</span> <span class='rubyid_exec_type identifier id'>exec_type</span><span class='comma token'>,</span> <span class='rubyid_force_type identifier id'>force_type</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='comma token'>,</span> <span class='rubyid_pre_condition identifier id'>pre_condition</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='comma token'>,</span>
|
428
|
+
<span class='rubyid_post_condition identifier id'>post_condition</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='rparen token'>)</span>
|
429
|
+
|
430
|
+
<span class='rubyid_@name ivar id'>@name</span> <span class='assign token'>=</span> <span class='rubyid_name identifier id'>name</span>
|
431
|
+
<span class='rubyid_@arity ivar id'>@arity</span> <span class='assign token'>=</span> <span class='rubyid_arity identifier id'>arity</span>
|
432
|
+
<span class='rubyid_@exec_type ivar id'>@exec_type</span> <span class='assign token'>=</span> <span class='rubyid_exec_type identifier id'>exec_type</span>
|
433
|
+
<span class='rubyid_@force_type ivar id'>@force_type</span> <span class='assign token'>=</span> <span class='rubyid_force_type identifier id'>force_type</span>
|
434
|
+
<span class='rubyid_@pre_condition ivar id'>@pre_condition</span> <span class='assign token'>=</span> <span class='rubyid_pre_condition identifier id'>pre_condition</span> <span class='comment val'># proc to be executed before the main loop</span>
|
435
|
+
<span class='rubyid_@pre_condition_result ivar id'>@pre_condition_result</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span>
|
436
|
+
<span class='rubyid_@post_condition ivar id'>@post_condition</span> <span class='assign token'>=</span> <span class='rubyid_post_condition identifier id'>post_condition</span> <span class='comment val'># proc to be executed after the main loop</span>
|
437
|
+
|
438
|
+
<span class='rubyid_end end kw'>end</span>
|
439
|
+
</pre>
|
440
|
+
</td>
|
441
|
+
</tr>
|
442
|
+
</table>
|
443
|
+
</div>
|
444
|
+
|
445
|
+
</div>
|
446
|
+
|
447
|
+
<div id="instance_attr_details" class="attr_details">
|
448
|
+
<h2>Instance Attribute Details</h2>
|
449
|
+
|
450
|
+
|
451
|
+
<span id=""></span>
|
452
|
+
<div class="method_details first">
|
453
|
+
<h3 class="signature first" id="arity-instance_method">
|
454
|
+
|
455
|
+
- (<tt>Object</tt>) <strong>arity</strong> <span class="extras">(readonly)</span>
|
456
|
+
|
457
|
+
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
</h3><div class="docstring">
|
462
|
+
<div class="discussion">
|
463
|
+
|
464
|
+
<p>number of arguments to the operator</p>
|
465
|
+
|
466
|
+
|
467
|
+
</div>
|
468
|
+
</div>
|
469
|
+
<div class="tags">
|
470
|
+
|
471
|
+
|
472
|
+
</div><table class="source_code">
|
473
|
+
<tr>
|
474
|
+
<td>
|
475
|
+
<pre class="lines">
|
476
|
+
|
477
|
+
|
478
|
+
77
|
479
|
+
78
|
480
|
+
79</pre>
|
481
|
+
</td>
|
482
|
+
<td>
|
483
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/operators.rb', line 77</span>
|
484
|
+
|
485
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_arity identifier id'>arity</span>
|
486
|
+
<span class='rubyid_@arity ivar id'>@arity</span>
|
487
|
+
<span class='rubyid_end end kw'>end</span>
|
488
|
+
</pre>
|
489
|
+
</td>
|
490
|
+
</tr>
|
491
|
+
</table>
|
492
|
+
</div>
|
493
|
+
|
494
|
+
|
495
|
+
<span id=""></span>
|
496
|
+
<div class="method_details ">
|
497
|
+
<h3 class="signature " id="exec_type-instance_method">
|
498
|
+
|
499
|
+
- (<tt>Object</tt>) <strong>exec_type</strong> <span class="extras">(readonly)</span>
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
|
504
|
+
|
505
|
+
</h3><div class="docstring">
|
506
|
+
<div class="discussion">
|
507
|
+
|
508
|
+
<p>type of operator execution, e.g., default, in_place, numeric</p>
|
509
|
+
|
510
|
+
|
511
|
+
</div>
|
512
|
+
</div>
|
513
|
+
<div class="tags">
|
514
|
+
|
515
|
+
|
516
|
+
</div><table class="source_code">
|
517
|
+
<tr>
|
518
|
+
<td>
|
519
|
+
<pre class="lines">
|
520
|
+
|
521
|
+
|
522
|
+
78
|
523
|
+
79
|
524
|
+
80</pre>
|
525
|
+
</td>
|
526
|
+
<td>
|
527
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/operators.rb', line 78</span>
|
528
|
+
|
529
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_exec_type identifier id'>exec_type</span>
|
530
|
+
<span class='rubyid_@exec_type ivar id'>@exec_type</span>
|
531
|
+
<span class='rubyid_end end kw'>end</span>
|
532
|
+
</pre>
|
533
|
+
</td>
|
534
|
+
</tr>
|
535
|
+
</table>
|
536
|
+
</div>
|
537
|
+
|
538
|
+
|
539
|
+
<span id=""></span>
|
540
|
+
<div class="method_details ">
|
541
|
+
<h3 class="signature " id="force_type-instance_method">
|
542
|
+
|
543
|
+
- (<tt>Object</tt>) <strong>force_type</strong> <span class="extras">(readonly)</span>
|
544
|
+
|
545
|
+
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
</h3><div class="docstring">
|
550
|
+
<div class="discussion">
|
551
|
+
|
552
|
+
<p>force this type as the result type</p>
|
553
|
+
|
554
|
+
|
555
|
+
</div>
|
556
|
+
</div>
|
557
|
+
<div class="tags">
|
558
|
+
|
559
|
+
|
560
|
+
</div><table class="source_code">
|
561
|
+
<tr>
|
562
|
+
<td>
|
563
|
+
<pre class="lines">
|
564
|
+
|
565
|
+
|
566
|
+
79
|
567
|
+
80
|
568
|
+
81</pre>
|
569
|
+
</td>
|
570
|
+
<td>
|
571
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/operators.rb', line 79</span>
|
572
|
+
|
573
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_force_type identifier id'>force_type</span>
|
574
|
+
<span class='rubyid_@force_type ivar id'>@force_type</span>
|
575
|
+
<span class='rubyid_end end kw'>end</span>
|
576
|
+
</pre>
|
577
|
+
</td>
|
578
|
+
</tr>
|
579
|
+
</table>
|
580
|
+
</div>
|
581
|
+
|
582
|
+
|
583
|
+
<span id=""></span>
|
584
|
+
<div class="method_details ">
|
585
|
+
<h3 class="signature " id="name-instance_method">
|
586
|
+
|
587
|
+
- (<tt>Object</tt>) <strong>name</strong> <span class="extras">(readonly)</span>
|
588
|
+
|
589
|
+
|
590
|
+
|
591
|
+
|
592
|
+
|
593
|
+
</h3><div class="docstring">
|
594
|
+
<div class="discussion">
|
595
|
+
|
596
|
+
<p>Returns the value of attribute name</p>
|
597
|
+
|
598
|
+
|
599
|
+
</div>
|
600
|
+
</div>
|
601
|
+
<div class="tags">
|
602
|
+
|
603
|
+
|
604
|
+
</div><table class="source_code">
|
605
|
+
<tr>
|
606
|
+
<td>
|
607
|
+
<pre class="lines">
|
608
|
+
|
609
|
+
|
610
|
+
75
|
611
|
+
76
|
612
|
+
77</pre>
|
613
|
+
</td>
|
614
|
+
<td>
|
615
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/operators.rb', line 75</span>
|
616
|
+
|
617
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_name identifier id'>name</span>
|
618
|
+
<span class='rubyid_@name ivar id'>@name</span>
|
619
|
+
<span class='rubyid_end end kw'>end</span>
|
620
|
+
</pre>
|
621
|
+
</td>
|
622
|
+
</tr>
|
623
|
+
</table>
|
624
|
+
</div>
|
625
|
+
|
626
|
+
|
627
|
+
<span id=""></span>
|
628
|
+
<div class="method_details ">
|
629
|
+
<h3 class="signature " id="post_condition-instance_method">
|
630
|
+
|
631
|
+
- (<tt>Object</tt>) <strong>post_condition</strong> <span class="extras">(readonly)</span>
|
632
|
+
|
633
|
+
|
634
|
+
|
635
|
+
|
636
|
+
|
637
|
+
</h3><div class="docstring">
|
638
|
+
<div class="discussion">
|
639
|
+
|
640
|
+
<p>proc to be executed after the operator's execution</p>
|
641
|
+
|
642
|
+
|
643
|
+
</div>
|
644
|
+
</div>
|
645
|
+
<div class="tags">
|
646
|
+
|
647
|
+
|
648
|
+
</div><table class="source_code">
|
649
|
+
<tr>
|
650
|
+
<td>
|
651
|
+
<pre class="lines">
|
652
|
+
|
653
|
+
|
654
|
+
81
|
655
|
+
82
|
656
|
+
83</pre>
|
657
|
+
</td>
|
658
|
+
<td>
|
659
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/operators.rb', line 81</span>
|
660
|
+
|
661
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_post_condition identifier id'>post_condition</span>
|
662
|
+
<span class='rubyid_@post_condition ivar id'>@post_condition</span>
|
663
|
+
<span class='rubyid_end end kw'>end</span>
|
664
|
+
</pre>
|
665
|
+
</td>
|
666
|
+
</tr>
|
667
|
+
</table>
|
668
|
+
</div>
|
669
|
+
|
670
|
+
|
671
|
+
<span id=""></span>
|
672
|
+
<div class="method_details ">
|
673
|
+
<h3 class="signature " id="pre_condition-instance_method">
|
674
|
+
|
675
|
+
- (<tt>Object</tt>) <strong>pre_condition</strong> <span class="extras">(readonly)</span>
|
676
|
+
|
677
|
+
|
678
|
+
|
679
|
+
|
680
|
+
|
681
|
+
</h3><div class="docstring">
|
682
|
+
<div class="discussion">
|
683
|
+
|
684
|
+
<p>proc to be executed before the operator's execution</p>
|
685
|
+
|
686
|
+
|
687
|
+
</div>
|
688
|
+
</div>
|
689
|
+
<div class="tags">
|
690
|
+
|
691
|
+
|
692
|
+
</div><table class="source_code">
|
693
|
+
<tr>
|
694
|
+
<td>
|
695
|
+
<pre class="lines">
|
696
|
+
|
697
|
+
|
698
|
+
80
|
699
|
+
81
|
700
|
+
82</pre>
|
701
|
+
</td>
|
702
|
+
<td>
|
703
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/operators.rb', line 80</span>
|
704
|
+
|
705
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_pre_condition identifier id'>pre_condition</span>
|
706
|
+
<span class='rubyid_@pre_condition ivar id'>@pre_condition</span>
|
707
|
+
<span class='rubyid_end end kw'>end</span>
|
708
|
+
</pre>
|
709
|
+
</td>
|
710
|
+
</tr>
|
711
|
+
</table>
|
712
|
+
</div>
|
713
|
+
|
714
|
+
|
715
|
+
<span id=""></span>
|
716
|
+
<div class="method_details ">
|
717
|
+
<h3 class="signature " id="type-instance_method">
|
718
|
+
|
719
|
+
- (<tt>Object</tt>) <strong>type</strong> <span class="extras">(readonly)</span>
|
720
|
+
|
721
|
+
|
722
|
+
|
723
|
+
|
724
|
+
|
725
|
+
</h3><div class="docstring">
|
726
|
+
<div class="discussion">
|
727
|
+
|
728
|
+
<p>resulting type of the operation</p>
|
729
|
+
|
730
|
+
|
731
|
+
</div>
|
732
|
+
</div>
|
733
|
+
<div class="tags">
|
734
|
+
|
735
|
+
|
736
|
+
</div><table class="source_code">
|
737
|
+
<tr>
|
738
|
+
<td>
|
739
|
+
<pre class="lines">
|
740
|
+
|
741
|
+
|
742
|
+
76
|
743
|
+
77
|
744
|
+
78</pre>
|
745
|
+
</td>
|
746
|
+
<td>
|
747
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/operators.rb', line 76</span>
|
748
|
+
|
749
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_type identifier id'>type</span>
|
750
|
+
<span class='rubyid_@type ivar id'>@type</span>
|
751
|
+
<span class='rubyid_end end kw'>end</span>
|
752
|
+
</pre>
|
753
|
+
</td>
|
754
|
+
</tr>
|
755
|
+
</table>
|
756
|
+
</div>
|
757
|
+
|
758
|
+
</div>
|
759
|
+
|
760
|
+
|
761
|
+
<div id="instance_method_details" class="method_details_list">
|
762
|
+
<h2>Instance Method Details</h2>
|
763
|
+
|
764
|
+
|
765
|
+
<div class="method_details first">
|
766
|
+
<h3 class="signature first" id="exec-instance_method">
|
767
|
+
|
768
|
+
- (<tt>Object</tt>) <strong>exec</strong>(*args)
|
769
|
+
|
770
|
+
|
771
|
+
|
772
|
+
|
773
|
+
|
774
|
+
</h3><div class="docstring">
|
775
|
+
<div class="discussion">
|
776
|
+
<hr style="height: 10px">
|
777
|
+
<hr style="height: 10px">
|
778
|
+
|
779
|
+
|
780
|
+
</div>
|
781
|
+
</div>
|
782
|
+
<div class="tags">
|
783
|
+
|
784
|
+
|
785
|
+
</div><table class="source_code">
|
786
|
+
<tr>
|
787
|
+
<td>
|
788
|
+
<pre class="lines">
|
789
|
+
|
790
|
+
|
791
|
+
104
|
792
|
+
105
|
793
|
+
106
|
794
|
+
107
|
795
|
+
108
|
796
|
+
109
|
797
|
+
110</pre>
|
798
|
+
</td>
|
799
|
+
<td>
|
800
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/operators.rb', line 104</span>
|
801
|
+
|
802
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_exec identifier id'>exec</span><span class='lparen token'>(</span><span class='mult op'>*</span><span class='rubyid_args identifier id'>args</span><span class='rparen token'>)</span>
|
803
|
+
|
804
|
+
<span class='rubyid_@pre_condition_result ivar id'>@pre_condition_result</span> <span class='assign token'>=</span> <span class='rubyid_@pre_condition ivar id'>@pre_condition</span><span class='dot token'>.</span><span class='rubyid_call identifier id'>call</span><span class='lparen token'>(</span><span class='mult op'>*</span><span class='rubyid_args identifier id'>args</span><span class='rparen token'>)</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_@pre_condition ivar id'>@pre_condition</span>
|
805
|
+
<span class='rubyid_result identifier id'>result</span> <span class='assign token'>=</span> <span class='rubyid_method identifier id'>method</span><span class='lparen token'>(</span><span class='rubyid_@exec_type ivar id'>@exec_type</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_call identifier id'>call</span><span class='lparen token'>(</span><span class='mult op'>*</span><span class='rubyid_args identifier id'>args</span><span class='rparen token'>)</span>
|
806
|
+
<span class='lparen token'>(</span><span class='rubyid_@post_condition ivar id'>@post_condition</span><span class='rparen token'>)</span><span class='question op'>?</span> <span class='rubyid_@post_condition ivar id'>@post_condition</span><span class='dot token'>.</span><span class='rubyid_call identifier id'>call</span><span class='lparen token'>(</span><span class='rubyid_result identifier id'>result</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='rubyid_args identifier id'>args</span><span class='rparen token'>)</span> <span class='colon op'>:</span> <span class='rubyid_result identifier id'>result</span>
|
807
|
+
|
808
|
+
<span class='rubyid_end end kw'>end</span>
|
809
|
+
</pre>
|
810
|
+
</td>
|
811
|
+
</tr>
|
812
|
+
</table>
|
813
|
+
</div>
|
814
|
+
|
815
|
+
</div>
|
816
|
+
|
817
|
+
</div>
|
818
|
+
|
819
|
+
<div id="footer">
|
820
|
+
Generated on Thu May 16 12:48:41 2013 by
|
821
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
822
|
+
0.8.5.2 (ruby-1.9.3).
|
823
|
+
</div>
|
824
|
+
|
825
|
+
</body>
|
826
|
+
</html>
|