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/Proc.html
CHANGED
|
@@ -6,18 +6,18 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: Proc
|
|
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#!Proc.html";
|
|
21
21
|
</script>
|
|
22
22
|
|
|
23
23
|
|
|
@@ -102,11 +102,11 @@
|
|
|
102
102
|
<h2>Overview</h2><div class="docstring">
|
|
103
103
|
<div class="discussion">
|
|
104
104
|
|
|
105
|
-
<
|
|
105
|
+
<h6 id="label-"></h6>
|
|
106
106
|
|
|
107
107
|
<p>Proc methods</p>
|
|
108
108
|
|
|
109
|
-
<
|
|
109
|
+
<h6 id="label-"></h6>
|
|
110
110
|
|
|
111
111
|
|
|
112
112
|
</div>
|
|
@@ -146,9 +146,9 @@
|
|
|
146
146
|
|
|
147
147
|
|
|
148
148
|
|
|
149
|
-
<span class="summary_desc"><div class='inline'
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
<span class="summary_desc"><div class='inline'>
|
|
150
|
+
<p>------------------------------------------------------------------------------------
|
|
151
|
+
This class verifies a condition and if true, returns the evaluation of a
|
|
152
152
|
function, otherwise returns NaN.</p>
|
|
153
153
|
</div></span>
|
|
154
154
|
|
|
@@ -172,9 +172,9 @@ function, otherwise returns NaN.</p>
|
|
|
172
172
|
|
|
173
173
|
|
|
174
174
|
|
|
175
|
-
<span class="summary_desc"><div class='inline'
|
|
176
|
-
|
|
177
|
-
|
|
175
|
+
<span class="summary_desc"><div class='inline'>
|
|
176
|
+
<p>------------------------------------------------------------------------------------
|
|
177
|
+
Builds a function that returns true when 'f' returns false, and vice versa.</p>
|
|
178
178
|
</div></span>
|
|
179
179
|
|
|
180
180
|
</li>
|
|
@@ -198,7 +198,7 @@ function, otherwise returns NaN.</p>
|
|
|
198
198
|
|
|
199
199
|
|
|
200
200
|
<span class="summary_desc"><div class='inline'>
|
|
201
|
-
<p
|
|
201
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
202
202
|
</div></span>
|
|
203
203
|
|
|
204
204
|
</li>
|
|
@@ -221,9 +221,9 @@ function, otherwise returns NaN.</p>
|
|
|
221
221
|
|
|
222
222
|
|
|
223
223
|
|
|
224
|
-
<span class="summary_desc"><div class='inline'
|
|
225
|
-
|
|
226
|
-
|
|
224
|
+
<span class="summary_desc"><div class='inline'>
|
|
225
|
+
<p>------------------------------------------------------------------------------------
|
|
226
|
+
Builds a function which returns true whenever <em>every</em> function in
|
|
227
227
|
'predicates' returns true.</p>
|
|
228
228
|
</div></span>
|
|
229
229
|
|
|
@@ -247,9 +247,10 @@ function, otherwise returns NaN.</p>
|
|
|
247
247
|
|
|
248
248
|
|
|
249
249
|
|
|
250
|
-
<span class="summary_desc"><div class='inline'
|
|
251
|
-
|
|
252
|
-
|
|
250
|
+
<span class="summary_desc"><div class='inline'>
|
|
251
|
+
<p>------------------------------------------------------------------------------------
|
|
252
|
+
Returns a constant value
|
|
253
|
+
------------------------------------------------------------------------------------.</p>
|
|
253
254
|
</div></span>
|
|
254
255
|
|
|
255
256
|
</li>
|
|
@@ -272,9 +273,9 @@ function, otherwise returns NaN.</p>
|
|
|
272
273
|
|
|
273
274
|
|
|
274
275
|
|
|
275
|
-
<span class="summary_desc"><div class='inline'
|
|
276
|
-
|
|
277
|
-
|
|
276
|
+
<span class="summary_desc"><div class='inline'>
|
|
277
|
+
<p>------------------------------------------------------------------------------------
|
|
278
|
+
Builds a function which returns true whenever <em>any</em> function in
|
|
278
279
|
'predicates' returns true.</p>
|
|
279
280
|
</div></span>
|
|
280
281
|
|
|
@@ -298,9 +299,10 @@ function, otherwise returns NaN.</p>
|
|
|
298
299
|
|
|
299
300
|
|
|
300
301
|
|
|
301
|
-
<span class="summary_desc"><div class='inline'
|
|
302
|
-
|
|
303
|
-
|
|
302
|
+
<span class="summary_desc"><div class='inline'>
|
|
303
|
+
<p>------------------------------------------------------------------------------------
|
|
304
|
+
Always returns true
|
|
305
|
+
------------------------------------------------------------------------------------.</p>
|
|
304
306
|
</div></span>
|
|
305
307
|
|
|
306
308
|
</li>
|
|
@@ -323,9 +325,10 @@ function, otherwise returns NaN.</p>
|
|
|
323
325
|
|
|
324
326
|
|
|
325
327
|
|
|
326
|
-
<span class="summary_desc"><div class='inline'
|
|
327
|
-
|
|
328
|
-
|
|
328
|
+
<span class="summary_desc"><div class='inline'>
|
|
329
|
+
<p>------------------------------------------------------------------------------------
|
|
330
|
+
The identity function
|
|
331
|
+
------------------------------------------------------------------------------------.</p>
|
|
329
332
|
</div></span>
|
|
330
333
|
|
|
331
334
|
</li>
|
|
@@ -348,9 +351,10 @@ function, otherwise returns NaN.</p>
|
|
|
348
351
|
|
|
349
352
|
|
|
350
353
|
|
|
351
|
-
<span class="summary_desc"><div class='inline'
|
|
352
|
-
|
|
353
|
-
|
|
354
|
+
<span class="summary_desc"><div class='inline'>
|
|
355
|
+
<p>------------------------------------------------------------------------------------
|
|
356
|
+
Always returns false
|
|
357
|
+
------------------------------------------------------------------------------------.</p>
|
|
354
358
|
</div></span>
|
|
355
359
|
|
|
356
360
|
</li>
|
|
@@ -383,7 +387,7 @@ function, otherwise returns NaN.</p>
|
|
|
383
387
|
|
|
384
388
|
|
|
385
389
|
<span class="summary_desc"><div class='inline'>
|
|
386
|
-
<p
|
|
390
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
387
391
|
</div></span>
|
|
388
392
|
|
|
389
393
|
</li>
|
|
@@ -406,9 +410,9 @@ function, otherwise returns NaN.</p>
|
|
|
406
410
|
|
|
407
411
|
|
|
408
412
|
|
|
409
|
-
<span class="summary_desc"><div class='inline'
|
|
410
|
-
|
|
411
|
-
|
|
413
|
+
<span class="summary_desc"><div class='inline'>
|
|
414
|
+
<p>------------------------------------------------------------------------------------
|
|
415
|
+
This method binds the 1st argument of a binary function to a scalar value,
|
|
412
416
|
effectively enabling a binary function to be called in a context intended
|
|
413
417
|
for a unary function.</p>
|
|
414
418
|
</div></span>
|
|
@@ -433,9 +437,9 @@ for a unary function.</p>
|
|
|
433
437
|
|
|
434
438
|
|
|
435
439
|
|
|
436
|
-
<span class="summary_desc"><div class='inline'
|
|
437
|
-
|
|
438
|
-
|
|
440
|
+
<span class="summary_desc"><div class='inline'>
|
|
441
|
+
<p>------------------------------------------------------------------------------------
|
|
442
|
+
This method binds the 2nd argument of a binary function to a scalar value,
|
|
439
443
|
effectively enabling a binary function to be called in a context intended
|
|
440
444
|
for a unary function.</p>
|
|
441
445
|
</div></span>
|
|
@@ -461,7 +465,7 @@ for a unary function.</p>
|
|
|
461
465
|
|
|
462
466
|
|
|
463
467
|
<span class="summary_desc"><div class='inline'>
|
|
464
|
-
<p
|
|
468
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
465
469
|
</div></span>
|
|
466
470
|
|
|
467
471
|
</li>
|
|
@@ -487,11 +491,11 @@ for a unary function.</p>
|
|
|
487
491
|
|
|
488
492
|
</h3><div class="docstring">
|
|
489
493
|
<div class="discussion">
|
|
490
|
-
<hr
|
|
494
|
+
<hr>
|
|
491
495
|
|
|
492
496
|
<p>This class verifies a condition and if true, returns the evaluation of a
|
|
493
497
|
function, otherwise returns NaN.</p>
|
|
494
|
-
<hr
|
|
498
|
+
<hr>
|
|
495
499
|
|
|
496
500
|
|
|
497
501
|
</div>
|
|
@@ -512,10 +516,9 @@ function, otherwise returns NaN.</p>
|
|
|
512
516
|
<td>
|
|
513
517
|
<pre class="code"><span class="info file"># File 'lib/mdarray/proc_util.rb', line 121</span>
|
|
514
518
|
|
|
515
|
-
<span class='
|
|
516
|
-
<span class='
|
|
517
|
-
<span class='
|
|
518
|
-
</pre>
|
|
519
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_clipped'>clipped</span><span class='lparen'>(</span><span class='id identifier rubyid_predicate'>predicate</span><span class='comma'>,</span> <span class='id identifier rubyid_method'>method</span><span class='rparen'>)</span>
|
|
520
|
+
<span class='id identifier rubyid_lambda'>lambda</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='op'>|</span> <span class='id identifier rubyid_predicate'>predicate</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span><span class='op'>?</span> <span class='id identifier rubyid_method'>method</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='const'>Float</span><span class='op'>::</span><span class='const'>NAN</span> <span class='rbrace'>}</span>
|
|
521
|
+
<span class='kw'>end</span></pre>
|
|
519
522
|
</td>
|
|
520
523
|
</tr>
|
|
521
524
|
</table>
|
|
@@ -532,10 +535,10 @@ function, otherwise returns NaN.</p>
|
|
|
532
535
|
|
|
533
536
|
</h3><div class="docstring">
|
|
534
537
|
<div class="discussion">
|
|
535
|
-
<hr
|
|
538
|
+
<hr>
|
|
536
539
|
|
|
537
540
|
<p>Builds a function that returns true when 'f' returns false, and vice versa.</p>
|
|
538
|
-
<hr
|
|
541
|
+
<hr>
|
|
539
542
|
|
|
540
543
|
|
|
541
544
|
</div>
|
|
@@ -556,10 +559,9 @@ function, otherwise returns NaN.</p>
|
|
|
556
559
|
<td>
|
|
557
560
|
<pre class="code"><span class="info file"># File 'lib/mdarray/proc_util.rb', line 50</span>
|
|
558
561
|
|
|
559
|
-
<span class='
|
|
560
|
-
<span class='
|
|
561
|
-
<span class='
|
|
562
|
-
</pre>
|
|
562
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_complement'>complement</span> <span class='id identifier rubyid_f'>f</span>
|
|
563
|
+
<span class='id identifier rubyid_lambda'>lambda</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='op'>|</span> <span class='kw'>not</span> <span class='id identifier rubyid_f'>f</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
|
564
|
+
<span class='kw'>end</span></pre>
|
|
563
565
|
</td>
|
|
564
566
|
</tr>
|
|
565
567
|
</table>
|
|
@@ -576,8 +578,8 @@ function, otherwise returns NaN.</p>
|
|
|
576
578
|
|
|
577
579
|
</h3><div class="docstring">
|
|
578
580
|
<div class="discussion">
|
|
579
|
-
<hr
|
|
580
|
-
<hr
|
|
581
|
+
<hr>
|
|
582
|
+
<hr>
|
|
581
583
|
|
|
582
584
|
|
|
583
585
|
</div>
|
|
@@ -598,10 +600,9 @@ function, otherwise returns NaN.</p>
|
|
|
598
600
|
<td>
|
|
599
601
|
<pre class="code"><span class="info file"># File 'lib/mdarray/proc_util.rb', line 33</span>
|
|
600
602
|
|
|
601
|
-
<span class='
|
|
602
|
-
<span class='
|
|
603
|
-
<span class='
|
|
604
|
-
</pre>
|
|
603
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_compose'>compose</span><span class='lparen'>(</span><span class='id identifier rubyid_f'>f</span><span class='comma'>,</span> <span class='id identifier rubyid_g'>g</span><span class='rparen'>)</span>
|
|
604
|
+
<span class='id identifier rubyid_lambda'>lambda</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='op'>|</span> <span class='id identifier rubyid_f'>f</span><span class='lbracket'>[</span><span class='id identifier rubyid_g'>g</span><span class='lbracket'>[</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rbracket'>]</span><span class='rbracket'>]</span> <span class='rbrace'>}</span>
|
|
605
|
+
<span class='kw'>end</span></pre>
|
|
605
606
|
</td>
|
|
606
607
|
</tr>
|
|
607
608
|
</table>
|
|
@@ -618,11 +619,11 @@ function, otherwise returns NaN.</p>
|
|
|
618
619
|
|
|
619
620
|
</h3><div class="docstring">
|
|
620
621
|
<div class="discussion">
|
|
621
|
-
<hr
|
|
622
|
+
<hr>
|
|
622
623
|
|
|
623
624
|
<p>Builds a function which returns true whenever <em>every</em> function in
|
|
624
625
|
'predicates' returns true.</p>
|
|
625
|
-
<hr
|
|
626
|
+
<hr>
|
|
626
627
|
|
|
627
628
|
|
|
628
629
|
</div>
|
|
@@ -650,17 +651,16 @@ function, otherwise returns NaN.</p>
|
|
|
650
651
|
<td>
|
|
651
652
|
<pre class="code"><span class="info file"># File 'lib/mdarray/proc_util.rb', line 68</span>
|
|
652
653
|
|
|
653
|
-
<span class='
|
|
654
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_conjoin'>conjoin</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_predicates'>predicates</span><span class='rparen'>)</span>
|
|
654
655
|
|
|
655
|
-
<span class='
|
|
656
|
-
<span class='
|
|
657
|
-
<span class='
|
|
658
|
-
<span class='
|
|
659
|
-
<span class='
|
|
660
|
-
<span class='
|
|
656
|
+
<span class='id identifier rubyid_base'>base</span> <span class='op'>=</span> <span class='id identifier rubyid_lambda'>lambda</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='op'>|</span> <span class='kw'>true</span> <span class='rbrace'>}</span>
|
|
657
|
+
<span class='id identifier rubyid_predicates'>predicates</span><span class='period'>.</span><span class='id identifier rubyid_inject'>inject</span><span class='lparen'>(</span><span class='id identifier rubyid_base'>base</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_built'>built</span><span class='comma'>,</span> <span class='id identifier rubyid_pred'>pred</span><span class='op'>|</span>
|
|
658
|
+
<span class='id identifier rubyid_lambda'>lambda</span> <span class='kw'>do</span> <span class='op'>|</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='op'>|</span>
|
|
659
|
+
<span class='id identifier rubyid_built'>built</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='id identifier rubyid_pred'>pred</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
660
|
+
<span class='kw'>end</span>
|
|
661
|
+
<span class='kw'>end</span>
|
|
661
662
|
|
|
662
|
-
<span class='
|
|
663
|
-
</pre>
|
|
663
|
+
<span class='kw'>end</span></pre>
|
|
664
664
|
</td>
|
|
665
665
|
</tr>
|
|
666
666
|
</table>
|
|
@@ -677,10 +677,10 @@ function, otherwise returns NaN.</p>
|
|
|
677
677
|
|
|
678
678
|
</h3><div class="docstring">
|
|
679
679
|
<div class="discussion">
|
|
680
|
-
<hr
|
|
680
|
+
<hr>
|
|
681
681
|
|
|
682
682
|
<p>Returns a constant value</p>
|
|
683
|
-
<hr
|
|
683
|
+
<hr>
|
|
684
684
|
|
|
685
685
|
|
|
686
686
|
</div>
|
|
@@ -701,10 +701,9 @@ function, otherwise returns NaN.</p>
|
|
|
701
701
|
<td>
|
|
702
702
|
<pre class="code"><span class="info file"># File 'lib/mdarray/proc_util.rb', line 129</span>
|
|
703
703
|
|
|
704
|
-
<span class='
|
|
705
|
-
<span class='
|
|
706
|
-
<span class='
|
|
707
|
-
</pre>
|
|
704
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_constant'>constant</span><span class='lparen'>(</span><span class='id identifier rubyid_val'>val</span><span class='rparen'>)</span>
|
|
705
|
+
<span class='id identifier rubyid_lambda'>lambda</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_arg'>arg</span><span class='op'>|</span> <span class='kw'>return</span> <span class='id identifier rubyid_val'>val</span> <span class='rbrace'>}</span>
|
|
706
|
+
<span class='kw'>end</span></pre>
|
|
708
707
|
</td>
|
|
709
708
|
</tr>
|
|
710
709
|
</table>
|
|
@@ -721,11 +720,11 @@ function, otherwise returns NaN.</p>
|
|
|
721
720
|
|
|
722
721
|
</h3><div class="docstring">
|
|
723
722
|
<div class="discussion">
|
|
724
|
-
<hr
|
|
723
|
+
<hr>
|
|
725
724
|
|
|
726
725
|
<p>Builds a function which returns true whenever <em>any</em> function in
|
|
727
726
|
'predicates' returns true.</p>
|
|
728
|
-
<hr
|
|
727
|
+
<hr>
|
|
729
728
|
|
|
730
729
|
|
|
731
730
|
</div>
|
|
@@ -753,17 +752,16 @@ function, otherwise returns NaN.</p>
|
|
|
753
752
|
<td>
|
|
754
753
|
<pre class="code"><span class="info file"># File 'lib/mdarray/proc_util.rb', line 85</span>
|
|
755
754
|
|
|
756
|
-
<span class='
|
|
755
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_disjoin'>disjoin</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_predicates'>predicates</span><span class='rparen'>)</span>
|
|
757
756
|
|
|
758
|
-
<span class='
|
|
759
|
-
<span class='
|
|
760
|
-
<span class='
|
|
761
|
-
<span class='
|
|
762
|
-
<span class='
|
|
763
|
-
<span class='
|
|
757
|
+
<span class='id identifier rubyid_base'>base</span> <span class='op'>=</span> <span class='id identifier rubyid_lambda'>lambda</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='op'>|</span> <span class='kw'>false</span> <span class='rbrace'>}</span>
|
|
758
|
+
<span class='id identifier rubyid_predicates'>predicates</span><span class='period'>.</span><span class='id identifier rubyid_inject'>inject</span><span class='lparen'>(</span><span class='id identifier rubyid_base'>base</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_built'>built</span><span class='comma'>,</span> <span class='id identifier rubyid_pred'>pred</span><span class='op'>|</span>
|
|
759
|
+
<span class='id identifier rubyid_lambda'>lambda</span> <span class='kw'>do</span> <span class='op'>|</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='op'>|</span>
|
|
760
|
+
<span class='id identifier rubyid_built'>built</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_pred'>pred</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
761
|
+
<span class='kw'>end</span>
|
|
762
|
+
<span class='kw'>end</span>
|
|
764
763
|
|
|
765
|
-
<span class='
|
|
766
|
-
</pre>
|
|
764
|
+
<span class='kw'>end</span></pre>
|
|
767
765
|
</td>
|
|
768
766
|
</tr>
|
|
769
767
|
</table>
|
|
@@ -780,10 +778,10 @@ function, otherwise returns NaN.</p>
|
|
|
780
778
|
|
|
781
779
|
</h3><div class="docstring">
|
|
782
780
|
<div class="discussion">
|
|
783
|
-
<hr
|
|
781
|
+
<hr>
|
|
784
782
|
|
|
785
783
|
<p>Always returns true</p>
|
|
786
|
-
<hr
|
|
784
|
+
<hr>
|
|
787
785
|
|
|
788
786
|
|
|
789
787
|
</div>
|
|
@@ -804,10 +802,9 @@ function, otherwise returns NaN.</p>
|
|
|
804
802
|
<td>
|
|
805
803
|
<pre class="code"><span class="info file"># File 'lib/mdarray/proc_util.rb', line 137</span>
|
|
806
804
|
|
|
807
|
-
<span class='
|
|
808
|
-
<span class='
|
|
809
|
-
<span class='
|
|
810
|
-
</pre>
|
|
805
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_everywhere'>everywhere</span>
|
|
806
|
+
<span class='id identifier rubyid_lambda'>lambda</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_arg'>arg</span><span class='op'>|</span> <span class='kw'>return</span> <span class='kw'>true</span><span class='rbrace'>}</span>
|
|
807
|
+
<span class='kw'>end</span></pre>
|
|
811
808
|
</td>
|
|
812
809
|
</tr>
|
|
813
810
|
</table>
|
|
@@ -824,10 +821,10 @@ function, otherwise returns NaN.</p>
|
|
|
824
821
|
|
|
825
822
|
</h3><div class="docstring">
|
|
826
823
|
<div class="discussion">
|
|
827
|
-
<hr
|
|
824
|
+
<hr>
|
|
828
825
|
|
|
829
826
|
<p>The identity function</p>
|
|
830
|
-
<hr
|
|
827
|
+
<hr>
|
|
831
828
|
|
|
832
829
|
|
|
833
830
|
</div>
|
|
@@ -848,10 +845,9 @@ function, otherwise returns NaN.</p>
|
|
|
848
845
|
<td>
|
|
849
846
|
<pre class="code"><span class="info file"># File 'lib/mdarray/proc_util.rb', line 153</span>
|
|
850
847
|
|
|
851
|
-
<span class='
|
|
852
|
-
<span class='
|
|
853
|
-
<span class='
|
|
854
|
-
</pre>
|
|
848
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_identity'>identity</span>
|
|
849
|
+
<span class='id identifier rubyid_lambda'>lambda</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_arg'>arg</span><span class='op'>|</span> <span class='kw'>return</span> <span class='id identifier rubyid_arg'>arg</span> <span class='rbrace'>}</span>
|
|
850
|
+
<span class='kw'>end</span></pre>
|
|
855
851
|
</td>
|
|
856
852
|
</tr>
|
|
857
853
|
</table>
|
|
@@ -868,10 +864,10 @@ function, otherwise returns NaN.</p>
|
|
|
868
864
|
|
|
869
865
|
</h3><div class="docstring">
|
|
870
866
|
<div class="discussion">
|
|
871
|
-
<hr
|
|
867
|
+
<hr>
|
|
872
868
|
|
|
873
869
|
<p>Always returns false</p>
|
|
874
|
-
<hr
|
|
870
|
+
<hr>
|
|
875
871
|
|
|
876
872
|
|
|
877
873
|
</div>
|
|
@@ -892,10 +888,9 @@ function, otherwise returns NaN.</p>
|
|
|
892
888
|
<td>
|
|
893
889
|
<pre class="code"><span class="info file"># File 'lib/mdarray/proc_util.rb', line 145</span>
|
|
894
890
|
|
|
895
|
-
<span class='
|
|
896
|
-
<span class='
|
|
897
|
-
<span class='
|
|
898
|
-
</pre>
|
|
891
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_nowhere'>nowhere</span>
|
|
892
|
+
<span class='id identifier rubyid_lambda'>lambda</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_arg'>arg</span><span class='op'>|</span> <span class='kw'>return</span> <span class='kw'>false</span><span class='rbrace'>}</span>
|
|
893
|
+
<span class='kw'>end</span></pre>
|
|
899
894
|
</td>
|
|
900
895
|
</tr>
|
|
901
896
|
</table>
|
|
@@ -918,8 +913,8 @@ function, otherwise returns NaN.</p>
|
|
|
918
913
|
|
|
919
914
|
</h3><div class="docstring">
|
|
920
915
|
<div class="discussion">
|
|
921
|
-
<hr
|
|
922
|
-
<hr
|
|
916
|
+
<hr>
|
|
917
|
+
<hr>
|
|
923
918
|
|
|
924
919
|
|
|
925
920
|
</div>
|
|
@@ -940,10 +935,9 @@ function, otherwise returns NaN.</p>
|
|
|
940
935
|
<td>
|
|
941
936
|
<pre class="code"><span class="info file"># File 'lib/mdarray/proc_util.rb', line 41</span>
|
|
942
937
|
|
|
943
|
-
<span class='
|
|
944
|
-
<span class='
|
|
945
|
-
<span class='
|
|
946
|
-
</pre>
|
|
938
|
+
<span class='kw'>def</span> <span class='op'>*</span><span class='lparen'>(</span><span class='id identifier rubyid_g'>g</span><span class='rparen'>)</span>
|
|
939
|
+
<span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_compose'>compose</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_g'>g</span><span class='rparen'>)</span>
|
|
940
|
+
<span class='kw'>end</span></pre>
|
|
947
941
|
</td>
|
|
948
942
|
</tr>
|
|
949
943
|
</table>
|
|
@@ -960,12 +954,12 @@ function, otherwise returns NaN.</p>
|
|
|
960
954
|
|
|
961
955
|
</h3><div class="docstring">
|
|
962
956
|
<div class="discussion">
|
|
963
|
-
<hr
|
|
957
|
+
<hr>
|
|
964
958
|
|
|
965
959
|
<p>This method binds the 1st argument of a binary function to a scalar value,
|
|
966
960
|
effectively enabling a binary function to be called in a context intended
|
|
967
961
|
for a unary function.</p>
|
|
968
|
-
<hr
|
|
962
|
+
<hr>
|
|
969
963
|
|
|
970
964
|
|
|
971
965
|
</div>
|
|
@@ -986,10 +980,9 @@ for a unary function.</p>
|
|
|
986
980
|
<td>
|
|
987
981
|
<pre class="code"><span class="info file"># File 'lib/mdarray/proc_util.rb', line 102</span>
|
|
988
982
|
|
|
989
|
-
<span class='
|
|
990
|
-
<span class='
|
|
991
|
-
<span class='
|
|
992
|
-
</pre>
|
|
983
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_bind1st'>bind1st</span><span class='lparen'>(</span><span class='id identifier rubyid_val'>val</span><span class='rparen'>)</span>
|
|
984
|
+
<span class='id identifier rubyid_lambda'>lambda</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_arg'>arg</span><span class='op'>|</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_val'>val</span><span class='comma'>,</span> <span class='id identifier rubyid_arg'>arg</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
|
985
|
+
<span class='kw'>end</span></pre>
|
|
993
986
|
</td>
|
|
994
987
|
</tr>
|
|
995
988
|
</table>
|
|
@@ -1006,12 +999,12 @@ for a unary function.</p>
|
|
|
1006
999
|
|
|
1007
1000
|
</h3><div class="docstring">
|
|
1008
1001
|
<div class="discussion">
|
|
1009
|
-
<hr
|
|
1002
|
+
<hr>
|
|
1010
1003
|
|
|
1011
1004
|
<p>This method binds the 2nd argument of a binary function to a scalar value,
|
|
1012
1005
|
effectively enabling a binary function to be called in a context intended
|
|
1013
1006
|
for a unary function.</p>
|
|
1014
|
-
<hr
|
|
1007
|
+
<hr>
|
|
1015
1008
|
|
|
1016
1009
|
|
|
1017
1010
|
</div>
|
|
@@ -1032,10 +1025,9 @@ for a unary function.</p>
|
|
|
1032
1025
|
<td>
|
|
1033
1026
|
<pre class="code"><span class="info file"># File 'lib/mdarray/proc_util.rb', line 112</span>
|
|
1034
1027
|
|
|
1035
|
-
<span class='
|
|
1036
|
-
<span class='
|
|
1037
|
-
<span class='
|
|
1038
|
-
</pre>
|
|
1028
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_bind2nd'>bind2nd</span><span class='lparen'>(</span><span class='id identifier rubyid_val'>val</span><span class='rparen'>)</span>
|
|
1029
|
+
<span class='id identifier rubyid_lambda'>lambda</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_arg'>arg</span><span class='op'>|</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_arg'>arg</span><span class='comma'>,</span><span class='id identifier rubyid_val'>val</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
|
1030
|
+
<span class='kw'>end</span></pre>
|
|
1039
1031
|
</td>
|
|
1040
1032
|
</tr>
|
|
1041
1033
|
</table>
|
|
@@ -1052,8 +1044,8 @@ for a unary function.</p>
|
|
|
1052
1044
|
|
|
1053
1045
|
</h3><div class="docstring">
|
|
1054
1046
|
<div class="discussion">
|
|
1055
|
-
<hr
|
|
1056
|
-
<hr
|
|
1047
|
+
<hr>
|
|
1048
|
+
<hr>
|
|
1057
1049
|
|
|
1058
1050
|
|
|
1059
1051
|
</div>
|
|
@@ -1074,10 +1066,9 @@ for a unary function.</p>
|
|
|
1074
1066
|
<td>
|
|
1075
1067
|
<pre class="code"><span class="info file"># File 'lib/mdarray/proc_util.rb', line 58</span>
|
|
1076
1068
|
|
|
1077
|
-
<span class='
|
|
1078
|
-
<span class='
|
|
1079
|
-
<span class='
|
|
1080
|
-
</pre>
|
|
1069
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_neg'>neg</span>
|
|
1070
|
+
<span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_complement'>complement</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
|
|
1071
|
+
<span class='kw'>end</span></pre>
|
|
1081
1072
|
</td>
|
|
1082
1073
|
</tr>
|
|
1083
1074
|
</table>
|
|
@@ -1088,9 +1079,9 @@ for a unary function.</p>
|
|
|
1088
1079
|
</div>
|
|
1089
1080
|
|
|
1090
1081
|
<div id="footer">
|
|
1091
|
-
Generated on
|
|
1082
|
+
Generated on Tue Jul 14 18:09:10 2015 by
|
|
1092
1083
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1093
|
-
0.8.
|
|
1084
|
+
0.8.7.6 (ruby-1.9.3).
|
|
1094
1085
|
</div>
|
|
1095
1086
|
|
|
1096
1087
|
</body>
|