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
|
@@ -6,18 +6,18 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: MDArray::IteratorFastLong
|
|
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#!MDArray/IteratorFastLong.html";
|
|
21
21
|
</script>
|
|
22
22
|
|
|
23
23
|
|
|
@@ -103,8 +103,8 @@
|
|
|
103
103
|
|
|
104
104
|
<h2>Overview</h2><div class="docstring">
|
|
105
105
|
<div class="discussion">
|
|
106
|
-
<hr
|
|
107
|
-
<hr
|
|
106
|
+
<hr>
|
|
107
|
+
<hr>
|
|
108
108
|
|
|
109
109
|
|
|
110
110
|
</div>
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
|
|
234
234
|
|
|
235
235
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="IteratorFast.html" title="MDArray::IteratorFast (class)">IteratorFast</a></span></h3>
|
|
236
|
-
<p class="inherited"><span class='object_link'><a href="IteratorFast.html#get_current_counter-instance_method" title="MDArray::IteratorFast#get_current_counter (method)">#get_current_counter</a></span>, <span class='object_link'><a href="IteratorFast.html#has_next%3F-instance_method" title="MDArray::IteratorFast#has_next? (method)">#has_next?</a></span>, <span class='object_link'><a href="IteratorFast.html#initialize-instance_method" title="MDArray::IteratorFast#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="IteratorFast.html#next-instance_method" title="MDArray::IteratorFast#next (method)">#next</a></span></p>
|
|
236
|
+
<p class="inherited"><span class='object_link'><a href="IteratorFast.html#get_current_counter-instance_method" title="MDArray::IteratorFast#get_current_counter (method)">#get_current_counter</a></span>, <span class='object_link'><a href="IteratorFast.html#has_next%3F-instance_method" title="MDArray::IteratorFast#has_next? (method)">#has_next?</a></span>, <span class='object_link'><a href="IteratorFast.html#initialize-instance_method" title="MDArray::IteratorFast#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="IteratorFast.html#jget_current_counter-instance_method" title="MDArray::IteratorFast#jget_current_counter (method)">#jget_current_counter</a></span>, <span class='object_link'><a href="IteratorFast.html#next-instance_method" title="MDArray::IteratorFast#next (method)">#next</a></span></p>
|
|
237
237
|
<div id="constructor_details" class="method_details_list">
|
|
238
238
|
<h2>Constructor Details</h2>
|
|
239
239
|
|
|
@@ -261,17 +261,16 @@
|
|
|
261
261
|
<pre class="lines">
|
|
262
262
|
|
|
263
263
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
264
|
+
806
|
|
265
|
+
807
|
|
266
|
+
808</pre>
|
|
267
267
|
</td>
|
|
268
268
|
<td>
|
|
269
|
-
<pre class="code"><span class="info file"># File 'lib/mdarray/counter.rb', line
|
|
269
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/counter.rb', line 806</span>
|
|
270
270
|
|
|
271
|
-
<span class='
|
|
272
|
-
<span class='
|
|
273
|
-
<span class='
|
|
274
|
-
</pre>
|
|
271
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_get_current'>get_current</span>
|
|
272
|
+
<span class='ivar'>@iterator</span><span class='period'>.</span><span class='id identifier rubyid_getLongCurrent'>getLongCurrent</span>
|
|
273
|
+
<span class='kw'>end</span></pre>
|
|
275
274
|
</td>
|
|
276
275
|
</tr>
|
|
277
276
|
</table>
|
|
@@ -292,17 +291,16 @@
|
|
|
292
291
|
<pre class="lines">
|
|
293
292
|
|
|
294
293
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
294
|
+
810
|
|
295
|
+
811
|
|
296
|
+
812</pre>
|
|
298
297
|
</td>
|
|
299
298
|
<td>
|
|
300
|
-
<pre class="code"><span class="info file"># File 'lib/mdarray/counter.rb', line
|
|
299
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/counter.rb', line 810</span>
|
|
301
300
|
|
|
302
|
-
<span class='
|
|
303
|
-
<span class='
|
|
304
|
-
<span class='
|
|
305
|
-
</pre>
|
|
301
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_get_next'>get_next</span>
|
|
302
|
+
<span class='ivar'>@iterator</span><span class='period'>.</span><span class='id identifier rubyid_getLongNext'>getLongNext</span>
|
|
303
|
+
<span class='kw'>end</span></pre>
|
|
306
304
|
</td>
|
|
307
305
|
</tr>
|
|
308
306
|
</table>
|
|
@@ -323,17 +321,16 @@
|
|
|
323
321
|
<pre class="lines">
|
|
324
322
|
|
|
325
323
|
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
324
|
+
814
|
|
325
|
+
815
|
|
326
|
+
816</pre>
|
|
329
327
|
</td>
|
|
330
328
|
<td>
|
|
331
|
-
<pre class="code"><span class="info file"># File 'lib/mdarray/counter.rb', line
|
|
329
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/counter.rb', line 814</span>
|
|
332
330
|
|
|
333
|
-
<span class='
|
|
334
|
-
<span class='
|
|
335
|
-
<span class='
|
|
336
|
-
</pre>
|
|
331
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_set_current'>set_current</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
|
332
|
+
<span class='ivar'>@iterator</span><span class='period'>.</span><span class='id identifier rubyid_setLongCurrent'>setLongCurrent</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
|
333
|
+
<span class='kw'>end</span></pre>
|
|
337
334
|
</td>
|
|
338
335
|
</tr>
|
|
339
336
|
</table>
|
|
@@ -354,17 +351,16 @@
|
|
|
354
351
|
<pre class="lines">
|
|
355
352
|
|
|
356
353
|
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
354
|
+
818
|
|
355
|
+
819
|
|
356
|
+
820</pre>
|
|
360
357
|
</td>
|
|
361
358
|
<td>
|
|
362
|
-
<pre class="code"><span class="info file"># File 'lib/mdarray/counter.rb', line
|
|
359
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/counter.rb', line 818</span>
|
|
363
360
|
|
|
364
|
-
<span class='
|
|
365
|
-
<span class='
|
|
366
|
-
<span class='
|
|
367
|
-
</pre>
|
|
361
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_set_next'>set_next</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
|
362
|
+
<span class='ivar'>@iterator</span><span class='period'>.</span><span class='id identifier rubyid_setLongNext'>setLongNext</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
|
363
|
+
<span class='kw'>end</span></pre>
|
|
368
364
|
</td>
|
|
369
365
|
</tr>
|
|
370
366
|
</table>
|
|
@@ -375,9 +371,9 @@
|
|
|
375
371
|
</div>
|
|
376
372
|
|
|
377
373
|
<div id="footer">
|
|
378
|
-
Generated on
|
|
374
|
+
Generated on Tue Jul 14 18:09:00 2015 by
|
|
379
375
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
380
|
-
0.8.
|
|
376
|
+
0.8.7.6 (ruby-1.9.3).
|
|
381
377
|
</div>
|
|
382
378
|
|
|
383
379
|
</body>
|
|
@@ -6,18 +6,18 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: MDArray::IteratorFastShort
|
|
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#!MDArray/IteratorFastShort.html";
|
|
21
21
|
</script>
|
|
22
22
|
|
|
23
23
|
|
|
@@ -103,8 +103,8 @@
|
|
|
103
103
|
|
|
104
104
|
<h2>Overview</h2><div class="docstring">
|
|
105
105
|
<div class="discussion">
|
|
106
|
-
<hr
|
|
107
|
-
<hr
|
|
106
|
+
<hr>
|
|
107
|
+
<hr>
|
|
108
108
|
|
|
109
109
|
|
|
110
110
|
</div>
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
|
|
234
234
|
|
|
235
235
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="IteratorFast.html" title="MDArray::IteratorFast (class)">IteratorFast</a></span></h3>
|
|
236
|
-
<p class="inherited"><span class='object_link'><a href="IteratorFast.html#get_current_counter-instance_method" title="MDArray::IteratorFast#get_current_counter (method)">#get_current_counter</a></span>, <span class='object_link'><a href="IteratorFast.html#has_next%3F-instance_method" title="MDArray::IteratorFast#has_next? (method)">#has_next?</a></span>, <span class='object_link'><a href="IteratorFast.html#initialize-instance_method" title="MDArray::IteratorFast#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="IteratorFast.html#next-instance_method" title="MDArray::IteratorFast#next (method)">#next</a></span></p>
|
|
236
|
+
<p class="inherited"><span class='object_link'><a href="IteratorFast.html#get_current_counter-instance_method" title="MDArray::IteratorFast#get_current_counter (method)">#get_current_counter</a></span>, <span class='object_link'><a href="IteratorFast.html#has_next%3F-instance_method" title="MDArray::IteratorFast#has_next? (method)">#has_next?</a></span>, <span class='object_link'><a href="IteratorFast.html#initialize-instance_method" title="MDArray::IteratorFast#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="IteratorFast.html#jget_current_counter-instance_method" title="MDArray::IteratorFast#jget_current_counter (method)">#jget_current_counter</a></span>, <span class='object_link'><a href="IteratorFast.html#next-instance_method" title="MDArray::IteratorFast#next (method)">#next</a></span></p>
|
|
237
237
|
<div id="constructor_details" class="method_details_list">
|
|
238
238
|
<h2>Constructor Details</h2>
|
|
239
239
|
|
|
@@ -261,17 +261,16 @@
|
|
|
261
261
|
<pre class="lines">
|
|
262
262
|
|
|
263
263
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
264
|
+
758
|
|
265
|
+
759
|
|
266
|
+
760</pre>
|
|
267
267
|
</td>
|
|
268
268
|
<td>
|
|
269
|
-
<pre class="code"><span class="info file"># File 'lib/mdarray/counter.rb', line
|
|
269
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/counter.rb', line 758</span>
|
|
270
270
|
|
|
271
|
-
<span class='
|
|
272
|
-
<span class='
|
|
273
|
-
<span class='
|
|
274
|
-
</pre>
|
|
271
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_get_current'>get_current</span>
|
|
272
|
+
<span class='ivar'>@iterator</span><span class='period'>.</span><span class='id identifier rubyid_getShortCurrent'>getShortCurrent</span>
|
|
273
|
+
<span class='kw'>end</span></pre>
|
|
275
274
|
</td>
|
|
276
275
|
</tr>
|
|
277
276
|
</table>
|
|
@@ -292,17 +291,16 @@
|
|
|
292
291
|
<pre class="lines">
|
|
293
292
|
|
|
294
293
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
294
|
+
762
|
|
295
|
+
763
|
|
296
|
+
764</pre>
|
|
298
297
|
</td>
|
|
299
298
|
<td>
|
|
300
|
-
<pre class="code"><span class="info file"># File 'lib/mdarray/counter.rb', line
|
|
299
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/counter.rb', line 762</span>
|
|
301
300
|
|
|
302
|
-
<span class='
|
|
303
|
-
<span class='
|
|
304
|
-
<span class='
|
|
305
|
-
</pre>
|
|
301
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_get_next'>get_next</span>
|
|
302
|
+
<span class='ivar'>@iterator</span><span class='period'>.</span><span class='id identifier rubyid_getShortNext'>getShortNext</span>
|
|
303
|
+
<span class='kw'>end</span></pre>
|
|
306
304
|
</td>
|
|
307
305
|
</tr>
|
|
308
306
|
</table>
|
|
@@ -323,17 +321,16 @@
|
|
|
323
321
|
<pre class="lines">
|
|
324
322
|
|
|
325
323
|
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
324
|
+
766
|
|
325
|
+
767
|
|
326
|
+
768</pre>
|
|
329
327
|
</td>
|
|
330
328
|
<td>
|
|
331
|
-
<pre class="code"><span class="info file"># File 'lib/mdarray/counter.rb', line
|
|
329
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/counter.rb', line 766</span>
|
|
332
330
|
|
|
333
|
-
<span class='
|
|
334
|
-
<span class='
|
|
335
|
-
<span class='
|
|
336
|
-
</pre>
|
|
331
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_set_current'>set_current</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
|
332
|
+
<span class='ivar'>@iterator</span><span class='period'>.</span><span class='id identifier rubyid_setShortCurrent'>setShortCurrent</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
|
333
|
+
<span class='kw'>end</span></pre>
|
|
337
334
|
</td>
|
|
338
335
|
</tr>
|
|
339
336
|
</table>
|
|
@@ -354,17 +351,16 @@
|
|
|
354
351
|
<pre class="lines">
|
|
355
352
|
|
|
356
353
|
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
354
|
+
770
|
|
355
|
+
771
|
|
356
|
+
772</pre>
|
|
360
357
|
</td>
|
|
361
358
|
<td>
|
|
362
|
-
<pre class="code"><span class="info file"># File 'lib/mdarray/counter.rb', line
|
|
359
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/counter.rb', line 770</span>
|
|
363
360
|
|
|
364
|
-
<span class='
|
|
365
|
-
<span class='
|
|
366
|
-
<span class='
|
|
367
|
-
</pre>
|
|
361
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_set_next'>set_next</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
|
362
|
+
<span class='ivar'>@iterator</span><span class='period'>.</span><span class='id identifier rubyid_setShortNext'>setShortNext</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
|
363
|
+
<span class='kw'>end</span></pre>
|
|
368
364
|
</td>
|
|
369
365
|
</tr>
|
|
370
366
|
</table>
|
|
@@ -375,9 +371,9 @@
|
|
|
375
371
|
</div>
|
|
376
372
|
|
|
377
373
|
<div id="footer">
|
|
378
|
-
Generated on
|
|
374
|
+
Generated on Tue Jul 14 18:09:00 2015 by
|
|
379
375
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
380
|
-
0.8.
|
|
376
|
+
0.8.7.6 (ruby-1.9.3).
|
|
381
377
|
</div>
|
|
382
378
|
|
|
383
379
|
</body>
|
|
@@ -0,0 +1,561 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
+
<title>
|
|
7
|
+
Class: MDArray::Section
|
|
8
|
+
|
|
9
|
+
— Documentation by YARD 0.8.7.6
|
|
10
|
+
|
|
11
|
+
</title>
|
|
12
|
+
|
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
|
14
|
+
|
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
|
16
|
+
|
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
|
19
|
+
relpath = '../';
|
|
20
|
+
framesUrl = "../frames.html#!MDArray/Section.html";
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
|
25
|
+
|
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
</head>
|
|
30
|
+
<body>
|
|
31
|
+
<div id="header">
|
|
32
|
+
<div id="menu">
|
|
33
|
+
|
|
34
|
+
<a href="../_index.html">Index (S)</a> »
|
|
35
|
+
<span class='title'><span class='object_link'><a href="../MDArray.html" title="MDArray (class)">MDArray</a></span></span>
|
|
36
|
+
»
|
|
37
|
+
<span class="title">Section</span>
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<div id="search">
|
|
44
|
+
|
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
|
46
|
+
href="../class_list.html">
|
|
47
|
+
Class List
|
|
48
|
+
</a>
|
|
49
|
+
|
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
|
51
|
+
href="../method_list.html">
|
|
52
|
+
Method List
|
|
53
|
+
</a>
|
|
54
|
+
|
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
|
56
|
+
href="../file_list.html">
|
|
57
|
+
File List
|
|
58
|
+
</a>
|
|
59
|
+
|
|
60
|
+
</div>
|
|
61
|
+
<div class="clear"></div>
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
<iframe id="search_frame"></iframe>
|
|
65
|
+
|
|
66
|
+
<div id="content"><h1>Class: MDArray::Section
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</h1>
|
|
71
|
+
|
|
72
|
+
<dl class="box">
|
|
73
|
+
|
|
74
|
+
<dt class="r1">Inherits:</dt>
|
|
75
|
+
<dd class="r1">
|
|
76
|
+
<span class="inheritName">Object</span>
|
|
77
|
+
|
|
78
|
+
<ul class="fullTree">
|
|
79
|
+
<li>Object</li>
|
|
80
|
+
|
|
81
|
+
<li class="next">MDArray::Section</li>
|
|
82
|
+
|
|
83
|
+
</ul>
|
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
85
|
+
|
|
86
|
+
</dd>
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
<dt class="r2 last">Defined in:</dt>
|
|
97
|
+
<dd class="r2 last">lib/mdarray/section.rb</dd>
|
|
98
|
+
|
|
99
|
+
</dl>
|
|
100
|
+
<div class="clear"></div>
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
|
107
|
+
<ul class="summary">
|
|
108
|
+
|
|
109
|
+
<li class="public ">
|
|
110
|
+
<span class="summary_signature">
|
|
111
|
+
|
|
112
|
+
<a href="#netcdf_elmt-instance_method" title="#netcdf_elmt (instance method)">- (Object) <strong>netcdf_elmt</strong> </a>
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
</span>
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
<span class="note title readonly">readonly</span>
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
<span class="summary_desc"><div class='inline'>
|
|
132
|
+
<p>Returns the value of attribute netcdf_elmt.</p>
|
|
133
|
+
</div></span>
|
|
134
|
+
|
|
135
|
+
</li>
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
</ul>
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
<h2>
|
|
145
|
+
Class Method Summary
|
|
146
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
147
|
+
</h2>
|
|
148
|
+
|
|
149
|
+
<ul class="summary">
|
|
150
|
+
|
|
151
|
+
<li class="public ">
|
|
152
|
+
<span class="summary_signature">
|
|
153
|
+
|
|
154
|
+
<a href="#build-class_method" title="build (class method)">+ (Object) <strong>build</strong>(*args) </a>
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
</span>
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
<span class="summary_desc"><div class='inline'>
|
|
169
|
+
<p>-------------------------------------------------------------------------------------
|
|
170
|
+
Builds a section by passing the proper section definition.</p>
|
|
171
|
+
</div></span>
|
|
172
|
+
|
|
173
|
+
</li>
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
</ul>
|
|
177
|
+
|
|
178
|
+
<h2>
|
|
179
|
+
Instance Method Summary
|
|
180
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
181
|
+
</h2>
|
|
182
|
+
|
|
183
|
+
<ul class="summary">
|
|
184
|
+
|
|
185
|
+
<li class="public ">
|
|
186
|
+
<span class="summary_signature">
|
|
187
|
+
|
|
188
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Section) <strong>initialize</strong>(netcdf_section) </a>
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
</span>
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
<span class="note title constructor">constructor</span>
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
<span class="summary_desc"><div class='inline'>
|
|
205
|
+
<p>-------------------------------------------------------------------------------------.</p>
|
|
206
|
+
</div></span>
|
|
207
|
+
|
|
208
|
+
</li>
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
<li class="public ">
|
|
212
|
+
<span class="summary_signature">
|
|
213
|
+
|
|
214
|
+
<a href="#print-instance_method" title="#print (instance method)">- (Object) <strong>print</strong> </a>
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
</span>
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
<span class="summary_desc"><div class='inline'>
|
|
229
|
+
<p>-------------------------------------------------------------------------------------.</p>
|
|
230
|
+
</div></span>
|
|
231
|
+
|
|
232
|
+
</li>
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
<li class="public ">
|
|
236
|
+
<span class="summary_signature">
|
|
237
|
+
|
|
238
|
+
<a href="#to_s-instance_method" title="#to_s (instance method)">- (Object) <strong>to_s</strong> </a>
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
</span>
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
<span class="summary_desc"><div class='inline'>
|
|
253
|
+
<p>-------------------------------------------------------------------------------------.</p>
|
|
254
|
+
</div></span>
|
|
255
|
+
|
|
256
|
+
</li>
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
</ul>
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
<div id="constructor_details" class="method_details_list">
|
|
263
|
+
<h2>Constructor Details</h2>
|
|
264
|
+
|
|
265
|
+
<div class="method_details first">
|
|
266
|
+
<h3 class="signature first" id="initialize-instance_method">
|
|
267
|
+
|
|
268
|
+
- (<tt><span class='object_link'><a href="" title="MDArray::Section (class)">Section</a></span></tt>) <strong>initialize</strong>(netcdf_section)
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
</h3><div class="docstring">
|
|
275
|
+
<div class="discussion">
|
|
276
|
+
<hr>
|
|
277
|
+
<hr>
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
</div>
|
|
281
|
+
</div>
|
|
282
|
+
<div class="tags">
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
</div><table class="source_code">
|
|
286
|
+
<tr>
|
|
287
|
+
<td>
|
|
288
|
+
<pre class="lines">
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
33
|
|
292
|
+
34
|
|
293
|
+
35</pre>
|
|
294
|
+
</td>
|
|
295
|
+
<td>
|
|
296
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/section.rb', line 33</span>
|
|
297
|
+
|
|
298
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_netcdf_section'>netcdf_section</span><span class='rparen'>)</span>
|
|
299
|
+
<span class='ivar'>@netcdf_elmt</span> <span class='op'>=</span> <span class='id identifier rubyid_netcdf_section'>netcdf_section</span>
|
|
300
|
+
<span class='kw'>end</span></pre>
|
|
301
|
+
</td>
|
|
302
|
+
</tr>
|
|
303
|
+
</table>
|
|
304
|
+
</div>
|
|
305
|
+
|
|
306
|
+
</div>
|
|
307
|
+
|
|
308
|
+
<div id="instance_attr_details" class="attr_details">
|
|
309
|
+
<h2>Instance Attribute Details</h2>
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
<span id=""></span>
|
|
313
|
+
<div class="method_details first">
|
|
314
|
+
<h3 class="signature first" id="netcdf_elmt-instance_method">
|
|
315
|
+
|
|
316
|
+
- (<tt>Object</tt>) <strong>netcdf_elmt</strong> <span class="extras">(readonly)</span>
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
</h3><div class="docstring">
|
|
323
|
+
<div class="discussion">
|
|
324
|
+
|
|
325
|
+
<p>Returns the value of attribute netcdf_elmt</p>
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
</div>
|
|
329
|
+
</div>
|
|
330
|
+
<div class="tags">
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
</div><table class="source_code">
|
|
334
|
+
<tr>
|
|
335
|
+
<td>
|
|
336
|
+
<pre class="lines">
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
27
|
|
340
|
+
28
|
|
341
|
+
29</pre>
|
|
342
|
+
</td>
|
|
343
|
+
<td>
|
|
344
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/section.rb', line 27</span>
|
|
345
|
+
|
|
346
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_netcdf_elmt'>netcdf_elmt</span>
|
|
347
|
+
<span class='ivar'>@netcdf_elmt</span>
|
|
348
|
+
<span class='kw'>end</span></pre>
|
|
349
|
+
</td>
|
|
350
|
+
</tr>
|
|
351
|
+
</table>
|
|
352
|
+
</div>
|
|
353
|
+
|
|
354
|
+
</div>
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
<div id="class_method_details" class="method_details_list">
|
|
358
|
+
<h2>Class Method Details</h2>
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
<div class="method_details first">
|
|
362
|
+
<h3 class="signature first" id="build-class_method">
|
|
363
|
+
|
|
364
|
+
+ (<tt>Object</tt>) <strong>build</strong>(*args)
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
</h3><div class="docstring">
|
|
371
|
+
<div class="discussion">
|
|
372
|
+
<hr>
|
|
373
|
+
|
|
374
|
+
<p>Builds a section by passing the proper section definition. The following
|
|
375
|
+
itens can be part of the section definition shape origin size stride range
|
|
376
|
+
section spec</p>
|
|
377
|
+
<hr>
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
</div>
|
|
381
|
+
</div>
|
|
382
|
+
<div class="tags">
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
</div><table class="source_code">
|
|
386
|
+
<tr>
|
|
387
|
+
<td>
|
|
388
|
+
<pre class="lines">
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
49
|
|
392
|
+
50
|
|
393
|
+
51
|
|
394
|
+
52
|
|
395
|
+
53
|
|
396
|
+
54
|
|
397
|
+
55
|
|
398
|
+
56
|
|
399
|
+
57
|
|
400
|
+
58
|
|
401
|
+
59
|
|
402
|
+
60
|
|
403
|
+
61
|
|
404
|
+
62
|
|
405
|
+
63
|
|
406
|
+
64
|
|
407
|
+
65
|
|
408
|
+
66
|
|
409
|
+
67
|
|
410
|
+
68
|
|
411
|
+
69
|
|
412
|
+
70
|
|
413
|
+
71
|
|
414
|
+
72
|
|
415
|
+
73
|
|
416
|
+
74
|
|
417
|
+
75
|
|
418
|
+
76
|
|
419
|
+
77
|
|
420
|
+
78
|
|
421
|
+
79</pre>
|
|
422
|
+
</td>
|
|
423
|
+
<td>
|
|
424
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/section.rb', line 49</span>
|
|
425
|
+
|
|
426
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_build'>build</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
427
|
+
|
|
428
|
+
<span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='const'>Map</span><span class='period'>.</span><span class='id identifier rubyid_options'>options</span><span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
429
|
+
|
|
430
|
+
<span class='id identifier rubyid_shape'>shape</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_getopt'>getopt</span><span class='lparen'>(</span><span class='symbol'>:shape</span><span class='rparen'>)</span>
|
|
431
|
+
<span class='id identifier rubyid_origin'>origin</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_getopt'>getopt</span><span class='lparen'>(</span><span class='symbol'>:origin</span><span class='rparen'>)</span>
|
|
432
|
+
<span class='id identifier rubyid_size'>size</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_getopt'>getopt</span><span class='lparen'>(</span><span class='symbol'>:size</span><span class='rparen'>)</span>
|
|
433
|
+
<span class='id identifier rubyid_stride'>stride</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_getopt'>getopt</span><span class='lparen'>(</span><span class='symbol'>:stride</span><span class='rparen'>)</span>
|
|
434
|
+
<span class='id identifier rubyid_range'>range</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_getopt'>getopt</span><span class='lparen'>(</span><span class='symbol'>:range</span><span class='rparen'>)</span>
|
|
435
|
+
<span class='id identifier rubyid_section'>section</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_getopt'>getopt</span><span class='lparen'>(</span><span class='symbol'>:section</span><span class='rparen'>)</span>
|
|
436
|
+
<span class='id identifier rubyid_spec'>spec</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_getopt'>getopt</span><span class='lparen'>(</span><span class='symbol'>:spec</span><span class='rparen'>)</span>
|
|
437
|
+
|
|
438
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_spec'>spec</span><span class='rparen'>)</span>
|
|
439
|
+
<span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='const'>Java</span><span class='op'>::</span><span class='const'>UcarMa2</span><span class='op'>::</span><span class='const'>Section</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_spec'>spec</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
440
|
+
<span class='kw'>elsif</span> <span class='lparen'>(</span><span class='id identifier rubyid_shape'>shape</span><span class='rparen'>)</span>
|
|
441
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_origin'>origin</span><span class='rparen'>)</span>
|
|
442
|
+
<span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='const'>Java</span><span class='op'>::</span><span class='const'>UcarMa2</span><span class='op'>::</span><span class='const'>Section</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_origin'>origin</span><span class='period'>.</span><span class='id identifier rubyid_to_java'>to_java</span><span class='lparen'>(</span><span class='symbol'>:int</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_shape'>shape</span><span class='period'>.</span><span class='id identifier rubyid_to_java'>to_java</span><span class='lparen'>(</span><span class='symbol'>:int</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
443
|
+
<span class='kw'>else</span>
|
|
444
|
+
<span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='const'>Java</span><span class='op'>::</span><span class='const'>UcarMa2</span><span class='op'>::</span><span class='const'>Section</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_shape'>shape</span><span class='period'>.</span><span class='id identifier rubyid_to_java'>to_java</span><span class='lparen'>(</span><span class='symbol'>:int</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
445
|
+
<span class='kw'>end</span>
|
|
446
|
+
<span class='kw'>elsif</span> <span class='lparen'>(</span><span class='id identifier rubyid_origin'>origin</span><span class='rparen'>)</span>
|
|
447
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='op'>!</span><span class='id identifier rubyid_size'>size</span> <span class='op'>||</span> <span class='op'>!</span><span class='id identifier rubyid_stride'>stride</span><span class='rparen'>)</span>
|
|
448
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Invalid section definition, size and stride are required</span><span class='tstring_end'>"</span></span>
|
|
449
|
+
<span class='kw'>end</span>
|
|
450
|
+
<span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='const'>Java</span><span class='op'>::</span><span class='const'>UcarMa2</span><span class='op'>::</span><span class='const'>Section</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_origin'>origin</span><span class='period'>.</span><span class='id identifier rubyid_to_java'>to_java</span><span class='lparen'>(</span><span class='symbol'>:int</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_size'>size</span><span class='period'>.</span><span class='id identifier rubyid_to_java'>to_java</span><span class='lparen'>(</span><span class='symbol'>:int</span><span class='rparen'>)</span><span class='comma'>,</span>
|
|
451
|
+
<span class='id identifier rubyid_stride'>stride</span><span class='period'>.</span><span class='id identifier rubyid_to_java'>to_java</span><span class='lparen'>(</span><span class='symbol'>:int</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
452
|
+
<span class='kw'>elsif</span> <span class='lparen'>(</span><span class='id identifier rubyid_range'>range</span><span class='rparen'>)</span>
|
|
453
|
+
<span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='const'>Java</span><span class='op'>::</span><span class='const'>UcarMa2</span><span class='op'>::</span><span class='const'>Section</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_range'>range</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
454
|
+
<span class='kw'>end</span>
|
|
455
|
+
|
|
456
|
+
<span class='kw'>end</span></pre>
|
|
457
|
+
</td>
|
|
458
|
+
</tr>
|
|
459
|
+
</table>
|
|
460
|
+
</div>
|
|
461
|
+
|
|
462
|
+
</div>
|
|
463
|
+
|
|
464
|
+
<div id="instance_method_details" class="method_details_list">
|
|
465
|
+
<h2>Instance Method Details</h2>
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
<div class="method_details first">
|
|
469
|
+
<h3 class="signature first" id="print-instance_method">
|
|
470
|
+
|
|
471
|
+
- (<tt>Object</tt>) <strong>print</strong>
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
</h3><div class="docstring">
|
|
478
|
+
<div class="discussion">
|
|
479
|
+
<hr>
|
|
480
|
+
<hr>
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
</div>
|
|
484
|
+
</div>
|
|
485
|
+
<div class="tags">
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
</div><table class="source_code">
|
|
489
|
+
<tr>
|
|
490
|
+
<td>
|
|
491
|
+
<pre class="lines">
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
85
|
|
495
|
+
86
|
|
496
|
+
87</pre>
|
|
497
|
+
</td>
|
|
498
|
+
<td>
|
|
499
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/section.rb', line 85</span>
|
|
500
|
+
|
|
501
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_print'>print</span>
|
|
502
|
+
<span class='id identifier rubyid_p'>p</span> <span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_toString'>toString</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
|
503
|
+
<span class='kw'>end</span></pre>
|
|
504
|
+
</td>
|
|
505
|
+
</tr>
|
|
506
|
+
</table>
|
|
507
|
+
</div>
|
|
508
|
+
|
|
509
|
+
<div class="method_details ">
|
|
510
|
+
<h3 class="signature " id="to_s-instance_method">
|
|
511
|
+
|
|
512
|
+
- (<tt>Object</tt>) <strong>to_s</strong>
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
</h3><div class="docstring">
|
|
519
|
+
<div class="discussion">
|
|
520
|
+
<hr>
|
|
521
|
+
<hr>
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
</div>
|
|
525
|
+
</div>
|
|
526
|
+
<div class="tags">
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
</div><table class="source_code">
|
|
530
|
+
<tr>
|
|
531
|
+
<td>
|
|
532
|
+
<pre class="lines">
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
93
|
|
536
|
+
94
|
|
537
|
+
95</pre>
|
|
538
|
+
</td>
|
|
539
|
+
<td>
|
|
540
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/section.rb', line 93</span>
|
|
541
|
+
|
|
542
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
|
|
543
|
+
<span class='ivar'>@netcdf_elmt</span><span class='period'>.</span><span class='id identifier rubyid_toString'>toString</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
|
544
|
+
<span class='kw'>end</span></pre>
|
|
545
|
+
</td>
|
|
546
|
+
</tr>
|
|
547
|
+
</table>
|
|
548
|
+
</div>
|
|
549
|
+
|
|
550
|
+
</div>
|
|
551
|
+
|
|
552
|
+
</div>
|
|
553
|
+
|
|
554
|
+
<div id="footer">
|
|
555
|
+
Generated on Tue Jul 14 18:09:12 2015 by
|
|
556
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
557
|
+
0.8.7.6 (ruby-1.9.3).
|
|
558
|
+
</div>
|
|
559
|
+
|
|
560
|
+
</body>
|
|
561
|
+
</html>
|