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/RubyBinaryOperator.html
CHANGED
|
@@ -6,18 +6,18 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: RubyBinaryOperator
|
|
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#!RubyBinaryOperator.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,7 @@
|
|
|
165
165
|
|
|
166
166
|
|
|
167
167
|
<span class="summary_desc"><div class='inline'>
|
|
168
|
-
<p
|
|
168
|
+
<p>---------------------------------------------------------------------------------------.</p>
|
|
169
169
|
</div></span>
|
|
170
170
|
|
|
171
171
|
</li>
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
|
|
190
190
|
|
|
191
191
|
<span class="summary_desc"><div class='inline'>
|
|
192
|
-
<p
|
|
192
|
+
<p>---------------------------------------------------------------------------------------.</p>
|
|
193
193
|
</div></span>
|
|
194
194
|
|
|
195
195
|
</li>
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
|
|
216
216
|
|
|
217
217
|
<span class="summary_desc"><div class='inline'>
|
|
218
|
-
<p
|
|
218
|
+
<p>---------------------------------------------------------------------------------------.</p>
|
|
219
219
|
</div></span>
|
|
220
220
|
|
|
221
221
|
</li>
|
|
@@ -269,8 +269,8 @@
|
|
|
269
269
|
|
|
270
270
|
</h3><div class="docstring">
|
|
271
271
|
<div class="discussion">
|
|
272
|
-
<hr
|
|
273
|
-
<hr
|
|
272
|
+
<hr>
|
|
273
|
+
<hr>
|
|
274
274
|
|
|
275
275
|
|
|
276
276
|
</div>
|
|
@@ -309,28 +309,27 @@
|
|
|
309
309
|
<td>
|
|
310
310
|
<pre class="code"><span class="info file"># File 'lib/mdarray/ruby_operators.rb', line 32</span>
|
|
311
311
|
|
|
312
|
-
<span class='
|
|
313
|
-
|
|
314
|
-
<span class='
|
|
315
|
-
<span class='
|
|
316
|
-
<span class='
|
|
317
|
-
|
|
318
|
-
<span class='
|
|
319
|
-
<span class='
|
|
320
|
-
<span class='
|
|
321
|
-
<span class='
|
|
322
|
-
<span class='
|
|
323
|
-
<span class='
|
|
324
|
-
<span class='
|
|
325
|
-
<span class='
|
|
326
|
-
<span class='
|
|
327
|
-
<span class='
|
|
328
|
-
<span class='
|
|
329
|
-
<span class='
|
|
330
|
-
<span class='
|
|
331
|
-
|
|
332
|
-
<span class='
|
|
333
|
-
</pre>
|
|
312
|
+
<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>
|
|
313
|
+
|
|
314
|
+
<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_iterator'>op1_iterator</span><span class='comma'>,</span> <span class='id identifier rubyid_op2_iterator'>op2_iterator</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>
|
|
315
|
+
<span class='id identifier rubyid_result'>result</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>
|
|
316
|
+
<span class='id identifier rubyid_res_iterator'>res_iterator</span> <span class='op'>=</span> <span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_get_iterator_fast'>get_iterator_fast</span>
|
|
317
|
+
|
|
318
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='ivar'>@coerced</span><span class='rparen'>)</span>
|
|
319
|
+
<span class='kw'>while</span> <span class='lparen'>(</span><span class='id identifier rubyid_res_iterator'>res_iterator</span><span class='period'>.</span><span class='id identifier rubyid_has_next?'>has_next?</span><span class='rparen'>)</span>
|
|
320
|
+
<span class='id identifier rubyid_res_iterator'>res_iterator</span><span class='period'>.</span><span class='id identifier rubyid_set_next'>set_next</span><span class='lparen'>(</span><span class='ivar'>@do_func</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_op2_iterator'>op2_iterator</span><span class='period'>.</span><span class='id identifier rubyid_get_next'>get_next</span><span class='comma'>,</span>
|
|
321
|
+
<span class='id identifier rubyid_op1_iterator'>op1_iterator</span><span class='period'>.</span><span class='id identifier rubyid_get_next'>get_next</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
322
|
+
<span class='kw'>end</span>
|
|
323
|
+
<span class='kw'>else</span>
|
|
324
|
+
<span class='kw'>while</span> <span class='lparen'>(</span><span class='id identifier rubyid_res_iterator'>res_iterator</span><span class='period'>.</span><span class='id identifier rubyid_has_next?'>has_next?</span><span class='rparen'>)</span>
|
|
325
|
+
<span class='id identifier rubyid_res_iterator'>res_iterator</span><span class='period'>.</span><span class='id identifier rubyid_set_next'>set_next</span><span class='lparen'>(</span><span class='ivar'>@do_func</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_op1_iterator'>op1_iterator</span><span class='period'>.</span><span class='id identifier rubyid_get_next'>get_next</span><span class='comma'>,</span>
|
|
326
|
+
<span class='id identifier rubyid_op2_iterator'>op2_iterator</span><span class='period'>.</span><span class='id identifier rubyid_get_next'>get_next</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
327
|
+
<span class='kw'>end</span>
|
|
328
|
+
<span class='kw'>end</span>
|
|
329
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_result'>result</span>
|
|
330
|
+
<span class='kw'>end</span>
|
|
331
|
+
|
|
332
|
+
<span class='kw'>end</span></pre>
|
|
334
333
|
</td>
|
|
335
334
|
</tr>
|
|
336
335
|
</table>
|
|
@@ -347,8 +346,8 @@
|
|
|
347
346
|
|
|
348
347
|
</h3><div class="docstring">
|
|
349
348
|
<div class="discussion">
|
|
350
|
-
<hr
|
|
351
|
-
<hr
|
|
349
|
+
<hr>
|
|
350
|
+
<hr>
|
|
352
351
|
|
|
353
352
|
|
|
354
353
|
</div>
|
|
@@ -376,17 +375,16 @@
|
|
|
376
375
|
<td>
|
|
377
376
|
<pre class="code"><span class="info file"># File 'lib/mdarray/ruby_operators.rb', line 58</span>
|
|
378
377
|
|
|
379
|
-
<span class='
|
|
378
|
+
<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>
|
|
380
379
|
|
|
381
|
-
<span class='
|
|
382
|
-
<span class='
|
|
383
|
-
<span class='
|
|
384
|
-
<span class='
|
|
385
|
-
<span class='
|
|
386
|
-
<span class='
|
|
380
|
+
<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_iterator'>op1_iterator</span><span class='comma'>,</span> <span class='id identifier rubyid_op2_iterator'>op2_iterator</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>
|
|
381
|
+
<span class='kw'>while</span> <span class='lparen'>(</span><span class='id identifier rubyid_op1_iterator'>op1_iterator</span><span class='period'>.</span><span class='id identifier rubyid_has_next?'>has_next?</span><span class='rparen'>)</span>
|
|
382
|
+
<span class='id identifier rubyid_op1_iterator'>op1_iterator</span><span class='period'>.</span><span class='id identifier rubyid_set_next'>set_next</span><span class='lparen'>(</span><span class='id identifier rubyid_op2_iterator'>op2_iterator</span><span class='period'>.</span><span class='id identifier rubyid_get_next'>get_next</span><span class='rparen'>)</span>
|
|
383
|
+
<span class='kw'>end</span>
|
|
384
|
+
<span class='kw'>return</span> <span class='kw'>self</span>
|
|
385
|
+
<span class='kw'>end</span>
|
|
387
386
|
|
|
388
|
-
<span class='
|
|
389
|
-
</pre>
|
|
387
|
+
<span class='kw'>end</span></pre>
|
|
390
388
|
</td>
|
|
391
389
|
</tr>
|
|
392
390
|
</table>
|
|
@@ -403,8 +401,8 @@
|
|
|
403
401
|
|
|
404
402
|
</h3><div class="docstring">
|
|
405
403
|
<div class="discussion">
|
|
406
|
-
<hr
|
|
407
|
-
<hr
|
|
404
|
+
<hr>
|
|
405
|
+
<hr>
|
|
408
406
|
|
|
409
407
|
|
|
410
408
|
</div>
|
|
@@ -433,18 +431,17 @@
|
|
|
433
431
|
<td>
|
|
434
432
|
<pre class="code"><span class="info file"># File 'lib/mdarray/ruby_operators.rb', line 73</span>
|
|
435
433
|
|
|
436
|
-
<span class='
|
|
434
|
+
<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>
|
|
437
435
|
|
|
438
|
-
<span class='
|
|
439
|
-
<span class='
|
|
440
|
-
<span class='
|
|
441
|
-
<span class='
|
|
442
|
-
<span class='
|
|
443
|
-
<span class='
|
|
444
|
-
<span class='
|
|
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_iterator'>op1_iterator</span><span class='comma'>,</span> <span class='id identifier rubyid_op2_iterator'>op2_iterator</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='kw'>while</span> <span class='lparen'>(</span><span class='id identifier rubyid_op1_iterator'>op1_iterator</span><span class='period'>.</span><span class='id identifier rubyid_has_next?'>has_next?</span><span class='rparen'>)</span>
|
|
438
|
+
<span class='id identifier rubyid_op1_iterator'>op1_iterator</span><span class='period'>.</span><span class='id identifier rubyid_set_current'>set_current</span><span class='lparen'>(</span><span class='ivar'>@do_func</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_op1_iterator'>op1_iterator</span><span class='period'>.</span><span class='id identifier rubyid_get_next'>get_next</span><span class='comma'>,</span>
|
|
439
|
+
<span class='id identifier rubyid_op2_iterator'>op2_iterator</span><span class='period'>.</span><span class='id identifier rubyid_get_next'>get_next</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
440
|
+
<span class='kw'>end</span>
|
|
441
|
+
<span class='kw'>return</span> <span class='kw'>self</span>
|
|
442
|
+
<span class='kw'>end</span>
|
|
445
443
|
|
|
446
|
-
<span class='
|
|
447
|
-
</pre>
|
|
444
|
+
<span class='kw'>end</span></pre>
|
|
448
445
|
</td>
|
|
449
446
|
</tr>
|
|
450
447
|
</table>
|
|
@@ -465,8 +462,8 @@
|
|
|
465
462
|
|
|
466
463
|
</h3><div class="docstring">
|
|
467
464
|
<div class="discussion">
|
|
468
|
-
<hr
|
|
469
|
-
<hr
|
|
465
|
+
<hr>
|
|
466
|
+
<hr>
|
|
470
467
|
|
|
471
468
|
|
|
472
469
|
</div>
|
|
@@ -495,18 +492,17 @@
|
|
|
495
492
|
<td>
|
|
496
493
|
<pre class="code"><span class="info file"># File 'lib/mdarray/ruby_operators.rb', line 89</span>
|
|
497
494
|
|
|
498
|
-
<span class='
|
|
495
|
+
<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>
|
|
499
496
|
|
|
500
|
-
<span class='
|
|
501
|
-
<span class='
|
|
502
|
-
<span class='
|
|
503
|
-
<span class='
|
|
504
|
-
<span class='
|
|
505
|
-
<span class='
|
|
506
|
-
<span class='
|
|
497
|
+
<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_iterator'>op1_iterator</span><span class='comma'>,</span> <span class='id identifier rubyid_op2_iterator'>op2_iterator</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>
|
|
498
|
+
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='ivar'>@pre_condition_result</span>
|
|
499
|
+
<span class='kw'>while</span> <span class='lparen'>(</span><span class='id identifier rubyid_op1_iterator'>op1_iterator</span><span class='period'>.</span><span class='id identifier rubyid_has_next?'>has_next?</span><span class='rparen'>)</span>
|
|
500
|
+
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='ivar'>@do_func</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_result'>result</span><span class='comma'>,</span> <span class='id identifier rubyid_op1_iterator'>op1_iterator</span><span class='period'>.</span><span class='id identifier rubyid_get_next'>get_next</span><span class='comma'>,</span> <span class='id identifier rubyid_op2_iterator'>op2_iterator</span><span class='period'>.</span><span class='id identifier rubyid_get_next'>get_next</span><span class='rparen'>)</span>
|
|
501
|
+
<span class='kw'>end</span>
|
|
502
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_result'>result</span>
|
|
503
|
+
<span class='kw'>end</span>
|
|
507
504
|
|
|
508
|
-
<span class='
|
|
509
|
-
</pre>
|
|
505
|
+
<span class='kw'>end</span></pre>
|
|
510
506
|
</td>
|
|
511
507
|
</tr>
|
|
512
508
|
</table>
|
|
@@ -517,9 +513,9 @@
|
|
|
517
513
|
</div>
|
|
518
514
|
|
|
519
515
|
<div id="footer">
|
|
520
|
-
Generated on
|
|
516
|
+
Generated on Tue Jul 14 18:09:11 2015 by
|
|
521
517
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
522
|
-
0.8.
|
|
518
|
+
0.8.7.6 (ruby-1.9.3).
|
|
523
519
|
</div>
|
|
524
520
|
|
|
525
521
|
</body>
|
data/doc/RubyFunctions.html
CHANGED
|
@@ -6,18 +6,18 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Module: RubyFunctions
|
|
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#!RubyFunctions.html";
|
|
21
21
|
</script>
|
|
22
22
|
|
|
23
23
|
|
|
@@ -92,6 +92,69 @@
|
|
|
92
92
|
|
|
93
93
|
|
|
94
94
|
|
|
95
|
+
<h2>Class Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
|
96
|
+
<ul class="summary">
|
|
97
|
+
|
|
98
|
+
<li class="public ">
|
|
99
|
+
<span class="summary_signature">
|
|
100
|
+
|
|
101
|
+
<a href="#binary_helper-class_method" title="binary_helper (class method)">+ (Object) <strong>binary_helper</strong> </a>
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
</span>
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
<span class="note title readonly">readonly</span>
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
<span class="summary_desc"><div class='inline'>
|
|
121
|
+
<p>Returns the value of attribute binary_helper.</p>
|
|
122
|
+
</div></span>
|
|
123
|
+
|
|
124
|
+
</li>
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
<li class="public ">
|
|
128
|
+
<span class="summary_signature">
|
|
129
|
+
|
|
130
|
+
<a href="#unary_helper-class_method" title="unary_helper (class method)">+ (Object) <strong>unary_helper</strong> </a>
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
</span>
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
<span class="note title readonly">readonly</span>
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
<span class="summary_desc"><div class='inline'>
|
|
150
|
+
<p>Returns the value of attribute unary_helper.</p>
|
|
151
|
+
</div></span>
|
|
152
|
+
|
|
153
|
+
</li>
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
</ul>
|
|
157
|
+
|
|
95
158
|
|
|
96
159
|
|
|
97
160
|
|
|
@@ -106,6 +169,126 @@
|
|
|
106
169
|
<li class="public ">
|
|
107
170
|
<span class="summary_signature">
|
|
108
171
|
|
|
172
|
+
<a href="#make_binary_operator-instance_method" title="#make_binary_operator (instance method)">- (Object) <strong>make_binary_operator</strong>(name, type, func) </a>
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
</span>
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
<span class="summary_desc"><div class='inline'>
|
|
187
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
188
|
+
</div></span>
|
|
189
|
+
|
|
190
|
+
</li>
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
<li class="public ">
|
|
194
|
+
<span class="summary_signature">
|
|
195
|
+
|
|
196
|
+
<a href="#make_binary_operators-instance_method" title="#make_binary_operators (instance method)">- (Object) <strong>make_binary_operators</strong>(name, func, default = true, in_place = true) </a>
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
</span>
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
<span class="summary_desc"><div class='inline'>
|
|
211
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
212
|
+
</div></span>
|
|
213
|
+
|
|
214
|
+
</li>
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
<li class="public ">
|
|
218
|
+
<span class="summary_signature">
|
|
219
|
+
|
|
220
|
+
<a href="#make_comparison_operator-instance_method" title="#make_comparison_operator (instance method)">- (Object) <strong>make_comparison_operator</strong>(name, func) </a>
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
</span>
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
<span class="summary_desc"><div class='inline'>
|
|
235
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
236
|
+
</div></span>
|
|
237
|
+
|
|
238
|
+
</li>
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
<li class="public ">
|
|
242
|
+
<span class="summary_signature">
|
|
243
|
+
|
|
244
|
+
<a href="#make_unary_operator-instance_method" title="#make_unary_operator (instance method)">- (Object) <strong>make_unary_operator</strong>(name, type, func) </a>
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
</span>
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
<span class="summary_desc"><div class='inline'>
|
|
259
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
260
|
+
</div></span>
|
|
261
|
+
|
|
262
|
+
</li>
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
<li class="public ">
|
|
266
|
+
<span class="summary_signature">
|
|
267
|
+
|
|
268
|
+
<a href="#make_unary_operators-instance_method" title="#make_unary_operators (instance method)">- (Object) <strong>make_unary_operators</strong>(name, func, default = true, in_place = true) </a>
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
</span>
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
<span class="summary_desc"><div class='inline'>
|
|
283
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
284
|
+
</div></span>
|
|
285
|
+
|
|
286
|
+
</li>
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
<li class="public ">
|
|
290
|
+
<span class="summary_signature">
|
|
291
|
+
|
|
109
292
|
<a href="#ruby_binary_function-instance_method" title="#ruby_binary_function (instance method)">- (Object) <strong>ruby_binary_function</strong>(long_name, proc) </a>
|
|
110
293
|
|
|
111
294
|
|
|
@@ -120,7 +303,9 @@
|
|
|
120
303
|
|
|
121
304
|
|
|
122
305
|
|
|
123
|
-
<span class="summary_desc"><div class='inline'
|
|
306
|
+
<span class="summary_desc"><div class='inline'>
|
|
307
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
308
|
+
</div></span>
|
|
124
309
|
|
|
125
310
|
</li>
|
|
126
311
|
|
|
@@ -142,7 +327,9 @@
|
|
|
142
327
|
|
|
143
328
|
|
|
144
329
|
|
|
145
|
-
<span class="summary_desc"><div class='inline'
|
|
330
|
+
<span class="summary_desc"><div class='inline'>
|
|
331
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
332
|
+
</div></span>
|
|
146
333
|
|
|
147
334
|
</li>
|
|
148
335
|
|
|
@@ -151,13 +338,351 @@
|
|
|
151
338
|
|
|
152
339
|
|
|
153
340
|
|
|
341
|
+
<div id="class_attr_details" class="attr_details">
|
|
342
|
+
<h2>Class Attribute Details</h2>
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
<span id=""></span>
|
|
346
|
+
<div class="method_details first">
|
|
347
|
+
<h3 class="signature first" id="binary_helper-class_method">
|
|
348
|
+
|
|
349
|
+
+ (<tt>Object</tt>) <strong>binary_helper</strong> <span class="extras">(readonly)</span>
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
</h3><div class="docstring">
|
|
356
|
+
<div class="discussion">
|
|
357
|
+
|
|
358
|
+
<p>Returns the value of attribute binary_helper</p>
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
</div>
|
|
362
|
+
</div>
|
|
363
|
+
<div class="tags">
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
</div><table class="source_code">
|
|
367
|
+
<tr>
|
|
368
|
+
<td>
|
|
369
|
+
<pre class="lines">
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
29
|
|
373
|
+
30
|
|
374
|
+
31</pre>
|
|
375
|
+
</td>
|
|
376
|
+
<td>
|
|
377
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/ruby_functions.rb', line 29</span>
|
|
378
|
+
|
|
379
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_binary_helper'>binary_helper</span>
|
|
380
|
+
<span class='ivar'>@binary_helper</span>
|
|
381
|
+
<span class='kw'>end</span></pre>
|
|
382
|
+
</td>
|
|
383
|
+
</tr>
|
|
384
|
+
</table>
|
|
385
|
+
</div>
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
<span id=""></span>
|
|
389
|
+
<div class="method_details ">
|
|
390
|
+
<h3 class="signature " id="unary_helper-class_method">
|
|
391
|
+
|
|
392
|
+
+ (<tt>Object</tt>) <strong>unary_helper</strong> <span class="extras">(readonly)</span>
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
</h3><div class="docstring">
|
|
399
|
+
<div class="discussion">
|
|
400
|
+
|
|
401
|
+
<p>Returns the value of attribute unary_helper</p>
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
</div>
|
|
405
|
+
</div>
|
|
406
|
+
<div class="tags">
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
</div><table class="source_code">
|
|
410
|
+
<tr>
|
|
411
|
+
<td>
|
|
412
|
+
<pre class="lines">
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
30
|
|
416
|
+
31
|
|
417
|
+
32</pre>
|
|
418
|
+
</td>
|
|
419
|
+
<td>
|
|
420
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/ruby_functions.rb', line 30</span>
|
|
421
|
+
|
|
422
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_unary_helper'>unary_helper</span>
|
|
423
|
+
<span class='ivar'>@unary_helper</span>
|
|
424
|
+
<span class='kw'>end</span></pre>
|
|
425
|
+
</td>
|
|
426
|
+
</tr>
|
|
427
|
+
</table>
|
|
428
|
+
</div>
|
|
429
|
+
|
|
430
|
+
</div>
|
|
431
|
+
|
|
154
432
|
|
|
155
433
|
<div id="instance_method_details" class="method_details_list">
|
|
156
434
|
<h2>Instance Method Details</h2>
|
|
157
435
|
|
|
158
436
|
|
|
159
437
|
<div class="method_details first">
|
|
160
|
-
<h3 class="signature first" id="
|
|
438
|
+
<h3 class="signature first" id="make_binary_operator-instance_method">
|
|
439
|
+
|
|
440
|
+
- (<tt>Object</tt>) <strong>make_binary_operator</strong>(name, type, func)
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
</h3><div class="docstring">
|
|
447
|
+
<div class="discussion">
|
|
448
|
+
<hr>
|
|
449
|
+
<hr>
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
</div>
|
|
453
|
+
</div>
|
|
454
|
+
<div class="tags">
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
</div><table class="source_code">
|
|
458
|
+
<tr>
|
|
459
|
+
<td>
|
|
460
|
+
<pre class="lines">
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
55
|
|
464
|
+
56
|
|
465
|
+
57</pre>
|
|
466
|
+
</td>
|
|
467
|
+
<td>
|
|
468
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/ruby_functions.rb', line 55</span>
|
|
469
|
+
|
|
470
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_make_binary_operator'>make_binary_operator</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='rparen'>)</span>
|
|
471
|
+
<span class='id identifier rubyid_make_binary_op'>make_binary_op</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='comma'>,</span> <span class='const'>RubyFunctions</span><span class='period'>.</span><span class='id identifier rubyid_binary_helper'>binary_helper</span><span class='rparen'>)</span>
|
|
472
|
+
<span class='kw'>end</span></pre>
|
|
473
|
+
</td>
|
|
474
|
+
</tr>
|
|
475
|
+
</table>
|
|
476
|
+
</div>
|
|
477
|
+
|
|
478
|
+
<div class="method_details ">
|
|
479
|
+
<h3 class="signature " id="make_binary_operators-instance_method">
|
|
480
|
+
|
|
481
|
+
- (<tt>Object</tt>) <strong>make_binary_operators</strong>(name, func, default = true, in_place = true)
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
</h3><div class="docstring">
|
|
488
|
+
<div class="discussion">
|
|
489
|
+
<hr>
|
|
490
|
+
<hr>
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
</div>
|
|
494
|
+
</div>
|
|
495
|
+
<div class="tags">
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
</div><table class="source_code">
|
|
499
|
+
<tr>
|
|
500
|
+
<td>
|
|
501
|
+
<pre class="lines">
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
40
|
|
505
|
+
41
|
|
506
|
+
42
|
|
507
|
+
43
|
|
508
|
+
44
|
|
509
|
+
45
|
|
510
|
+
46
|
|
511
|
+
47
|
|
512
|
+
48
|
|
513
|
+
49</pre>
|
|
514
|
+
</td>
|
|
515
|
+
<td>
|
|
516
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/ruby_functions.rb', line 40</span>
|
|
517
|
+
|
|
518
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_make_binary_operators'>make_binary_operators</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='comma'>,</span> <span class='id identifier rubyid_default'>default</span> <span class='op'>=</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='id identifier rubyid_in_place'>in_place</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
|
519
|
+
|
|
520
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_default'>default</span><span class='rparen'>)</span>
|
|
521
|
+
<span class='id identifier rubyid_make_binary_op'>make_binary_op</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='symbol'>:default</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='comma'>,</span> <span class='const'>RubyFunctions</span><span class='period'>.</span><span class='id identifier rubyid_binary_helper'>binary_helper</span><span class='rparen'>)</span>
|
|
522
|
+
<span class='kw'>end</span>
|
|
523
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_in_place'>in_place</span><span class='rparen'>)</span>
|
|
524
|
+
<span class='id identifier rubyid_make_binary_op'>make_binary_op</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>!</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='symbol'>:in_place</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='comma'>,</span> <span class='const'>RubyFunctions</span><span class='period'>.</span><span class='id identifier rubyid_binary_helper'>binary_helper</span><span class='rparen'>)</span>
|
|
525
|
+
<span class='kw'>end</span>
|
|
526
|
+
|
|
527
|
+
<span class='kw'>end</span></pre>
|
|
528
|
+
</td>
|
|
529
|
+
</tr>
|
|
530
|
+
</table>
|
|
531
|
+
</div>
|
|
532
|
+
|
|
533
|
+
<div class="method_details ">
|
|
534
|
+
<h3 class="signature " id="make_comparison_operator-instance_method">
|
|
535
|
+
|
|
536
|
+
- (<tt>Object</tt>) <strong>make_comparison_operator</strong>(name, func)
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
</h3><div class="docstring">
|
|
543
|
+
<div class="discussion">
|
|
544
|
+
<hr>
|
|
545
|
+
<hr>
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
</div>
|
|
549
|
+
</div>
|
|
550
|
+
<div class="tags">
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
</div><table class="source_code">
|
|
554
|
+
<tr>
|
|
555
|
+
<td>
|
|
556
|
+
<pre class="lines">
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
86
|
|
560
|
+
87
|
|
561
|
+
88
|
|
562
|
+
89
|
|
563
|
+
90
|
|
564
|
+
91
|
|
565
|
+
92
|
|
566
|
+
93
|
|
567
|
+
94
|
|
568
|
+
95</pre>
|
|
569
|
+
</td>
|
|
570
|
+
<td>
|
|
571
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/ruby_functions.rb', line 86</span>
|
|
572
|
+
|
|
573
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_make_comparison_operator'>make_comparison_operator</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='rparen'>)</span>
|
|
574
|
+
|
|
575
|
+
<span class='id identifier rubyid_make_binary_op'>make_binary_op</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>default</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='comma'>,</span> <span class='const'>RubyFunctions</span><span class='period'>.</span><span class='id identifier rubyid_binary_helper'>binary_helper</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>boolean</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
576
|
+
|
|
577
|
+
<span class='id identifier rubyid_define_method'>define_method</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_op2'>op2</span><span class='comma'>,</span> <span class='id identifier rubyid_requested_type'>requested_type</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='op'>|</span>
|
|
578
|
+
<span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>if</span> <span class='id identifier rubyid_op2'>op2</span> <span class='op'>==</span> <span class='kw'>nil</span>
|
|
579
|
+
<span class='kw'>self</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'>_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_op2'>op2</span><span class='comma'>,</span> <span class='id identifier rubyid_requested_type'>requested_type</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
580
|
+
<span class='kw'>end</span>
|
|
581
|
+
|
|
582
|
+
<span class='kw'>end</span></pre>
|
|
583
|
+
</td>
|
|
584
|
+
</tr>
|
|
585
|
+
</table>
|
|
586
|
+
</div>
|
|
587
|
+
|
|
588
|
+
<div class="method_details ">
|
|
589
|
+
<h3 class="signature " id="make_unary_operator-instance_method">
|
|
590
|
+
|
|
591
|
+
- (<tt>Object</tt>) <strong>make_unary_operator</strong>(name, type, func)
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
</h3><div class="docstring">
|
|
598
|
+
<div class="discussion">
|
|
599
|
+
<hr>
|
|
600
|
+
<hr>
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
</div>
|
|
604
|
+
</div>
|
|
605
|
+
<div class="tags">
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
</div><table class="source_code">
|
|
609
|
+
<tr>
|
|
610
|
+
<td>
|
|
611
|
+
<pre class="lines">
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
78
|
|
615
|
+
79
|
|
616
|
+
80</pre>
|
|
617
|
+
</td>
|
|
618
|
+
<td>
|
|
619
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/ruby_functions.rb', line 78</span>
|
|
620
|
+
|
|
621
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_make_unary_operator'>make_unary_operator</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='rparen'>)</span>
|
|
622
|
+
<span class='id identifier rubyid_make_unary_op'>make_unary_op</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='comma'>,</span> <span class='const'>RubyFunctions</span><span class='period'>.</span><span class='id identifier rubyid_unary_helper'>unary_helper</span><span class='rparen'>)</span>
|
|
623
|
+
<span class='kw'>end</span></pre>
|
|
624
|
+
</td>
|
|
625
|
+
</tr>
|
|
626
|
+
</table>
|
|
627
|
+
</div>
|
|
628
|
+
|
|
629
|
+
<div class="method_details ">
|
|
630
|
+
<h3 class="signature " id="make_unary_operators-instance_method">
|
|
631
|
+
|
|
632
|
+
- (<tt>Object</tt>) <strong>make_unary_operators</strong>(name, func, default = true, in_place = true)
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
</h3><div class="docstring">
|
|
639
|
+
<div class="discussion">
|
|
640
|
+
<hr>
|
|
641
|
+
<hr>
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
</div>
|
|
645
|
+
</div>
|
|
646
|
+
<div class="tags">
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
</div><table class="source_code">
|
|
650
|
+
<tr>
|
|
651
|
+
<td>
|
|
652
|
+
<pre class="lines">
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
63
|
|
656
|
+
64
|
|
657
|
+
65
|
|
658
|
+
66
|
|
659
|
+
67
|
|
660
|
+
68
|
|
661
|
+
69
|
|
662
|
+
70
|
|
663
|
+
71
|
|
664
|
+
72</pre>
|
|
665
|
+
</td>
|
|
666
|
+
<td>
|
|
667
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/ruby_functions.rb', line 63</span>
|
|
668
|
+
|
|
669
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_make_unary_operators'>make_unary_operators</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='comma'>,</span> <span class='id identifier rubyid_default'>default</span> <span class='op'>=</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='id identifier rubyid_in_place'>in_place</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
|
670
|
+
|
|
671
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_default'>default</span><span class='rparen'>)</span>
|
|
672
|
+
<span class='id identifier rubyid_make_unary_op'>make_unary_op</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='symbol'>:default</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='comma'>,</span> <span class='const'>RubyFunctions</span><span class='period'>.</span><span class='id identifier rubyid_unary_helper'>unary_helper</span><span class='rparen'>)</span>
|
|
673
|
+
<span class='kw'>end</span>
|
|
674
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_in_place'>in_place</span><span class='rparen'>)</span>
|
|
675
|
+
<span class='id identifier rubyid_make_unary_op'>make_unary_op</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>!</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='symbol'>:in_place</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='comma'>,</span> <span class='const'>RubyFunctions</span><span class='period'>.</span><span class='id identifier rubyid_unary_helper'>unary_helper</span><span class='rparen'>)</span>
|
|
676
|
+
<span class='kw'>end</span>
|
|
677
|
+
|
|
678
|
+
<span class='kw'>end</span></pre>
|
|
679
|
+
</td>
|
|
680
|
+
</tr>
|
|
681
|
+
</table>
|
|
682
|
+
</div>
|
|
683
|
+
|
|
684
|
+
<div class="method_details ">
|
|
685
|
+
<h3 class="signature " id="ruby_binary_function-instance_method">
|
|
161
686
|
|
|
162
687
|
- (<tt>Object</tt>) <strong>ruby_binary_function</strong>(long_name, proc)
|
|
163
688
|
|
|
@@ -165,23 +690,33 @@
|
|
|
165
690
|
|
|
166
691
|
|
|
167
692
|
|
|
168
|
-
</h3><
|
|
693
|
+
</h3><div class="docstring">
|
|
694
|
+
<div class="discussion">
|
|
695
|
+
<hr>
|
|
696
|
+
<hr>
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
</div>
|
|
700
|
+
</div>
|
|
701
|
+
<div class="tags">
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
</div><table class="source_code">
|
|
169
705
|
<tr>
|
|
170
706
|
<td>
|
|
171
707
|
<pre class="lines">
|
|
172
708
|
|
|
173
709
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
710
|
+
101
|
|
711
|
+
102
|
|
712
|
+
103</pre>
|
|
177
713
|
</td>
|
|
178
714
|
<td>
|
|
179
|
-
<pre class="code"><span class="info file"># File 'lib/mdarray/ruby_functions.rb', line
|
|
715
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/ruby_functions.rb', line 101</span>
|
|
180
716
|
|
|
181
|
-
<span class='
|
|
182
|
-
<span class='
|
|
183
|
-
<span class='
|
|
184
|
-
</pre>
|
|
717
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_ruby_binary_function'>ruby_binary_function</span><span class='lparen'>(</span><span class='id identifier rubyid_long_name'>long_name</span><span class='comma'>,</span> <span class='id identifier rubyid_proc'>proc</span><span class='rparen'>)</span>
|
|
718
|
+
<span class='lbracket'>[</span><span class='id identifier rubyid_long_name'>long_name</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>RubyFunctions</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_proc'>proc</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>*</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>*</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>*</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span>
|
|
719
|
+
<span class='kw'>end</span></pre>
|
|
185
720
|
</td>
|
|
186
721
|
</tr>
|
|
187
722
|
</table>
|
|
@@ -196,23 +731,33 @@
|
|
|
196
731
|
|
|
197
732
|
|
|
198
733
|
|
|
199
|
-
</h3><
|
|
734
|
+
</h3><div class="docstring">
|
|
735
|
+
<div class="discussion">
|
|
736
|
+
<hr>
|
|
737
|
+
<hr>
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
</div>
|
|
741
|
+
</div>
|
|
742
|
+
<div class="tags">
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
</div><table class="source_code">
|
|
200
746
|
<tr>
|
|
201
747
|
<td>
|
|
202
748
|
<pre class="lines">
|
|
203
749
|
|
|
204
750
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
751
|
+
109
|
|
752
|
+
110
|
|
753
|
+
111</pre>
|
|
208
754
|
</td>
|
|
209
755
|
<td>
|
|
210
|
-
<pre class="code"><span class="info file"># File 'lib/mdarray/ruby_functions.rb', line
|
|
756
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/ruby_functions.rb', line 109</span>
|
|
211
757
|
|
|
212
|
-
<span class='
|
|
213
|
-
<span class='
|
|
214
|
-
<span class='
|
|
215
|
-
</pre>
|
|
758
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_ruby_unary_function'>ruby_unary_function</span><span class='lparen'>(</span><span class='id identifier rubyid_long_name'>long_name</span><span class='comma'>,</span> <span class='id identifier rubyid_proc'>proc</span><span class='rparen'>)</span>
|
|
759
|
+
<span class='lbracket'>[</span><span class='id identifier rubyid_long_name'>long_name</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>RubyFunctions</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_proc'>proc</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>*</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>*</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>*</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span>
|
|
760
|
+
<span class='kw'>end</span></pre>
|
|
216
761
|
</td>
|
|
217
762
|
</tr>
|
|
218
763
|
</table>
|
|
@@ -223,9 +768,9 @@
|
|
|
223
768
|
</div>
|
|
224
769
|
|
|
225
770
|
<div id="footer">
|
|
226
|
-
Generated on
|
|
771
|
+
Generated on Tue Jul 14 18:08:56 2015 by
|
|
227
772
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
228
|
-
0.8.
|
|
773
|
+
0.8.7.6 (ruby-1.9.3).
|
|
229
774
|
</div>
|
|
230
775
|
|
|
231
776
|
</body>
|