mdarray 0.5.5.2-java → 0.5.6-java
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.
- checksums.yaml +4 -4
- data/config.rb +29 -95
- data/doc/BinaryOperator.html +20 -21
- data/doc/BitwiseOperators.html +18 -8
- data/doc/BitwiseOperators/BinaryAnd.html +189 -0
- data/doc/BitwiseOperators/BinaryLeftShift.html +189 -0
- data/doc/BitwiseOperators/BinaryOnesComplement.html +189 -0
- data/doc/BitwiseOperators/BinaryOr.html +189 -0
- data/doc/BitwiseOperators/BinaryRightShift.html +189 -0
- data/doc/BitwiseOperators/BinaryXor.html +189 -0
- data/doc/BooleanFunctions.html +18 -8
- data/doc/BooleanFunctions/And.html +189 -0
- data/doc/BooleanFunctions/Not.html +189 -0
- data/doc/BooleanFunctions/Or.html +189 -0
- data/doc/BooleanMDArray.html +10 -10
- data/doc/ByteMDArray.html +73 -14
- data/doc/CernDoubleFunctions.html +208 -0
- data/doc/CernFloatFunctions.html +208 -0
- data/doc/CernFunctions.html +828 -0
- data/doc/CernIntFunctions.html +208 -0
- data/doc/CernLongFunctions.html +208 -0
- data/doc/CharMDArray.html +181 -0
- data/doc/Colt.html +18 -20
- data/doc/ComparisonOperators.html +18 -8
- data/doc/ComparisonOperators/Eq.html +189 -0
- data/doc/ComparisonOperators/Ge.html +189 -0
- data/doc/ComparisonOperators/Gt.html +189 -0
- data/doc/ComparisonOperators/Le.html +189 -0
- data/doc/ComparisonOperators/Lt.html +189 -0
- data/doc/Const.html +107 -47
- data/doc/Csv.html +325 -113
- data/doc/Csv/Dimension.html +771 -0
- data/doc/Csv/Dimensions.html +654 -0
- data/doc/DDescriptive.html +573 -625
- data/doc/DoubleMDArray.html +40 -172
- data/doc/DoubleStatList.html +19 -20
- data/doc/FastBinaryOperator.html +166 -148
- data/doc/FastUnaryOperator.html +104 -109
- data/doc/FloatMDArray.html +55 -16
- data/doc/FunctionCreation.html +53 -273
- data/doc/FunctionMap.html +381 -93
- data/doc/GenericFunctions.html +18 -8
- data/doc/GenericFunctions/Null.html +187 -0
- data/doc/IntMDArray.html +77 -16
- data/doc/Java/CernJetMathTdouble/DoubleFunctions.html +120 -0
- data/doc/Java/CernJetMathTfloat/FloatFunctions.html +120 -0
- data/doc/Java/CernJetMathTint/IntFunctions.html +120 -0
- data/doc/Java/CernJetMathTlong/LongFunctions.html +120 -0
- data/doc/LazyBinaryOperator.html +714 -0
- data/doc/LazyMDArray.html +990 -0
- data/doc/LazyMDArray/BinaryComp.html +282 -0
- data/doc/LazyMDArray/UnaryComp.html +280 -0
- data/doc/LazyUnaryOperator.html +537 -0
- data/doc/LongMDArray.html +59 -15
- data/doc/MDArray.html +3223 -2181
- data/doc/MDArray/Counter.html +321 -1233
- data/doc/MDArray/IteratorFast.html +177 -116
- data/doc/MDArray/IteratorFastBoolean.html +37 -41
- data/doc/MDArray/IteratorFastByte.html +46 -39
- data/doc/MDArray/IteratorFastChar.html +37 -41
- data/doc/MDArray/IteratorFastDouble.html +37 -41
- data/doc/MDArray/IteratorFastFloat.html +37 -41
- data/doc/MDArray/IteratorFastInt.html +37 -41
- data/doc/MDArray/IteratorFastLong.html +37 -41
- data/doc/MDArray/IteratorFastShort.html +37 -41
- data/doc/MDArray/Section.html +561 -0
- data/doc/Nashorn.html +1407 -0
- data/doc/NetCDF.html +749 -0
- data/doc/NetCDF/Attribute.html +875 -0
- data/doc/NetCDF/AttributeWriter.html +286 -0
- data/doc/NetCDF/CDMNode.html +460 -0
- data/doc/NetCDF/Dimension.html +559 -0
- data/doc/NetCDF/DimensionWriter.html +642 -0
- data/doc/NetCDF/File.html +1593 -0
- data/doc/NetCDF/FileParent.html +674 -0
- data/doc/NetCDF/FileWriter.html +2875 -0
- data/doc/NetCDF/Group.html +685 -0
- data/doc/NetCDF/GroupWriter.html +851 -0
- data/doc/NetCDF/TimeVariable.html +646 -0
- data/doc/NetCDF/Variable.html +2994 -0
- data/doc/NetCDF/VariableWriter.html +420 -0
- data/doc/NonNumericalMDArray.html +11 -11
- data/doc/NumericFunctions.html +38 -30
- data/doc/NumericFunctions/Abs.html +189 -0
- data/doc/NumericFunctions/Add.html +189 -0
- data/doc/NumericFunctions/Ceil.html +189 -0
- data/doc/NumericFunctions/Cube.html +189 -0
- data/doc/NumericFunctions/Div.html +189 -0
- data/doc/NumericFunctions/Floor.html +189 -0
- data/doc/NumericFunctions/Fourth.html +189 -0
- data/doc/NumericFunctions/IsZero.html +189 -0
- data/doc/NumericFunctions/Max.html +189 -0
- data/doc/NumericFunctions/Min.html +189 -0
- data/doc/NumericFunctions/Mul.html +189 -0
- data/doc/NumericFunctions/Power.html +189 -0
- data/doc/NumericFunctions/Square.html +189 -0
- data/doc/NumericFunctions/Sub.html +189 -0
- data/doc/NumericFunctions/Truncate.html +189 -0
- data/doc/NumericalMDArray.html +14 -15
- data/doc/Operator.html +318 -109
- data/doc/Proc.html +120 -129
- data/doc/RubyBinaryOperator.html +66 -70
- data/doc/RubyFunctions.html +572 -27
- data/doc/RubyMath.html +18 -8
- data/doc/RubyMath/Acos.html +189 -0
- data/doc/RubyMath/Acosh.html +189 -0
- data/doc/RubyMath/Asin.html +189 -0
- data/doc/RubyMath/Asinh.html +189 -0
- data/doc/RubyMath/Atan.html +189 -0
- data/doc/RubyMath/Atan2.html +189 -0
- data/doc/RubyMath/Atanh.html +189 -0
- data/doc/RubyMath/Cbrt.html +189 -0
- data/doc/RubyMath/Cos.html +189 -0
- data/doc/RubyMath/Cosh.html +189 -0
- data/doc/RubyMath/Erf.html +189 -0
- data/doc/RubyMath/Erfc.html +189 -0
- data/doc/RubyMath/Exp.html +189 -0
- data/doc/RubyMath/Gamma.html +189 -0
- data/doc/RubyMath/Hypot.html +189 -0
- data/doc/RubyMath/Ldexp.html +189 -0
- data/doc/RubyMath/Log.html +189 -0
- data/doc/RubyMath/Log10.html +189 -0
- data/doc/RubyMath/Log2.html +189 -0
- data/doc/RubyMath/Neg.html +189 -0
- data/doc/RubyMath/Sin.html +189 -0
- data/doc/RubyMath/Sinh.html +189 -0
- data/doc/RubyMath/Sqrt.html +189 -0
- data/doc/RubyMath/Tan.html +189 -0
- data/doc/RubyMath/Tanh.html +189 -0
- data/doc/RubyStats.html +8 -8
- data/doc/RubyUnaryOperator.html +61 -65
- data/doc/ShortMDArray.html +69 -14
- data/doc/Sol.html +700 -0
- data/doc/Sol/BarChart.html +181 -0
- data/doc/Sol/BaseChart.html +800 -0
- data/doc/Sol/Bootstrap.html +1137 -0
- data/doc/Sol/Bridge.html +586 -0
- data/doc/Sol/Chart.html +1162 -0
- data/doc/Sol/CoordinateChart.html +679 -0
- data/doc/Sol/Dashboard.html +2094 -0
- data/doc/Sol/Dashboard/DCFX.html +786 -0
- data/doc/Sol/Dashboard/MyHandle.html +338 -0
- data/doc/Sol/Dashboard/MyService.html +202 -0
- data/doc/Sol/Dashboard/MyTask.html +291 -0
- data/doc/Sol/Interval.html +1213 -0
- data/doc/Sol/LineChart.html +346 -0
- data/doc/Sol/LinearScale.html +334 -0
- data/doc/Sol/Margins.html +219 -0
- data/doc/Sol/OrdinalScale.html +263 -0
- data/doc/Sol/Scale.html +462 -0
- data/doc/Sol/Stack.html +199 -0
- data/doc/Sol/TimeScale.html +397 -0
- data/doc/StatList.html +110 -125
- data/doc/StringMDArray.html +10 -10
- data/doc/StructureMDArray.html +10 -10
- data/doc/UnaryOperator.html +20 -21
- data/doc/UserFunction.html +51 -49
- data/doc/_index.html +881 -106
- data/doc/class_list.html +8 -3
- data/doc/css/style.css +2 -1
- data/doc/file.README.html +455 -104
- data/doc/file_list.html +7 -2
- data/doc/frames.html +5 -7
- data/doc/index.html +455 -104
- data/doc/js/app.js +7 -2
- data/doc/js/full_list.js +11 -3
- data/doc/method_list.html +3170 -1233
- data/doc/top-level-namespace.html +31 -8
- data/lib/colt/matrix/algebra.rb +5 -5
- data/lib/mdarray.rb +6 -3
- data/lib/mdarray/csv.rb +25 -5
- data/lib/mdarray/fast_operators.rb +1 -1
- data/lib/mdarray/function_creation.rb +3 -1
- data/lib/mdarray/hierarchy.rb +2 -0
- data/lib/mdarray/operators.rb +1 -1
- data/lib/mdarray/ruby_functions.rb +8 -4
- data/lib/mdarray/ruby_math.rb +0 -28
- data/test/colt/matrix/test_matrix2d_floatingalgebra.rb +31 -7
- data/test/complete.rb +4 -4
- data/test/mdarray/PETR4_2014.csv +249 -0
- data/test/mdarray/VALE_2014.csv +253 -0
- data/test/mdarray/VALE_PETR4.csv +501 -0
- data/test/mdarray/arithmetic_casting.rb +1 -0
- data/test/mdarray/test_access.rb +1 -0
- data/test/mdarray/test_boolean.rb +1 -0
- data/test/mdarray/test_comparison.rb +1 -0
- data/test/mdarray/test_complete.rb +2 -5
- data/test/mdarray/test_counter.rb +1 -0
- data/test/mdarray/test_creation.rb +1 -0
- data/test/mdarray/test_csv.rb +51 -0
- data/test/mdarray/test_error.rb +1 -0
- data/test/mdarray/test_non_numeric.rb +1 -1
- data/test/mdarray/test_operator.rb +31 -14
- data/test/mdarray/test_performance.rb +2 -1
- data/test/mdarray/test_printing.rb +1 -0
- data/test/mdarray/test_sections.rb +1 -0
- data/test/mdarray/test_shape.rb +1 -0
- data/test/mdarray/test_trigonometry.rb +1 -0
- data/test/mdarray/test_views.rb +1 -0
- data/vendor/mdarray.jar +0 -0
- data/vendor/{netcdfAll-4.5_0.jar → netcdfAll-4.6.jar} +0 -0
- data/vendor/slf4j-jdk14-1.7.12.jar +0 -0
- data/version.rb +1 -1
- metadata +247 -139
- data/lib/env.rb +0 -12
- data/lib/mdarray/lazy_mdarray.rb +0 -315
- data/lib/mdarray/lazy_operators.rb +0 -174
- data/test/env.rb +0 -8
- data/test/mdarray/test_lazy.rb +0 -306
data/doc/DoubleMDArray.html
CHANGED
|
@@ -6,18 +6,18 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: DoubleMDArray
|
|
8
8
|
|
|
9
|
-
— Documentation by YARD 0.8.
|
|
9
|
+
— Documentation by YARD 0.8.7.6
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
13
|
-
<link rel="stylesheet" href="css/style.css" type="text/css"
|
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
|
14
14
|
|
|
15
|
-
<link rel="stylesheet" href="css/common.css" type="text/css"
|
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
|
16
16
|
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
|
19
19
|
relpath = '';
|
|
20
|
-
framesUrl = "frames.html#!"
|
|
20
|
+
framesUrl = "frames.html#!DoubleMDArray.html";
|
|
21
21
|
</script>
|
|
22
22
|
|
|
23
23
|
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
<dt class="r2">Includes:</dt>
|
|
98
|
-
<dd class="r2"><span class='object_link'><a href="RubyStats.html" title="RubyStats (module)">RubyStats</a></span></dd>
|
|
98
|
+
<dd class="r2"><span class='object_link'><a href="CernDoubleFunctions.html" title="CernDoubleFunctions (module)">CernDoubleFunctions</a></span>, <span class='object_link'><a href="RubyStats.html" title="RubyStats (module)">RubyStats</a></span></dd>
|
|
99
99
|
|
|
100
100
|
|
|
101
101
|
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
|
|
104
104
|
<dt class="r1 last">Defined in:</dt>
|
|
105
105
|
<dd class="r1 last">lib/mdarray/hierarchy.rb<span class="defines">,<br />
|
|
106
|
-
lib/colt/colt_mdarray.rb,<br /> lib/mdarray/ruby_stats.rb</span>
|
|
106
|
+
lib/colt/colt_mdarray.rb,<br /> lib/mdarray/ruby_stats.rb,<br /> lib/colt/cern_double_functions.rb</span>
|
|
107
107
|
</dd>
|
|
108
108
|
|
|
109
109
|
</dl>
|
|
@@ -156,12 +156,12 @@
|
|
|
156
156
|
|
|
157
157
|
|
|
158
158
|
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="MDArray.html" title="MDArray (class)">MDArray</a></span></h3>
|
|
159
|
-
<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>
|
|
159
|
+
<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#id-instance_method" title="MDArray#id (method)">#id</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>
|
|
160
160
|
|
|
161
161
|
|
|
162
162
|
|
|
163
163
|
<h2>
|
|
164
|
-
|
|
164
|
+
Instance Method Summary
|
|
165
165
|
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
166
166
|
</h2>
|
|
167
167
|
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
<li class="public ">
|
|
171
171
|
<span class="summary_signature">
|
|
172
172
|
|
|
173
|
-
<a href="#
|
|
173
|
+
<a href="#reset_statistics-instance_method" title="#reset_statistics (instance method)">- (Object) <strong>reset_statistics</strong> </a>
|
|
174
174
|
|
|
175
175
|
|
|
176
176
|
|
|
@@ -185,7 +185,9 @@
|
|
|
185
185
|
|
|
186
186
|
|
|
187
187
|
<span class="summary_desc"><div class='inline'>
|
|
188
|
-
<p
|
|
188
|
+
<p>------------------------------------------------------------------------------------
|
|
189
|
+
Converts the mdarray to an DoubleArrayList usable by Parallel Colt
|
|
190
|
+
------------------------------------------------------------------------------------.</p>
|
|
189
191
|
</div></span>
|
|
190
192
|
|
|
191
193
|
</li>
|
|
@@ -193,21 +195,8 @@
|
|
|
193
195
|
|
|
194
196
|
</ul>
|
|
195
197
|
|
|
196
|
-
<h2>
|
|
197
|
-
Instance Method Summary
|
|
198
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
199
|
-
</h2>
|
|
200
198
|
|
|
201
|
-
<ul class="summary">
|
|
202
|
-
|
|
203
|
-
<li class="public ">
|
|
204
|
-
<span class="summary_signature">
|
|
205
|
-
|
|
206
|
-
<a href="#reset_statistics-instance_method" title="#reset_statistics (instance method)">- (Object) <strong>reset_statistics</strong> </a>
|
|
207
|
-
|
|
208
199
|
|
|
209
|
-
|
|
210
|
-
</span>
|
|
211
200
|
|
|
212
201
|
|
|
213
202
|
|
|
@@ -215,27 +204,21 @@
|
|
|
215
204
|
|
|
216
205
|
|
|
217
206
|
|
|
218
|
-
|
|
219
207
|
|
|
220
|
-
|
|
208
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="CernDoubleFunctions.html" title="CernDoubleFunctions (module)">CernDoubleFunctions</a></span></h3>
|
|
209
|
+
<p class="inherited"><span class='object_link'><a href="CernDoubleFunctions.html#register-class_method" title="CernDoubleFunctions.register (method)">register</a></span></p>
|
|
221
210
|
|
|
222
|
-
<p>Converts the mdarray to an DoubleArrayList usable by Parallel Colt
|
|
223
|
-
????????????????????????????.</p>
|
|
224
|
-
</div></span>
|
|
225
211
|
|
|
226
|
-
</li>
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
</ul>
|
|
230
212
|
|
|
231
|
-
|
|
232
|
-
|
|
233
213
|
|
|
234
214
|
|
|
235
215
|
|
|
236
216
|
|
|
237
217
|
|
|
238
218
|
|
|
219
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="CernFunctions.html" title="CernFunctions (module)">CernFunctions</a></span></h3>
|
|
220
|
+
<p class="inherited"><span class='object_link'><a href="CernFunctions.html#cern_binary_function-instance_method" title="CernFunctions#cern_binary_function (method)">#cern_binary_function</a></span>, <span class='object_link'><a href="CernFunctions.html#cern_comparison_function-instance_method" title="CernFunctions#cern_comparison_function (method)">#cern_comparison_function</a></span>, <span class='object_link'><a href="CernFunctions.html#cern_unary_function-instance_method" title="CernFunctions#cern_unary_function (method)">#cern_unary_function</a></span>, <span class='object_link'><a href="CernFunctions.html#make_binary_operator-instance_method" title="CernFunctions#make_binary_operator (method)">#make_binary_operator</a></span>, <span class='object_link'><a href="CernFunctions.html#make_binary_operators-instance_method" title="CernFunctions#make_binary_operators (method)">#make_binary_operators</a></span>, <span class='object_link'><a href="CernFunctions.html#make_comparison_operator-instance_method" title="CernFunctions#make_comparison_operator (method)">#make_comparison_operator</a></span>, <span class='object_link'><a href="CernFunctions.html#make_unary_operator-instance_method" title="CernFunctions#make_unary_operator (method)">#make_unary_operator</a></span>, <span class='object_link'><a href="CernFunctions.html#make_unary_operators-instance_method" title="CernFunctions#make_unary_operators (method)">#make_unary_operators</a></span></p>
|
|
221
|
+
|
|
239
222
|
|
|
240
223
|
|
|
241
224
|
|
|
@@ -244,8 +227,8 @@
|
|
|
244
227
|
|
|
245
228
|
|
|
246
229
|
|
|
247
|
-
<h3 class="inherited">Methods included from <span class='object_link'><a href="
|
|
248
|
-
<p class="inherited"><span class='object_link'><a href="
|
|
230
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="FunctionCreation.html" title="FunctionCreation (module)">FunctionCreation</a></span></h3>
|
|
231
|
+
<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_unary_op-instance_method" title="FunctionCreation#make_unary_op (method)">#make_unary_op</a></span></p>
|
|
249
232
|
|
|
250
233
|
|
|
251
234
|
|
|
@@ -255,8 +238,14 @@
|
|
|
255
238
|
|
|
256
239
|
|
|
257
240
|
|
|
258
|
-
|
|
259
|
-
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="RubyFunctions.html" title="RubyFunctions (module)">RubyFunctions</a></span></h3>
|
|
248
|
+
<p class="inherited"><span class='object_link'><a href="RubyFunctions.html#make_binary_operator-instance_method" title="RubyFunctions#make_binary_operator (method)">#make_binary_operator</a></span>, <span class='object_link'><a href="RubyFunctions.html#make_binary_operators-instance_method" title="RubyFunctions#make_binary_operators (method)">#make_binary_operators</a></span>, <span class='object_link'><a href="RubyFunctions.html#make_comparison_operator-instance_method" title="RubyFunctions#make_comparison_operator (method)">#make_comparison_operator</a></span>, <span class='object_link'><a href="RubyFunctions.html#make_unary_operator-instance_method" title="RubyFunctions#make_unary_operator (method)">#make_unary_operator</a></span>, <span class='object_link'><a href="RubyFunctions.html#make_unary_operators-instance_method" title="RubyFunctions#make_unary_operators (method)">#make_unary_operators</a></span>, <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>
|
|
260
249
|
|
|
261
250
|
|
|
262
251
|
|
|
@@ -301,7 +290,7 @@
|
|
|
301
290
|
|
|
302
291
|
|
|
303
292
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="MDArray.html" title="MDArray (class)">MDArray</a></span></h3>
|
|
304
|
-
<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>
|
|
293
|
+
<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#calc_value-class_method" title="MDArray.calc_value (method)">calc_value</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#flip-instance_method" title="MDArray#flip (method)">#flip</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#from_jstorage-class_method" title="MDArray.from_jstorage (method)">from_jstorage</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_as-instance_method" title="MDArray#get_as (method)">#get_as</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_scalar-instance_method" title="MDArray#get_scalar (method)">#get_scalar</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#immutable-instance_method" title="MDArray#immutable (method)">#immutable</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#jget-instance_method" title="MDArray#jget (method)">#jget</a></span>, <span class='object_link'><a href="MDArray.html#lazy%3D-class_method" title="MDArray.lazy= (method)">lazy=</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#print0d-instance_method" title="MDArray#print0d (method)">#print0d</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#region-instance_method" title="MDArray#region (method)">#region</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#rstring-class_method" title="MDArray.rstring (method)">rstring</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_lazy-class_method" title="MDArray.set_lazy (method)">set_lazy</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#set_scalar-instance_method" title="MDArray#set_scalar (method)">#set_scalar</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>
|
|
305
294
|
|
|
306
295
|
|
|
307
296
|
|
|
@@ -354,10 +343,9 @@
|
|
|
354
343
|
<td>
|
|
355
344
|
<pre class="code"><span class="info file"># File 'lib/colt/colt_mdarray.rb', line 30</span>
|
|
356
345
|
|
|
357
|
-
<span class='
|
|
358
|
-
<span class='
|
|
359
|
-
<span class='
|
|
360
|
-
</pre>
|
|
346
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_stat_list'>stat_list</span>
|
|
347
|
+
<span class='ivar'>@stat_list</span>
|
|
348
|
+
<span class='kw'>end</span></pre>
|
|
361
349
|
</td>
|
|
362
350
|
</tr>
|
|
363
351
|
</table>
|
|
@@ -366,125 +354,6 @@
|
|
|
366
354
|
</div>
|
|
367
355
|
|
|
368
356
|
|
|
369
|
-
<div id="class_method_details" class="method_details_list">
|
|
370
|
-
<h2>Class Method Details</h2>
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
<div class="method_details first">
|
|
374
|
-
<h3 class="signature first" id="colt_stats-class_method">
|
|
375
|
-
|
|
376
|
-
+ (<tt>Object</tt>) <strong>colt_stats</strong>
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
</h3><div class="docstring">
|
|
383
|
-
<div class="discussion">
|
|
384
|
-
<hr style="height: 10px">
|
|
385
|
-
<hr style="height: 10px">
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
</div>
|
|
389
|
-
</div>
|
|
390
|
-
<div class="tags">
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
</div><table class="source_code">
|
|
394
|
-
<tr>
|
|
395
|
-
<td>
|
|
396
|
-
<pre class="lines">
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
54
|
|
400
|
-
55
|
|
401
|
-
56
|
|
402
|
-
57
|
|
403
|
-
58
|
|
404
|
-
59
|
|
405
|
-
60
|
|
406
|
-
61
|
|
407
|
-
62
|
|
408
|
-
63
|
|
409
|
-
64
|
|
410
|
-
65
|
|
411
|
-
66
|
|
412
|
-
67
|
|
413
|
-
68
|
|
414
|
-
69
|
|
415
|
-
70
|
|
416
|
-
71
|
|
417
|
-
72
|
|
418
|
-
73
|
|
419
|
-
74
|
|
420
|
-
75
|
|
421
|
-
76
|
|
422
|
-
77
|
|
423
|
-
78
|
|
424
|
-
79
|
|
425
|
-
80
|
|
426
|
-
81
|
|
427
|
-
82
|
|
428
|
-
83
|
|
429
|
-
84
|
|
430
|
-
85
|
|
431
|
-
86
|
|
432
|
-
87
|
|
433
|
-
88
|
|
434
|
-
89
|
|
435
|
-
90
|
|
436
|
-
91</pre>
|
|
437
|
-
</td>
|
|
438
|
-
<td>
|
|
439
|
-
<pre class="code"><span class="info file"># File 'lib/colt/colt_mdarray.rb', line 54</span>
|
|
440
|
-
|
|
441
|
-
<span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_colt_stats identifier id'>colt_stats</span>
|
|
442
|
-
|
|
443
|
-
<span class='rubyid_stats identifier id'>stats</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='symbol val'>:array_list</span><span class='comma token'>,</span> <span class='symbol val'>:auto_correlation</span><span class='comma token'>,</span> <span class='symbol val'>:correlation</span><span class='comma token'>,</span> <span class='symbol val'>:covariance</span><span class='comma token'>,</span> <span class='symbol val'>:durbin_watson</span><span class='comma token'>,</span>
|
|
444
|
-
<span class='symbol val'>:frequencies</span><span class='comma token'>,</span>
|
|
445
|
-
<span class='symbol val'>:geometric_mean</span><span class='comma token'>,</span> <span class='symbol val'>:harmonic_mean</span><span class='comma token'>,</span> <span class='symbol val'>:kurtosis</span><span class='comma token'>,</span> <span class='symbol val'>:lag1</span><span class='comma token'>,</span> <span class='symbol val'>:list_size</span><span class='comma token'>,</span> <span class='symbol val'>:max</span><span class='comma token'>,</span> <span class='symbol val'>:mean</span><span class='comma token'>,</span>
|
|
446
|
-
<span class='symbol val'>:mean_deviation</span><span class='comma token'>,</span> <span class='symbol val'>:median</span><span class='comma token'>,</span> <span class='symbol val'>:min</span><span class='comma token'>,</span> <span class='symbol val'>:moment</span><span class='comma token'>,</span> <span class='symbol val'>:moment3</span><span class='comma token'>,</span> <span class='symbol val'>:moment4</span><span class='comma token'>,</span> <span class='symbol val'>:pooled_mean</span><span class='comma token'>,</span>
|
|
447
|
-
<span class='symbol val'>:pooled_variance</span><span class='comma token'>,</span> <span class='symbol val'>:product</span><span class='comma token'>,</span> <span class='symbol val'>:quantile</span><span class='comma token'>,</span> <span class='symbol val'>:quantile_inverse</span><span class='comma token'>,</span> <span class='symbol val'>:quantiles</span><span class='comma token'>,</span>
|
|
448
|
-
<span class='symbol val'>:rank_interpolated</span><span class='comma token'>,</span> <span class='symbol val'>:rms</span><span class='comma token'>,</span> <span class='symbol val'>:sample_covariance</span><span class='comma token'>,</span> <span class='symbol val'>:sample_kurtosis</span><span class='comma token'>,</span>
|
|
449
|
-
<span class='symbol val'>:sample_kurtosis_standard_error</span><span class='comma token'>,</span>
|
|
450
|
-
<span class='symbol val'>:sample_skew</span><span class='comma token'>,</span> <span class='symbol val'>:sample_skew_standard_error</span><span class='comma token'>,</span> <span class='symbol val'>:sample_standard_deviation</span><span class='comma token'>,</span>
|
|
451
|
-
<span class='symbol val'>:sample_variance</span><span class='comma token'>,</span> <span class='symbol val'>:sample_weighted_variance</span><span class='comma token'>,</span> <span class='symbol val'>:skew</span><span class='comma token'>,</span> <span class='symbol val'>:split</span><span class='comma token'>,</span>
|
|
452
|
-
<span class='symbol val'>:standard_deviation</span><span class='comma token'>,</span> <span class='symbol val'>:standard_error</span><span class='comma token'>,</span> <span class='symbol val'>:sum</span><span class='comma token'>,</span>
|
|
453
|
-
<span class='symbol val'>:sum_of_inversions</span><span class='comma token'>,</span> <span class='symbol val'>:sum_of_logarithms</span><span class='comma token'>,</span> <span class='symbol val'>:sum_of_powers</span><span class='comma token'>,</span>
|
|
454
|
-
<span class='symbol val'>:sum_of_power_deviations</span><span class='comma token'>,</span> <span class='symbol val'>:sum_of_squares</span><span class='comma token'>,</span> <span class='symbol val'>:sum_of_squared_deviations</span><span class='comma token'>,</span>
|
|
455
|
-
<span class='symbol val'>:trimmed_mean</span><span class='comma token'>,</span>
|
|
456
|
-
<span class='symbol val'>:variance</span><span class='comma token'>,</span> <span class='symbol val'>:weighted_mean</span><span class='comma token'>,</span> <span class='symbol val'>:weighted_rms</span><span class='comma token'>,</span> <span class='symbol val'>:weighted_sums</span><span class='comma token'>,</span> <span class='symbol val'>:winsorized_mean</span><span class='rbrack token'>]</span>
|
|
457
|
-
|
|
458
|
-
<span class='comment val'>=begin
|
|
459
|
-
# undefine all methods. Need for now, on furture versions we should be able to
|
|
460
|
-
# have many ways of executing the same method, so there should be no need to
|
|
461
|
-
# undef a method.
|
|
462
|
-
stats.each do |method|
|
|
463
|
-
remove_method(:max)
|
|
464
|
-
end
|
|
465
|
-
=end
|
|
466
|
-
</span>
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
<span class='comment val'># define all statistics methods from colt</span>
|
|
470
|
-
<span class='rubyid_stats identifier id'>stats</span><span class='dot token'>.</span><span class='rubyid_each identifier id'>each</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_method identifier id'>method</span><span class='bitor op'>|</span>
|
|
471
|
-
<span class='rubyid_define_method identifier id'>define_method</span><span class='lparen token'>(</span><span class='rubyid_method identifier id'>method</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='mult op'>*</span><span class='rubyid_args identifier id'>args</span><span class='bitor op'>|</span> <span class='rubyid_@stat_list ivar id'>@stat_list</span><span class='dot token'>.</span><span class='rubyid_send identifier id'>send</span><span class='lparen token'>(</span><span class='rubyid_method identifier id'>method</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='rbrace token'>}</span>
|
|
472
|
-
<span class='rubyid_end end kw'>end</span>
|
|
473
|
-
|
|
474
|
-
<span class='rubyid_define_method identifier id'>define_method</span><span class='lparen token'>(</span><span class='symbol val'>:standardize</span><span class='rparen token'>)</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='mult op'>*</span><span class='rubyid_args identifier id'>args</span><span class='bitor op'>|</span>
|
|
475
|
-
<span class='rubyid_@stat_list ivar id'>@stat_list</span><span class='dot token'>.</span><span class='rubyid_standardize! fid id'>standardize!</span><span class='lparen token'>(</span><span class='mult op'>*</span><span class='rubyid_args identifier id'>args</span><span class='rparen token'>)</span>
|
|
476
|
-
<span class='rubyid_@stat_list ivar id'>@stat_list</span><span class='dot token'>.</span><span class='rubyid_elements identifier id'>elements</span>
|
|
477
|
-
<span class='rubyid_end end kw'>end</span>
|
|
478
|
-
|
|
479
|
-
<span class='rubyid_end end kw'>end</span>
|
|
480
|
-
</pre>
|
|
481
|
-
</td>
|
|
482
|
-
</tr>
|
|
483
|
-
</table>
|
|
484
|
-
</div>
|
|
485
|
-
|
|
486
|
-
</div>
|
|
487
|
-
|
|
488
357
|
<div id="instance_method_details" class="method_details_list">
|
|
489
358
|
<h2>Instance Method Details</h2>
|
|
490
359
|
|
|
@@ -500,10 +369,10 @@
|
|
|
500
369
|
|
|
501
370
|
</h3><div class="docstring">
|
|
502
371
|
<div class="discussion">
|
|
503
|
-
<hr
|
|
372
|
+
<hr>
|
|
504
373
|
|
|
505
374
|
<p>Converts the mdarray to an DoubleArrayList usable by Parallel Colt</p>
|
|
506
|
-
<hr
|
|
375
|
+
<hr>
|
|
507
376
|
|
|
508
377
|
|
|
509
378
|
</div>
|
|
@@ -528,14 +397,13 @@
|
|
|
528
397
|
<td>
|
|
529
398
|
<pre class="code"><span class="info file"># File 'lib/colt/colt_mdarray.rb', line 36</span>
|
|
530
399
|
|
|
531
|
-
<span class='
|
|
400
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_reset_statistics'>reset_statistics</span>
|
|
532
401
|
|
|
533
|
-
<span class='
|
|
534
|
-
<span class='
|
|
535
|
-
<span class='
|
|
402
|
+
<span class='id identifier rubyid_base_array'>base_array</span> <span class='op'>=</span> <span class='ivar'>@nc_array</span><span class='period'>.</span><span class='id identifier rubyid_get1DJavaArray'>get1DJavaArray</span><span class='lparen'>(</span><span class='const'>Java</span><span class='op'>::</span><span class='id identifier rubyid_double'>double</span><span class='period'>.</span><span class='id identifier rubyid_java_class'>java_class</span><span class='rparen'>)</span>
|
|
403
|
+
<span class='id identifier rubyid_double_array_list'>double_array_list</span> <span class='op'>=</span> <span class='const'>Java</span><span class='op'>::</span><span class='const'>CernColtListTdouble</span><span class='op'>::</span><span class='const'>DoubleArrayList</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_base_array'>base_array</span><span class='rparen'>)</span>
|
|
404
|
+
<span class='ivar'>@stat_list</span> <span class='op'>=</span> <span class='const'>DoubleStatList</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_double_array_list'>double_array_list</span><span class='rparen'>)</span>
|
|
536
405
|
|
|
537
|
-
<span class='
|
|
538
|
-
</pre>
|
|
406
|
+
<span class='kw'>end</span></pre>
|
|
539
407
|
</td>
|
|
540
408
|
</tr>
|
|
541
409
|
</table>
|
|
@@ -546,9 +414,9 @@
|
|
|
546
414
|
</div>
|
|
547
415
|
|
|
548
416
|
<div id="footer">
|
|
549
|
-
Generated on
|
|
417
|
+
Generated on Tue Jul 14 18:08:59 2015 by
|
|
550
418
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
551
|
-
0.8.
|
|
419
|
+
0.8.7.6 (ruby-1.9.3).
|
|
552
420
|
</div>
|
|
553
421
|
|
|
554
422
|
</body>
|
data/doc/DoubleStatList.html
CHANGED
|
@@ -6,18 +6,18 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: DoubleStatList
|
|
8
8
|
|
|
9
|
-
— Documentation by YARD 0.8.
|
|
9
|
+
— Documentation by YARD 0.8.7.6
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
13
|
-
<link rel="stylesheet" href="css/style.css" type="text/css"
|
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
|
14
14
|
|
|
15
|
-
<link rel="stylesheet" href="css/common.css" type="text/css"
|
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
|
16
16
|
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
|
19
19
|
relpath = '';
|
|
20
|
-
framesUrl = "frames.html#!"
|
|
20
|
+
framesUrl = "frames.html#!DoubleStatList.html";
|
|
21
21
|
</script>
|
|
22
22
|
|
|
23
23
|
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
|
|
146
146
|
|
|
147
147
|
<span class="summary_desc"><div class='inline'>
|
|
148
|
-
<p
|
|
148
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
149
149
|
</div></span>
|
|
150
150
|
|
|
151
151
|
</li>
|
|
@@ -190,8 +190,8 @@
|
|
|
190
190
|
|
|
191
191
|
</h3><div class="docstring">
|
|
192
192
|
<div class="discussion">
|
|
193
|
-
<hr
|
|
194
|
-
<hr
|
|
193
|
+
<hr>
|
|
194
|
+
<hr>
|
|
195
195
|
|
|
196
196
|
|
|
197
197
|
</div>
|
|
@@ -222,20 +222,19 @@
|
|
|
222
222
|
<td>
|
|
223
223
|
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 178</span>
|
|
224
224
|
|
|
225
|
-
<span class='
|
|
225
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
226
226
|
|
|
227
|
-
<span class='
|
|
227
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
|
228
228
|
|
|
229
|
-
<span class='
|
|
230
|
-
<span class='
|
|
231
|
-
<span class='
|
|
232
|
-
<span class='
|
|
233
|
-
<span class='
|
|
234
|
-
<span class='
|
|
235
|
-
<span class='
|
|
229
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span> <span class='op'>==</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
230
|
+
<span class='ivar'>@array_list</span> <span class='op'>=</span> <span class='const'>Java</span><span class='op'>::</span><span class='const'>CernColtListTdouble</span><span class='op'>::</span><span class='const'>DoubleArrayList</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
|
231
|
+
<span class='kw'>elsif</span> <span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Integer</span><span class='rparen'>)</span>
|
|
232
|
+
<span class='ivar'>@array_list</span> <span class='op'>=</span> <span class='const'>Java</span><span class='op'>::</span><span class='const'>CernColtListTdouble</span><span class='op'>::</span><span class='const'>DoubleArrayList</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
|
233
|
+
<span class='kw'>else</span> <span class='comment'># Receiving a DoubleArrayList
|
|
234
|
+
</span> <span class='ivar'>@array_list</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
|
|
235
|
+
<span class='kw'>end</span>
|
|
236
236
|
|
|
237
|
-
<span class='
|
|
238
|
-
</pre>
|
|
237
|
+
<span class='kw'>end</span></pre>
|
|
239
238
|
</td>
|
|
240
239
|
</tr>
|
|
241
240
|
</table>
|
|
@@ -247,9 +246,9 @@
|
|
|
247
246
|
</div>
|
|
248
247
|
|
|
249
248
|
<div id="footer">
|
|
250
|
-
Generated on
|
|
249
|
+
Generated on Tue Jul 14 18:08:59 2015 by
|
|
251
250
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
252
|
-
0.8.
|
|
251
|
+
0.8.7.6 (ruby-1.9.3).
|
|
253
252
|
</div>
|
|
254
253
|
|
|
255
254
|
</body>
|
data/doc/FastBinaryOperator.html
CHANGED
|
@@ -6,18 +6,18 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: FastBinaryOperator
|
|
8
8
|
|
|
9
|
-
— Documentation by YARD 0.8.
|
|
9
|
+
— Documentation by YARD 0.8.7.6
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
13
|
-
<link rel="stylesheet" href="css/style.css" type="text/css"
|
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
|
14
14
|
|
|
15
|
-
<link rel="stylesheet" href="css/common.css" type="text/css"
|
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
|
16
16
|
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
|
19
19
|
relpath = '';
|
|
20
|
-
framesUrl = "frames.html#!"
|
|
20
|
+
framesUrl = "frames.html#!FastBinaryOperator.html";
|
|
21
21
|
</script>
|
|
22
22
|
|
|
23
23
|
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
<h2>Instance Attribute Summary</h2>
|
|
113
113
|
|
|
114
114
|
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Operator.html" title="Operator (class)">Operator</a></span></h3>
|
|
115
|
-
<p class="inherited"><span class='object_link'><a href="Operator.html#arity-instance_method" title="Operator#arity (method)">#arity</a></span>, <span class='object_link'><a href="Operator.html#exec_type-instance_method" title="Operator#exec_type (method)">#exec_type</a></span>, <span class='object_link'><a href="Operator.html#force_type-instance_method" title="Operator#force_type (method)">#force_type</a></span>, <span class='object_link'><a href="Operator.html#name-instance_method" title="Operator#name (method)">#name</a></span>, <span class='object_link'><a href="Operator.html#post_condition-instance_method" title="Operator#post_condition (method)">#post_condition</a></span>, <span class='object_link'><a href="Operator.html#pre_condition-instance_method" title="Operator#pre_condition (method)">#pre_condition</a></span>, <span class='object_link'><a href="Operator.html#type-instance_method" title="Operator#type (method)">#type</a></span></p>
|
|
115
|
+
<p class="inherited"><span class='object_link'><a href="Operator.html#arity-instance_method" title="Operator#arity (method)">#arity</a></span>, <span class='object_link'><a href="Operator.html#exec_type-instance_method" title="Operator#exec_type (method)">#exec_type</a></span>, <span class='object_link'><a href="Operator.html#fmap-instance_method" title="Operator#fmap (method)">#fmap</a></span>, <span class='object_link'><a href="Operator.html#force_type-instance_method" title="Operator#force_type (method)">#force_type</a></span>, <span class='object_link'><a href="Operator.html#helper-instance_method" title="Operator#helper (method)">#helper</a></span>, <span class='object_link'><a href="Operator.html#name-instance_method" title="Operator#name (method)">#name</a></span>, <span class='object_link'><a href="Operator.html#other_args-instance_method" title="Operator#other_args (method)">#other_args</a></span>, <span class='object_link'><a href="Operator.html#post_condition-instance_method" title="Operator#post_condition (method)">#post_condition</a></span>, <span class='object_link'><a href="Operator.html#pre_condition-instance_method" title="Operator#pre_condition (method)">#pre_condition</a></span>, <span class='object_link'><a href="Operator.html#type-instance_method" title="Operator#type (method)">#type</a></span></p>
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
|
|
142
142
|
|
|
143
143
|
<span class="summary_desc"><div class='inline'>
|
|
144
|
-
<p
|
|
144
|
+
<p>---------------------------------------------------------------------------------------.</p>
|
|
145
145
|
</div></span>
|
|
146
146
|
|
|
147
147
|
</li>
|
|
@@ -165,7 +165,12 @@
|
|
|
165
165
|
|
|
166
166
|
|
|
167
167
|
<span class="summary_desc"><div class='inline'>
|
|
168
|
-
<p
|
|
168
|
+
<p>---------------------------------------------------------------------------------------
|
|
169
|
+
A default binary operator takes two arrays where one array can be
|
|
170
|
+
degenerated (a number and loops through all elements of the arrays
|
|
171
|
+
applying a given method to them. For instance, operator '+' in a + b is a
|
|
172
|
+
default binary operator.
|
|
173
|
+
---------------------------------------------------------------------------------------.</p>
|
|
169
174
|
</div></span>
|
|
170
175
|
|
|
171
176
|
</li>
|
|
@@ -189,7 +194,10 @@
|
|
|
189
194
|
|
|
190
195
|
|
|
191
196
|
<span class="summary_desc"><div class='inline'>
|
|
192
|
-
<p
|
|
197
|
+
<p>---------------------------------------------------------------------------------------
|
|
198
|
+
A fill binary operator takes two arrays where one array can be degenerated
|
|
199
|
+
(a number) and loops through all elements of the arrays, setting the value
|
|
200
|
+
of the first array to the values of the second.</p>
|
|
193
201
|
</div></span>
|
|
194
202
|
|
|
195
203
|
</li>
|
|
@@ -198,7 +206,7 @@
|
|
|
198
206
|
<li class="public ">
|
|
199
207
|
<span class="summary_signature">
|
|
200
208
|
|
|
201
|
-
<a href="#get_args-instance_method" title="#get_args (instance method)">- (Object) <strong>get_args</strong>(*args) {|@op1.nc_array, arg2, @op1.shape,
|
|
209
|
+
<a href="#get_args-instance_method" title="#get_args (instance method)">- (Object) <strong>get_args</strong>(*args) {|@op1.nc_array, arg2, @op1.shape, args| ... }</a>
|
|
202
210
|
|
|
203
211
|
|
|
204
212
|
|
|
@@ -213,7 +221,7 @@
|
|
|
213
221
|
|
|
214
222
|
|
|
215
223
|
<span class="summary_desc"><div class='inline'>
|
|
216
|
-
<p
|
|
224
|
+
<p>---------------------------------------------------------------------------------------.</p>
|
|
217
225
|
</div></span>
|
|
218
226
|
|
|
219
227
|
</li>
|
|
@@ -237,7 +245,7 @@
|
|
|
237
245
|
|
|
238
246
|
|
|
239
247
|
<span class="summary_desc"><div class='inline'>
|
|
240
|
-
<p
|
|
248
|
+
<p>---------------------------------------------------------------------------------------.</p>
|
|
241
249
|
</div></span>
|
|
242
250
|
|
|
243
251
|
</li>
|
|
@@ -261,7 +269,7 @@
|
|
|
261
269
|
|
|
262
270
|
|
|
263
271
|
<span class="summary_desc"><div class='inline'>
|
|
264
|
-
<p
|
|
272
|
+
<p>---------------------------------------------------------------------------------------.</p>
|
|
265
273
|
</div></span>
|
|
266
274
|
|
|
267
275
|
</li>
|
|
@@ -315,8 +323,8 @@
|
|
|
315
323
|
|
|
316
324
|
</h3><div class="docstring">
|
|
317
325
|
<div class="discussion">
|
|
318
|
-
<hr
|
|
319
|
-
<hr
|
|
326
|
+
<hr>
|
|
327
|
+
<hr>
|
|
320
328
|
|
|
321
329
|
|
|
322
330
|
</div>
|
|
@@ -330,37 +338,38 @@
|
|
|
330
338
|
<pre class="lines">
|
|
331
339
|
|
|
332
340
|
|
|
333
|
-
143
|
|
334
|
-
144
|
|
335
|
-
145
|
|
336
|
-
146
|
|
337
|
-
147
|
|
338
|
-
148
|
|
339
341
|
149
|
|
340
342
|
150
|
|
341
343
|
151
|
|
342
344
|
152
|
|
343
345
|
153
|
|
344
346
|
154
|
|
345
|
-
155
|
|
347
|
+
155
|
|
348
|
+
156
|
|
349
|
+
157
|
|
350
|
+
158
|
|
351
|
+
159
|
|
352
|
+
160
|
|
353
|
+
161
|
|
354
|
+
162</pre>
|
|
346
355
|
</td>
|
|
347
356
|
<td>
|
|
348
|
-
<pre class="code"><span class="info file"># File 'lib/mdarray/fast_operators.rb', line
|
|
357
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/fast_operators.rb', line 149</span>
|
|
349
358
|
|
|
350
|
-
<span class='
|
|
359
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_complex_reduce'>complex_reduce</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
351
360
|
|
|
352
|
-
<span class='
|
|
361
|
+
<span class='id identifier rubyid_calc'>calc</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
|
353
362
|
|
|
354
|
-
<span class='
|
|
355
|
-
<span class='
|
|
356
|
-
<span class='
|
|
357
|
-
<span class='
|
|
358
|
-
|
|
363
|
+
<span class='id identifier rubyid_get_args'>get_args</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_op1'>op1</span><span class='comma'>,</span> <span class='id identifier rubyid_op2'>op2</span><span class='comma'>,</span> <span class='id identifier rubyid_shape'>shape</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_other_args'>other_args</span><span class='op'>|</span>
|
|
364
|
+
<span class='comment'># return nil if op2 == nil
|
|
365
|
+
</span> <span class='id identifier rubyid_helper'>helper</span> <span class='op'>=</span> <span class='ivar'>@helper</span><span class='op'>::</span><span class='const'>ComplexReduceBinaryOperator</span>
|
|
366
|
+
<span class='id identifier rubyid_calc'>calc</span> <span class='op'>=</span> <span class='ivar'>@pre_condition_result</span>
|
|
367
|
+
<span class='id identifier rubyid_calc'>calc</span> <span class='op'>=</span> <span class='id identifier rubyid_helper'>helper</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>apply</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_calc'>calc</span><span class='comma'>,</span> <span class='id identifier rubyid_op1'>op1</span><span class='comma'>,</span> <span class='id identifier rubyid_op2'>op2</span><span class='comma'>,</span> <span class='ivar'>@do_func</span><span class='rparen'>)</span>
|
|
368
|
+
<span class='kw'>end</span>
|
|
359
369
|
|
|
360
|
-
<span class='
|
|
370
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_calc'>calc</span>
|
|
361
371
|
|
|
362
|
-
<span class='
|
|
363
|
-
</pre>
|
|
372
|
+
<span class='kw'>end</span></pre>
|
|
364
373
|
</td>
|
|
365
374
|
</tr>
|
|
366
375
|
</table>
|
|
@@ -377,8 +386,14 @@
|
|
|
377
386
|
|
|
378
387
|
</h3><div class="docstring">
|
|
379
388
|
<div class="discussion">
|
|
380
|
-
<hr
|
|
381
|
-
|
|
389
|
+
<hr>
|
|
390
|
+
|
|
391
|
+
<p>A default binary operator takes two arrays where one array can be
|
|
392
|
+
degenerated (a number and loops through all elements of the arrays
|
|
393
|
+
applying a given method to them.</p>
|
|
394
|
+
|
|
395
|
+
<p>For instance, operator '+' in a + b is a default binary operator.</p>
|
|
396
|
+
<hr>
|
|
382
397
|
|
|
383
398
|
|
|
384
399
|
</div>
|
|
@@ -392,8 +407,6 @@
|
|
|
392
407
|
<pre class="lines">
|
|
393
408
|
|
|
394
409
|
|
|
395
|
-
75
|
|
396
|
-
76
|
|
397
410
|
77
|
|
398
411
|
78
|
|
399
412
|
79
|
|
@@ -410,31 +423,32 @@
|
|
|
410
423
|
90
|
|
411
424
|
91
|
|
412
425
|
92
|
|
413
|
-
93
|
|
426
|
+
93
|
|
427
|
+
94
|
|
428
|
+
95</pre>
|
|
414
429
|
</td>
|
|
415
430
|
<td>
|
|
416
|
-
<pre class="code"><span class="info file"># File 'lib/mdarray/fast_operators.rb', line
|
|
417
|
-
|
|
418
|
-
<span class='
|
|
419
|
-
|
|
420
|
-
<span class='
|
|
421
|
-
<span class='
|
|
422
|
-
<span class='
|
|
423
|
-
<span class='
|
|
424
|
-
<span class='
|
|
425
|
-
<span class='
|
|
426
|
-
<span class='
|
|
427
|
-
<span class='
|
|
428
|
-
<span class='
|
|
429
|
-
<span class='
|
|
430
|
-
<span class='
|
|
431
|
-
<span class='
|
|
432
|
-
<span class='
|
|
433
|
-
<span class='
|
|
434
|
-
<span class='
|
|
435
|
-
|
|
436
|
-
<span class='
|
|
437
|
-
</pre>
|
|
431
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/fast_operators.rb', line 77</span>
|
|
432
|
+
|
|
433
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_default'>default</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
434
|
+
|
|
435
|
+
<span class='id identifier rubyid_calc'>calc</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
|
436
|
+
<span class='id identifier rubyid_get_args'>get_args</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_op1'>op1</span><span class='comma'>,</span> <span class='id identifier rubyid_op2'>op2</span><span class='comma'>,</span> <span class='id identifier rubyid_shape'>shape</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_other_args'>other_args</span><span class='op'>|</span>
|
|
437
|
+
<span class='id identifier rubyid_calc'>calc</span> <span class='op'>=</span> <span class='const'>MDArray</span><span class='period'>.</span><span class='id identifier rubyid_build'>build</span><span class='lparen'>(</span><span class='ivar'>@type</span><span class='comma'>,</span> <span class='id identifier rubyid_shape'>shape</span><span class='rparen'>)</span>
|
|
438
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='ivar'>@coerced</span><span class='rparen'>)</span>
|
|
439
|
+
<span class='id identifier rubyid_helper'>helper</span> <span class='op'>=</span> <span class='ivar'>@helper</span><span class='op'>::</span><span class='const'>CoerceBinaryOperator</span>
|
|
440
|
+
<span class='id identifier rubyid_helper'>helper</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>apply</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_calc'>calc</span><span class='period'>.</span><span class='id identifier rubyid_nc_array'>nc_array</span><span class='comma'>,</span> <span class='id identifier rubyid_op1'>op1</span><span class='comma'>,</span> <span class='id identifier rubyid_op2'>op2</span><span class='comma'>,</span> <span class='ivar'>@do_func</span><span class='rparen'>)</span>
|
|
441
|
+
<span class='kw'>elsif</span> <span class='lparen'>(</span><span class='ivar'>@op1</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>NumericalMDArray</span><span class='rparen'>)</span>
|
|
442
|
+
<span class='id identifier rubyid_helper'>helper</span> <span class='op'>=</span> <span class='ivar'>@helper</span><span class='op'>::</span><span class='const'>DefaultBinaryOperator</span>
|
|
443
|
+
<span class='id identifier rubyid_helper'>helper</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>apply</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_calc'>calc</span><span class='period'>.</span><span class='id identifier rubyid_nc_array'>nc_array</span><span class='comma'>,</span> <span class='id identifier rubyid_op1'>op1</span><span class='comma'>,</span> <span class='id identifier rubyid_op2'>op2</span><span class='comma'>,</span> <span class='ivar'>@do_func</span><span class='rparen'>)</span>
|
|
444
|
+
<span class='kw'>else</span>
|
|
445
|
+
<span class='id identifier rubyid_helper'>helper</span> <span class='op'>=</span> <span class='ivar'>@helper</span><span class='op'>::</span><span class='const'>DefaultBinaryOperator</span>
|
|
446
|
+
<span class='id identifier rubyid_helper'>helper</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>apply</span><span class='embexpr_beg'>#{</span><span class='ivar'>@op1</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_calc'>calc</span><span class='period'>.</span><span class='id identifier rubyid_nc_array'>nc_array</span><span class='comma'>,</span> <span class='id identifier rubyid_op1'>op1</span><span class='comma'>,</span> <span class='id identifier rubyid_op2'>op2</span><span class='comma'>,</span> <span class='ivar'>@do_func</span><span class='rparen'>)</span>
|
|
447
|
+
<span class='kw'>end</span>
|
|
448
|
+
<span class='kw'>end</span>
|
|
449
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_calc'>calc</span>
|
|
450
|
+
|
|
451
|
+
<span class='kw'>end</span></pre>
|
|
438
452
|
</td>
|
|
439
453
|
</tr>
|
|
440
454
|
</table>
|
|
@@ -451,8 +465,12 @@
|
|
|
451
465
|
|
|
452
466
|
</h3><div class="docstring">
|
|
453
467
|
<div class="discussion">
|
|
454
|
-
<hr
|
|
455
|
-
|
|
468
|
+
<hr>
|
|
469
|
+
|
|
470
|
+
<p>A fill binary operator takes two arrays where one array can be degenerated
|
|
471
|
+
(a number) and loops through all elements of the arrays, setting the value
|
|
472
|
+
of the first array to the values of the second.</p>
|
|
473
|
+
<hr>
|
|
456
474
|
|
|
457
475
|
|
|
458
476
|
</div>
|
|
@@ -466,27 +484,28 @@
|
|
|
466
484
|
<pre class="lines">
|
|
467
485
|
|
|
468
486
|
|
|
469
|
-
99
|
|
470
|
-
100
|
|
471
|
-
101
|
|
472
|
-
102
|
|
473
487
|
103
|
|
474
488
|
104
|
|
475
489
|
105
|
|
476
|
-
106
|
|
490
|
+
106
|
|
491
|
+
107
|
|
492
|
+
108
|
|
493
|
+
109
|
|
494
|
+
110
|
|
495
|
+
111</pre>
|
|
477
496
|
</td>
|
|
478
497
|
<td>
|
|
479
|
-
<pre class="code"><span class="info file"># File 'lib/mdarray/fast_operators.rb', line
|
|
498
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/fast_operators.rb', line 103</span>
|
|
499
|
+
|
|
500
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_fill'>fill</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
480
501
|
|
|
481
|
-
<span class='
|
|
502
|
+
<span class='id identifier rubyid_get_args'>get_args</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_op1'>op1</span><span class='comma'>,</span> <span class='id identifier rubyid_op2'>op2</span><span class='comma'>,</span> <span class='id identifier rubyid_shape'>shape</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_other_args'>other_args</span><span class='op'>|</span>
|
|
503
|
+
<span class='id identifier rubyid_helper'>helper</span> <span class='op'>=</span> <span class='ivar'>@helper</span><span class='op'>::</span><span class='const'>FillBinaryOperator</span>
|
|
504
|
+
<span class='id identifier rubyid_helper'>helper</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>apply</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_op1'>op1</span><span class='comma'>,</span> <span class='id identifier rubyid_op2'>op2</span><span class='rparen'>)</span>
|
|
482
505
|
|
|
483
|
-
<span class='
|
|
484
|
-
<span class='rubyid_helper identifier id'>helper</span> <span class='assign token'>=</span> <span class='rubyid_Java constant id'>Java</span><span class='colon2 op'>::</span><span class='rubyid_RbMdarrayLoopsBinops constant id'>RbMdarrayLoopsBinops</span><span class='colon2 op'>::</span><span class='rubyid_FillBinaryOperator constant id'>FillBinaryOperator</span>
|
|
485
|
-
<span class='rubyid_helper identifier id'>helper</span><span class='dot token'>.</span><span class='rubyid_send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>"apply"</span><span class='comma token'>,</span> <span class='rubyid_op1 identifier id'>op1</span><span class='comma token'>,</span> <span class='rubyid_op2 identifier id'>op2</span><span class='rparen token'>)</span>
|
|
486
|
-
<span class='rubyid_end end kw'>end</span>
|
|
506
|
+
<span class='kw'>end</span>
|
|
487
507
|
|
|
488
|
-
<span class='
|
|
489
|
-
</pre>
|
|
508
|
+
<span class='kw'>end</span></pre>
|
|
490
509
|
</td>
|
|
491
510
|
</tr>
|
|
492
511
|
</table>
|
|
@@ -495,7 +514,7 @@
|
|
|
495
514
|
<div class="method_details ">
|
|
496
515
|
<h3 class="signature " id="get_args-instance_method">
|
|
497
516
|
|
|
498
|
-
- (<tt>Object</tt>) <strong>get_args</strong>(*args) {|@op1.nc_array, arg2, @op1.shape,
|
|
517
|
+
- (<tt>Object</tt>) <strong>get_args</strong>(*args) {|@op1.nc_array, arg2, @op1.shape, args| ... }
|
|
499
518
|
|
|
500
519
|
|
|
501
520
|
|
|
@@ -503,8 +522,8 @@
|
|
|
503
522
|
|
|
504
523
|
</h3><div class="docstring">
|
|
505
524
|
<div class="discussion">
|
|
506
|
-
<hr
|
|
507
|
-
<hr
|
|
525
|
+
<hr>
|
|
526
|
+
<hr>
|
|
508
527
|
|
|
509
528
|
|
|
510
529
|
</div>
|
|
@@ -517,7 +536,7 @@
|
|
|
517
536
|
<li>
|
|
518
537
|
|
|
519
538
|
|
|
520
|
-
<span class='type'>(<tt>@op1.nc_array</tt>, <tt>arg2</tt>, <tt>@op1.shape</tt>, <tt
|
|
539
|
+
<span class='type'>(<tt>@op1.nc_array</tt>, <tt>arg2</tt>, <tt>@op1.shape</tt>, <tt>args</tt>)</span>
|
|
521
540
|
|
|
522
541
|
|
|
523
542
|
|
|
@@ -572,44 +591,43 @@
|
|
|
572
591
|
<td>
|
|
573
592
|
<pre class="code"><span class="info file"># File 'lib/mdarray/fast_operators.rb', line 33</span>
|
|
574
593
|
|
|
575
|
-
<span class='
|
|
576
|
-
|
|
577
|
-
<span class='
|
|
578
|
-
|
|
579
|
-
<span class='
|
|
580
|
-
<span class='
|
|
581
|
-
<span class='
|
|
582
|
-
<span class='
|
|
583
|
-
<span class='
|
|
584
|
-
<span class='
|
|
585
|
-
<span class='
|
|
586
|
-
<span class='
|
|
587
|
-
<span class='
|
|
588
|
-
<span class='
|
|
589
|
-
<span class='comment
|
|
590
|
-
<span class='comment
|
|
591
|
-
<span class='comment
|
|
592
|
-
<span class='comment
|
|
593
|
-
<span class='comment
|
|
594
|
-
<span class='
|
|
594
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_get_args'>get_args</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
595
|
+
|
|
596
|
+
<span class='id identifier rubyid_parse_args'>parse_args</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
597
|
+
|
|
598
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='ivar'>@op1</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>NumericalMDArray</span><span class='rparen'>)</span>
|
|
599
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='ivar'>@op2</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Numeric</span><span class='rparen'>)</span>
|
|
600
|
+
<span class='id identifier rubyid_arg2'>arg2</span> <span class='op'>=</span> <span class='ivar'>@op2</span>
|
|
601
|
+
<span class='kw'>elsif</span> <span class='lparen'>(</span><span class='ivar'>@op2</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>NumericalMDArray</span><span class='rparen'>)</span>
|
|
602
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='op'>!</span><span class='ivar'>@op1</span><span class='period'>.</span><span class='id identifier rubyid_compatible'>compatible</span><span class='lparen'>(</span><span class='ivar'>@op2</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
603
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Invalid operation - arrays are incompatible</span><span class='tstring_end'>"</span></span>
|
|
604
|
+
<span class='kw'>end</span>
|
|
605
|
+
<span class='id identifier rubyid_arg2'>arg2</span> <span class='op'>=</span> <span class='ivar'>@op2</span><span class='period'>.</span><span class='id identifier rubyid_nc_array'>nc_array</span>
|
|
606
|
+
<span class='kw'>else</span> <span class='comment'># Operation with another user defined type
|
|
607
|
+
</span> <span class='kw'>false</span>
|
|
608
|
+
<span class='comment'># *TODO: make it more general using coerce if other_val type is not recognized
|
|
609
|
+
</span> <span class='comment'># if (arg is not recognized)
|
|
610
|
+
</span> <span class='comment'># self_equiv, arg_equiv = arg.coerce(self)
|
|
611
|
+
</span> <span class='comment'># self_equiv * arg_equiv
|
|
612
|
+
</span> <span class='comment'># end
|
|
613
|
+
</span> <span class='kw'>end</span>
|
|
595
614
|
|
|
596
|
-
<span class='
|
|
597
|
-
<span class='
|
|
598
|
-
<span class='
|
|
599
|
-
<span class='
|
|
615
|
+
<span class='kw'>else</span> <span class='comment'># NonNumericalMDArray
|
|
616
|
+
</span> <span class='kw'>if</span> <span class='lparen'>(</span><span class='op'>!</span><span class='ivar'>@op1</span><span class='period'>.</span><span class='id identifier rubyid_compatible'>compatible</span><span class='lparen'>(</span><span class='ivar'>@op2</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
617
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Invalid operation - arrays are incompatible</span><span class='tstring_end'>"</span></span>
|
|
618
|
+
<span class='kw'>end</span>
|
|
600
619
|
|
|
601
|
-
<span class='comment
|
|
602
|
-
<span class='
|
|
603
|
-
<span class='
|
|
604
|
-
<span class='
|
|
620
|
+
<span class='comment'># Will not work if we have subclasses!!!!
|
|
621
|
+
</span> <span class='kw'>if</span> <span class='lparen'>(</span><span class='ivar'>@op1</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span> <span class='op'>!=</span> <span class='ivar'>@op2</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='rparen'>)</span>
|
|
622
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Invalid operation - array are not of compatible types</span><span class='tstring_end'>"</span></span>
|
|
623
|
+
<span class='kw'>end</span>
|
|
605
624
|
|
|
606
|
-
<span class='
|
|
607
|
-
<span class='
|
|
625
|
+
<span class='id identifier rubyid_arg2'>arg2</span> <span class='op'>=</span> <span class='ivar'>@op2</span><span class='period'>.</span><span class='id identifier rubyid_nc_array'>nc_array</span>
|
|
626
|
+
<span class='kw'>end</span>
|
|
608
627
|
|
|
609
|
-
<span class='
|
|
628
|
+
<span class='kw'>yield</span> <span class='ivar'>@op1</span><span class='period'>.</span><span class='id identifier rubyid_nc_array'>nc_array</span><span class='comma'>,</span> <span class='id identifier rubyid_arg2'>arg2</span><span class='comma'>,</span> <span class='ivar'>@op1</span><span class='period'>.</span><span class='id identifier rubyid_shape'>shape</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span>
|
|
610
629
|
|
|
611
|
-
<span class='
|
|
612
|
-
</pre>
|
|
630
|
+
<span class='kw'>end</span></pre>
|
|
613
631
|
</td>
|
|
614
632
|
</tr>
|
|
615
633
|
</table>
|
|
@@ -626,8 +644,8 @@
|
|
|
626
644
|
|
|
627
645
|
</h3><div class="docstring">
|
|
628
646
|
<div class="discussion">
|
|
629
|
-
<hr
|
|
630
|
-
<hr
|
|
647
|
+
<hr>
|
|
648
|
+
<hr>
|
|
631
649
|
|
|
632
650
|
|
|
633
651
|
</div>
|
|
@@ -641,27 +659,26 @@
|
|
|
641
659
|
<pre class="lines">
|
|
642
660
|
|
|
643
661
|
|
|
644
|
-
112
|
|
645
|
-
113
|
|
646
|
-
114
|
|
647
|
-
115
|
|
648
|
-
116
|
|
649
662
|
117
|
|
650
663
|
118
|
|
651
|
-
119
|
|
664
|
+
119
|
|
665
|
+
120
|
|
666
|
+
121
|
|
667
|
+
122
|
|
668
|
+
123
|
|
669
|
+
124</pre>
|
|
652
670
|
</td>
|
|
653
671
|
<td>
|
|
654
|
-
<pre class="code"><span class="info file"># File 'lib/mdarray/fast_operators.rb', line
|
|
672
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/fast_operators.rb', line 117</span>
|
|
655
673
|
|
|
656
|
-
<span class='
|
|
674
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_in_place'>in_place</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
657
675
|
|
|
658
|
-
<span class='
|
|
659
|
-
<span class='
|
|
660
|
-
<span class='
|
|
661
|
-
<span class='
|
|
676
|
+
<span class='id identifier rubyid_get_args'>get_args</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_op1'>op1</span><span class='comma'>,</span> <span class='id identifier rubyid_op2'>op2</span><span class='comma'>,</span> <span class='id identifier rubyid_shape'>shape</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_other_args'>other_args</span><span class='op'>|</span>
|
|
677
|
+
<span class='id identifier rubyid_helper'>helper</span> <span class='op'>=</span> <span class='ivar'>@helper</span><span class='op'>::</span><span class='const'>InplaceBinaryOperator</span>
|
|
678
|
+
<span class='id identifier rubyid_helper'>helper</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>apply</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_op1'>op1</span><span class='comma'>,</span> <span class='id identifier rubyid_op2'>op2</span><span class='comma'>,</span> <span class='ivar'>@do_func</span><span class='rparen'>)</span>
|
|
679
|
+
<span class='kw'>end</span>
|
|
662
680
|
|
|
663
|
-
<span class='
|
|
664
|
-
</pre>
|
|
681
|
+
<span class='kw'>end</span></pre>
|
|
665
682
|
</td>
|
|
666
683
|
</tr>
|
|
667
684
|
</table>
|
|
@@ -678,8 +695,8 @@
|
|
|
678
695
|
|
|
679
696
|
</h3><div class="docstring">
|
|
680
697
|
<div class="discussion">
|
|
681
|
-
<hr
|
|
682
|
-
<hr
|
|
698
|
+
<hr>
|
|
699
|
+
<hr>
|
|
683
700
|
|
|
684
701
|
|
|
685
702
|
</div>
|
|
@@ -693,11 +710,6 @@
|
|
|
693
710
|
<pre class="lines">
|
|
694
711
|
|
|
695
712
|
|
|
696
|
-
125
|
|
697
|
-
126
|
|
698
|
-
127
|
|
699
|
-
128
|
|
700
|
-
129
|
|
701
713
|
130
|
|
702
714
|
131
|
|
703
715
|
132
|
|
@@ -705,25 +717,31 @@
|
|
|
705
717
|
134
|
|
706
718
|
135
|
|
707
719
|
136
|
|
708
|
-
137
|
|
720
|
+
137
|
|
721
|
+
138
|
|
722
|
+
139
|
|
723
|
+
140
|
|
724
|
+
141
|
|
725
|
+
142
|
|
726
|
+
143</pre>
|
|
709
727
|
</td>
|
|
710
728
|
<td>
|
|
711
|
-
<pre class="code"><span class="info file"># File 'lib/mdarray/fast_operators.rb', line
|
|
729
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/fast_operators.rb', line 130</span>
|
|
712
730
|
|
|
713
|
-
<span class='
|
|
731
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_reduce'>reduce</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
714
732
|
|
|
715
|
-
<span class='
|
|
733
|
+
<span class='id identifier rubyid_calc'>calc</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
|
716
734
|
|
|
717
|
-
<span class='
|
|
718
|
-
<span class='
|
|
719
|
-
<span class='
|
|
720
|
-
<span class='
|
|
721
|
-
|
|
735
|
+
<span class='id identifier rubyid_get_args'>get_args</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_op1'>op1</span><span class='comma'>,</span> <span class='id identifier rubyid_op2'>op2</span><span class='comma'>,</span> <span class='id identifier rubyid_shape'>shape</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_other_args'>other_args</span><span class='op'>|</span>
|
|
736
|
+
<span class='comment'># return nil if op2 == nil
|
|
737
|
+
</span> <span class='id identifier rubyid_helper'>helper</span> <span class='op'>=</span> <span class='ivar'>@helper</span><span class='op'>::</span><span class='const'>ReduceBinaryOperator</span>
|
|
738
|
+
<span class='id identifier rubyid_calc'>calc</span> <span class='op'>=</span> <span class='ivar'>@pre_condition_result</span>
|
|
739
|
+
<span class='id identifier rubyid_calc'>calc</span> <span class='op'>=</span> <span class='id identifier rubyid_helper'>helper</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>apply</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_calc'>calc</span><span class='comma'>,</span> <span class='id identifier rubyid_op1'>op1</span><span class='comma'>,</span> <span class='id identifier rubyid_op2'>op2</span><span class='comma'>,</span> <span class='ivar'>@do_func</span><span class='rparen'>)</span>
|
|
740
|
+
<span class='kw'>end</span>
|
|
722
741
|
|
|
723
|
-
<span class='
|
|
742
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_calc'>calc</span>
|
|
724
743
|
|
|
725
|
-
<span class='
|
|
726
|
-
</pre>
|
|
744
|
+
<span class='kw'>end</span></pre>
|
|
727
745
|
</td>
|
|
728
746
|
</tr>
|
|
729
747
|
</table>
|
|
@@ -734,9 +752,9 @@
|
|
|
734
752
|
</div>
|
|
735
753
|
|
|
736
754
|
<div id="footer">
|
|
737
|
-
Generated on
|
|
755
|
+
Generated on Tue Jul 14 18:09:00 2015 by
|
|
738
756
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
739
|
-
0.8.
|
|
757
|
+
0.8.7.6 (ruby-1.9.3).
|
|
740
758
|
</div>
|
|
741
759
|
|
|
742
760
|
</body>
|