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
|
@@ -0,0 +1,990 @@
|
|
|
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: LazyMDArray
|
|
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#!LazyMDArray.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 (L)</a> »
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
<span class="title">LazyMDArray</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: LazyMDArray
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</h1>
|
|
71
|
+
|
|
72
|
+
<dl class="box">
|
|
73
|
+
|
|
74
|
+
<dt class="r1">Inherits:</dt>
|
|
75
|
+
<dd class="r1">
|
|
76
|
+
<span class="inheritName"><span class='object_link'><a href="ByteMDArray.html" title="ByteMDArray (class)">ByteMDArray</a></span></span>
|
|
77
|
+
|
|
78
|
+
<ul class="fullTree">
|
|
79
|
+
<li>Object</li>
|
|
80
|
+
|
|
81
|
+
<li class="next"><span class='object_link'><a href="MDArray.html" title="MDArray (class)">MDArray</a></span></li>
|
|
82
|
+
|
|
83
|
+
<li class="next"><span class='object_link'><a href="NumericalMDArray.html" title="NumericalMDArray (class)">NumericalMDArray</a></span></li>
|
|
84
|
+
|
|
85
|
+
<li class="next"><span class='object_link'><a href="DoubleMDArray.html" title="DoubleMDArray (class)">DoubleMDArray</a></span></li>
|
|
86
|
+
|
|
87
|
+
<li class="next"><span class='object_link'><a href="FloatMDArray.html" title="FloatMDArray (class)">FloatMDArray</a></span></li>
|
|
88
|
+
|
|
89
|
+
<li class="next"><span class='object_link'><a href="LongMDArray.html" title="LongMDArray (class)">LongMDArray</a></span></li>
|
|
90
|
+
|
|
91
|
+
<li class="next"><span class='object_link'><a href="IntMDArray.html" title="IntMDArray (class)">IntMDArray</a></span></li>
|
|
92
|
+
|
|
93
|
+
<li class="next"><span class='object_link'><a href="ShortMDArray.html" title="ShortMDArray (class)">ShortMDArray</a></span></li>
|
|
94
|
+
|
|
95
|
+
<li class="next"><span class='object_link'><a href="ByteMDArray.html" title="ByteMDArray (class)">ByteMDArray</a></span></li>
|
|
96
|
+
|
|
97
|
+
<li class="next">LazyMDArray</li>
|
|
98
|
+
|
|
99
|
+
</ul>
|
|
100
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
101
|
+
|
|
102
|
+
</dd>
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
<dt class="r2 last">Defined in:</dt>
|
|
113
|
+
<dd class="r2 last">lib/mdarray/lazy_mdarray.rb</dd>
|
|
114
|
+
|
|
115
|
+
</dl>
|
|
116
|
+
<div class="clear"></div>
|
|
117
|
+
|
|
118
|
+
<h2>Defined Under Namespace</h2>
|
|
119
|
+
<p class="children">
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="LazyMDArray/BinaryComp.html" title="LazyMDArray::BinaryComp (class)">BinaryComp</a></span>, <span class='object_link'><a href="LazyMDArray/UnaryComp.html" title="LazyMDArray::UnaryComp (class)">UnaryComp</a></span>
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
</p>
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
|
133
|
+
<ul class="summary">
|
|
134
|
+
|
|
135
|
+
<li class="public ">
|
|
136
|
+
<span class="summary_signature">
|
|
137
|
+
|
|
138
|
+
<a href="#stack-instance_method" title="#stack (instance method)">- (Object) <strong>stack</strong> </a>
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
</span>
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
<span class="note title readonly">readonly</span>
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
<span class="summary_desc"><div class='inline'>
|
|
158
|
+
<p>Returns the value of attribute stack.</p>
|
|
159
|
+
</div></span>
|
|
160
|
+
|
|
161
|
+
</li>
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
</ul>
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="DoubleMDArray.html" title="DoubleMDArray (class)">DoubleMDArray</a></span></h3>
|
|
171
|
+
<p class="inherited"><span class='object_link'><a href="DoubleMDArray.html#stat_list-instance_method" title="DoubleMDArray#stat_list (method)">#stat_list</a></span></p>
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="MDArray.html" title="MDArray (class)">MDArray</a></span></h3>
|
|
176
|
+
<p class="inherited"><span class='object_link'><a href="MDArray.html#binary_operator-instance_method" title="MDArray#binary_operator (method)">#binary_operator</a></span>, <span class='object_link'><a href="MDArray.html#coerced-instance_method" title="MDArray#coerced (method)">#coerced</a></span>, <span class='object_link'><a href="MDArray.html#float_output_precision%3D-instance_method" title="MDArray#float_output_precision= (method)">#float_output_precision</a></span>, <span class='object_link'><a href="MDArray.html#float_output_suppress_small%3D-instance_method" title="MDArray#float_output_suppress_small= (method)">#float_output_suppress_small</a></span>, <span class='object_link'><a href="MDArray.html#formatter%3D-instance_method" title="MDArray#formatter= (method)">#formatter</a></span>, <span class='object_link'><a href="MDArray.html#id-instance_method" title="MDArray#id (method)">#id</a></span>, <span class='object_link'><a href="MDArray.html#inf_str%3D-instance_method" title="MDArray#inf_str= (method)">#inf_str</a></span>, <span class='object_link'><a href="MDArray.html#int_output_size%3D-instance_method" title="MDArray#int_output_size= (method)">#int_output_size</a></span>, <span class='object_link'><a href="MDArray.html#local_index-instance_method" title="MDArray#local_index (method)">#local_index</a></span>, <span class='object_link'><a href="MDArray.html#local_iterator-instance_method" title="MDArray#local_iterator (method)">#local_iterator</a></span>, <span class='object_link'><a href="MDArray.html#max_line_width%3D-instance_method" title="MDArray#max_line_width= (method)">#max_line_width</a></span>, <span class='object_link'><a href="MDArray.html#nan_str%3D-instance_method" title="MDArray#nan_str= (method)">#nan_str</a></span>, <span class='object_link'><a href="MDArray.html#nc_array-instance_method" title="MDArray#nc_array (method)">#nc_array</a></span>, <span class='object_link'><a href="MDArray.html#prefix%3D-instance_method" title="MDArray#prefix= (method)">#prefix</a></span>, <span class='object_link'><a href="MDArray.html#separator%3D-instance_method" title="MDArray#separator= (method)">#separator</a></span>, <span class='object_link'><a href="MDArray.html#summary_edge_items%3D-instance_method" title="MDArray#summary_edge_items= (method)">#summary_edge_items</a></span>, <span class='object_link'><a href="MDArray.html#summary_threshold%3D-instance_method" title="MDArray#summary_threshold= (method)">#summary_threshold</a></span>, <span class='object_link'><a href="MDArray.html#type-instance_method" title="MDArray#type (method)">#type</a></span>, <span class='object_link'><a href="MDArray.html#unary_operator-instance_method" title="MDArray#unary_operator (method)">#unary_operator</a></span></p>
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
<h2>
|
|
181
|
+
Instance Method Summary
|
|
182
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
183
|
+
</h2>
|
|
184
|
+
|
|
185
|
+
<ul class="summary">
|
|
186
|
+
|
|
187
|
+
<li class="public ">
|
|
188
|
+
<span class="summary_signature">
|
|
189
|
+
|
|
190
|
+
<a href="#apply-instance_method" title="#apply (instance method)">- (Object) <strong>apply</strong>(*args) </a>
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
(also: #[])
|
|
195
|
+
|
|
196
|
+
</span>
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
<span class="summary_desc"><div class='inline'>
|
|
207
|
+
<p>---------------------------------------------------------------------------------------.</p>
|
|
208
|
+
</div></span>
|
|
209
|
+
|
|
210
|
+
</li>
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
<li class="public ">
|
|
214
|
+
<span class="summary_signature">
|
|
215
|
+
|
|
216
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (LazyMDArray) <strong>initialize</strong> </a>
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
</span>
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
<span class="note title constructor">constructor</span>
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
<span class="summary_desc"><div class='inline'>
|
|
233
|
+
<p>---------------------------------------------------------------------------------------.</p>
|
|
234
|
+
</div></span>
|
|
235
|
+
|
|
236
|
+
</li>
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
<li class="public ">
|
|
240
|
+
<span class="summary_signature">
|
|
241
|
+
|
|
242
|
+
<a href="#pop-instance_method" title="#pop (instance method)">- (Object) <strong>pop</strong> </a>
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
</span>
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
<span class="summary_desc"><div class='inline'>
|
|
257
|
+
<p>---------------------------------------------------------------------------------------.</p>
|
|
258
|
+
</div></span>
|
|
259
|
+
|
|
260
|
+
</li>
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
<li class="public ">
|
|
264
|
+
<span class="summary_signature">
|
|
265
|
+
|
|
266
|
+
<a href="#print-instance_method" title="#print (instance method)">- (Object) <strong>print</strong> </a>
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
</span>
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
<span class="summary_desc"><div class='inline'>
|
|
281
|
+
<p>---------------------------------------------------------------------------------------.</p>
|
|
282
|
+
</div></span>
|
|
283
|
+
|
|
284
|
+
</li>
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
<li class="public ">
|
|
288
|
+
<span class="summary_signature">
|
|
289
|
+
|
|
290
|
+
<a href="#push-instance_method" title="#push (instance method)">- (Object) <strong>push</strong>(elmt) </a>
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
</span>
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
<span class="summary_desc"><div class='inline'>
|
|
305
|
+
<p>---------------------------------------------------------------------------------------.</p>
|
|
306
|
+
</div></span>
|
|
307
|
+
|
|
308
|
+
</li>
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
<li class="public ">
|
|
312
|
+
<span class="summary_signature">
|
|
313
|
+
|
|
314
|
+
<a href="#rpn-instance_method" title="#rpn (instance method)">- (Object) <strong>rpn</strong>(nl = true) </a>
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
</span>
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
<span class="summary_desc"><div class='inline'>
|
|
329
|
+
<p>---------------------------------------------------------------------------------------
|
|
330
|
+
Shows this LazyMDArray in Reverse Polish Notation.</p>
|
|
331
|
+
</div></span>
|
|
332
|
+
|
|
333
|
+
</li>
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
<li class="public ">
|
|
337
|
+
<span class="summary_signature">
|
|
338
|
+
|
|
339
|
+
<a href="#test_janino_function-instance_method" title="#test_janino_function (instance method)">- (Object) <strong>test_janino_function</strong> </a>
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
</span>
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
<span class="summary_desc"><div class='inline'>
|
|
354
|
+
<p>---------------------------------------------------------------------------------------.</p>
|
|
355
|
+
</div></span>
|
|
356
|
+
|
|
357
|
+
</li>
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
</ul>
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="CernIntFunctions.html" title="CernIntFunctions (module)">CernIntFunctions</a></span></h3>
|
|
391
|
+
<p class="inherited"><span class='object_link'><a href="CernIntFunctions.html#register-class_method" title="CernIntFunctions.register (method)">register</a></span></p>
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="CernFunctions.html" title="CernFunctions (module)">CernFunctions</a></span></h3>
|
|
402
|
+
<p class="inherited"><span class='object_link'><a href="CernFunctions.html#cern_binary_function-instance_method" title="CernFunctions#cern_binary_function (method)">#cern_binary_function</a></span>, <span class='object_link'><a href="CernFunctions.html#cern_comparison_function-instance_method" title="CernFunctions#cern_comparison_function (method)">#cern_comparison_function</a></span>, <span class='object_link'><a href="CernFunctions.html#cern_unary_function-instance_method" title="CernFunctions#cern_unary_function (method)">#cern_unary_function</a></span>, <span class='object_link'><a href="CernFunctions.html#make_binary_operator-instance_method" title="CernFunctions#make_binary_operator (method)">#make_binary_operator</a></span>, <span class='object_link'><a href="CernFunctions.html#make_binary_operators-instance_method" title="CernFunctions#make_binary_operators (method)">#make_binary_operators</a></span>, <span class='object_link'><a href="CernFunctions.html#make_comparison_operator-instance_method" title="CernFunctions#make_comparison_operator (method)">#make_comparison_operator</a></span>, <span class='object_link'><a href="CernFunctions.html#make_unary_operator-instance_method" title="CernFunctions#make_unary_operator (method)">#make_unary_operator</a></span>, <span class='object_link'><a href="CernFunctions.html#make_unary_operators-instance_method" title="CernFunctions#make_unary_operators (method)">#make_unary_operators</a></span></p>
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="FunctionCreation.html" title="FunctionCreation (module)">FunctionCreation</a></span></h3>
|
|
413
|
+
<p class="inherited"><span class='object_link'><a href="FunctionCreation.html#make_binary_op-instance_method" title="FunctionCreation#make_binary_op (method)">#make_binary_op</a></span>, <span class='object_link'><a href="FunctionCreation.html#make_unary_op-instance_method" title="FunctionCreation#make_unary_op (method)">#make_unary_op</a></span></p>
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="CernLongFunctions.html" title="CernLongFunctions (module)">CernLongFunctions</a></span></h3>
|
|
430
|
+
<p class="inherited"><span class='object_link'><a href="CernLongFunctions.html#register-class_method" title="CernLongFunctions.register (method)">register</a></span></p>
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="RubyFunctions.html" title="RubyFunctions (module)">RubyFunctions</a></span></h3>
|
|
447
|
+
<p class="inherited"><span class='object_link'><a href="RubyFunctions.html#make_binary_operator-instance_method" title="RubyFunctions#make_binary_operator (method)">#make_binary_operator</a></span>, <span class='object_link'><a href="RubyFunctions.html#make_binary_operators-instance_method" title="RubyFunctions#make_binary_operators (method)">#make_binary_operators</a></span>, <span class='object_link'><a href="RubyFunctions.html#make_comparison_operator-instance_method" title="RubyFunctions#make_comparison_operator (method)">#make_comparison_operator</a></span>, <span class='object_link'><a href="RubyFunctions.html#make_unary_operator-instance_method" title="RubyFunctions#make_unary_operator (method)">#make_unary_operator</a></span>, <span class='object_link'><a href="RubyFunctions.html#make_unary_operators-instance_method" title="RubyFunctions#make_unary_operators (method)">#make_unary_operators</a></span>, <span class='object_link'><a href="RubyFunctions.html#ruby_binary_function-instance_method" title="RubyFunctions#ruby_binary_function (method)">#ruby_binary_function</a></span>, <span class='object_link'><a href="RubyFunctions.html#ruby_unary_function-instance_method" title="RubyFunctions#ruby_unary_function (method)">#ruby_unary_function</a></span></p>
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="CernFloatFunctions.html" title="CernFloatFunctions (module)">CernFloatFunctions</a></span></h3>
|
|
464
|
+
<p class="inherited"><span class='object_link'><a href="CernFloatFunctions.html#register-class_method" title="CernFloatFunctions.register (method)">register</a></span></p>
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="DoubleMDArray.html" title="DoubleMDArray (class)">DoubleMDArray</a></span></h3>
|
|
475
|
+
<p class="inherited"><span class='object_link'><a href="DoubleMDArray.html#reset_statistics-instance_method" title="DoubleMDArray#reset_statistics (method)">#reset_statistics</a></span></p>
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="CernDoubleFunctions.html" title="CernDoubleFunctions (module)">CernDoubleFunctions</a></span></h3>
|
|
486
|
+
<p class="inherited"><span class='object_link'><a href="CernDoubleFunctions.html#register-class_method" title="CernDoubleFunctions.register (method)">register</a></span></p>
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="NumericalMDArray.html" title="NumericalMDArray (class)">NumericalMDArray</a></span></h3>
|
|
503
|
+
<p class="inherited"><span class='object_link'><a href="NumericalMDArray.html#coerce-instance_method" title="NumericalMDArray#coerce (method)">#coerce</a></span></p>
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="NumericFunctions.html" title="NumericFunctions (module)">NumericFunctions</a></span></h3>
|
|
520
|
+
<p class="inherited"><span class='object_link'><a href="NumericFunctions.html#fast_add-instance_method" title="NumericFunctions#fast_add (method)">#fast_add</a></span>, <span class='object_link'><a href="NumericFunctions.html#zero%3F-instance_method" title="NumericFunctions#zero? (method)">#zero?</a></span></p>
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="MDArray.html" title="MDArray (class)">MDArray</a></span></h3>
|
|
537
|
+
<p class="inherited"><span class='object_link'><a href="MDArray.html#%5B%5D%3D-instance_method" title="MDArray#[]= (method)">#[]=</a></span>, <span class='object_link'><a href="MDArray.html#apply_over_axes-instance_method" title="MDArray#apply_over_axes (method)">#apply_over_axes</a></span>, <span class='object_link'><a href="MDArray.html#arange-class_method" title="MDArray.arange (method)">arange</a></span>, <span class='object_link'><a href="MDArray.html#boolean-class_method" title="MDArray.boolean (method)">boolean</a></span>, <span class='object_link'><a href="MDArray.html#build-class_method" title="MDArray.build (method)">build</a></span>, <span class='object_link'><a href="MDArray.html#build_from_nc_array-class_method" title="MDArray.build_from_nc_array (method)">build_from_nc_array</a></span>, <span class='object_link'><a href="MDArray.html#byte-class_method" title="MDArray.byte (method)">byte</a></span>, <span class='object_link'><a href="MDArray.html#calc_value-class_method" title="MDArray.calc_value (method)">calc_value</a></span>, <span class='object_link'><a href="MDArray.html#char-class_method" title="MDArray.char (method)">char</a></span>, <span class='object_link'><a href="MDArray.html#compatible-instance_method" title="MDArray#compatible (method)">#compatible</a></span>, <span class='object_link'><a href="MDArray.html#copy-instance_method" title="MDArray#copy (method)">#copy</a></span>, <span class='object_link'><a href="MDArray.html#csv1d-instance_method" title="MDArray#csv1d (method)">#csv1d</a></span>, <span class='object_link'><a href="MDArray.html#double-class_method" title="MDArray.double (method)">double</a></span>, <span class='object_link'><a href="MDArray.html#dtype-instance_method" title="MDArray#dtype (method)">#dtype</a></span>, <span class='object_link'><a href="MDArray.html#each-instance_method" title="MDArray#each (method)">#each</a></span>, <span class='object_link'><a href="MDArray.html#each_cont-instance_method" title="MDArray#each_cont (method)">#each_cont</a></span>, <span class='object_link'><a href="MDArray.html#each_slice-instance_method" title="MDArray#each_slice (method)">#each_slice</a></span>, <span class='object_link'><a href="MDArray.html#each_with_counter-instance_method" title="MDArray#each_with_counter (method)">#each_with_counter</a></span>, <span class='object_link'><a href="MDArray.html#flip-instance_method" title="MDArray#flip (method)">#flip</a></span>, <span class='object_link'><a href="MDArray.html#float-class_method" title="MDArray.float (method)">float</a></span>, <span class='object_link'><a href="MDArray.html#from_jstorage-class_method" title="MDArray.from_jstorage (method)">from_jstorage</a></span>, <span class='object_link'><a href="MDArray.html#fromfunction-class_method" title="MDArray.fromfunction (method)">fromfunction</a></span>, <span class='object_link'><a href="MDArray.html#function_map_to_csv-class_method" title="MDArray.function_map_to_csv (method)">function_map_to_csv</a></span>, <span class='object_link'><a href="MDArray.html#get-instance_method" title="MDArray#get (method)">#get</a></span>, <span class='object_link'><a href="MDArray.html#get_as-instance_method" title="MDArray#get_as (method)">#get_as</a></span>, <span class='object_link'><a href="MDArray.html#get_binary_op-instance_method" title="MDArray#get_binary_op (method)">#get_binary_op</a></span>, <span class='object_link'><a href="MDArray.html#get_counter-instance_method" title="MDArray#get_counter (method)">#get_counter</a></span>, <span class='object_link'><a href="MDArray.html#get_current_index-instance_method" title="MDArray#get_current_index (method)">#get_current_index</a></span>, <span class='object_link'><a href="MDArray.html#get_element_type-instance_method" title="MDArray#get_element_type (method)">#get_element_type</a></span>, <span class='object_link'><a href="MDArray.html#get_index-instance_method" title="MDArray#get_index (method)">#get_index</a></span>, <span class='object_link'><a href="MDArray.html#get_iterator_fast-instance_method" title="MDArray#get_iterator_fast (method)">#get_iterator_fast</a></span>, <span class='object_link'><a href="MDArray.html#get_next-instance_method" title="MDArray#get_next (method)">#get_next</a></span>, <span class='object_link'><a href="MDArray.html#get_rank-instance_method" title="MDArray#get_rank (method)">#get_rank</a></span>, <span class='object_link'><a href="MDArray.html#get_scalar-instance_method" title="MDArray#get_scalar (method)">#get_scalar</a></span>, <span class='object_link'><a href="MDArray.html#get_shape-instance_method" title="MDArray#get_shape (method)">#get_shape</a></span>, <span class='object_link'><a href="MDArray.html#get_size-instance_method" title="MDArray#get_size (method)">#get_size</a></span>, <span class='object_link'><a href="MDArray.html#get_unary_op-instance_method" title="MDArray#get_unary_op (method)">#get_unary_op</a></span>, <span class='object_link'><a href="MDArray.html#immutable-instance_method" title="MDArray#immutable (method)">#immutable</a></span>, <span class='object_link'><a href="MDArray.html#init_with-class_method" title="MDArray.init_with (method)">init_with</a></span>, <span class='object_link'><a href="MDArray.html#int-class_method" title="MDArray.int (method)">int</a></span>, <span class='object_link'><a href="MDArray.html#jget-instance_method" title="MDArray#jget (method)">#jget</a></span>, <span class='object_link'><a href="MDArray.html#lazy%3D-class_method" title="MDArray.lazy= (method)">lazy=</a></span>, <span class='object_link'><a href="MDArray.html#linspace-class_method" title="MDArray.linspace (method)">linspace</a></span>, <span class='object_link'><a href="MDArray.html#long-class_method" title="MDArray.long (method)">long</a></span>, <span class='object_link'><a href="MDArray.html#make_binary_op-class_method" title="MDArray.make_binary_op (method)">make_binary_op</a></span>, <span class='object_link'><a href="MDArray.html#make_unary_op-class_method" title="MDArray.make_unary_op (method)">make_unary_op</a></span>, <span class='object_link'><a href="MDArray.html#ndenumerate-instance_method" title="MDArray#ndenumerate (method)">#ndenumerate</a></span>, <span class='object_link'><a href="MDArray.html#ndim-instance_method" title="MDArray#ndim (method)">#ndim</a></span>, <span class='object_link'><a href="MDArray.html#next-instance_method" title="MDArray#next (method)">#next</a></span>, <span class='object_link'><a href="MDArray.html#ones-class_method" title="MDArray.ones (method)">ones</a></span>, <span class='object_link'><a href="MDArray.html#permute-instance_method" title="MDArray#permute (method)">#permute</a></span>, <span class='object_link'><a href="MDArray.html#print0d-instance_method" title="MDArray#print0d (method)">#print0d</a></span>, <span class='object_link'><a href="MDArray.html#print1d-instance_method" title="MDArray#print1d (method)">#print1d</a></span>, <span class='object_link'><a href="MDArray.html#print_function_map-class_method" title="MDArray.print_function_map (method)">print_function_map</a></span>, <span class='object_link'><a href="MDArray.html#printing_defaults-instance_method" title="MDArray#printing_defaults (method)">#printing_defaults</a></span>, <span class='object_link'><a href="MDArray.html#rank-instance_method" title="MDArray#rank (method)">#rank</a></span>, <span class='object_link'><a href="MDArray.html#reduce-instance_method" title="MDArray#reduce (method)">#reduce</a></span>, <span class='object_link'><a href="MDArray.html#region-instance_method" title="MDArray#region (method)">#region</a></span>, <span class='object_link'><a href="MDArray.html#register_function-class_method" title="MDArray.register_function (method)">register_function</a></span>, <span class='object_link'><a href="MDArray.html#reset_traversal-instance_method" title="MDArray#reset_traversal (method)">#reset_traversal</a></span>, <span class='object_link'><a href="MDArray.html#reshape-instance_method" title="MDArray#reshape (method)">#reshape</a></span>, <span class='object_link'><a href="MDArray.html#reshape%21-instance_method" title="MDArray#reshape! (method)">#reshape!</a></span>, <span class='object_link'><a href="MDArray.html#rstring-class_method" title="MDArray.rstring (method)">rstring</a></span>, <span class='object_link'><a href="MDArray.html#section-instance_method" title="MDArray#section (method)">#section</a></span>, <span class='object_link'><a href="MDArray.html#section%3F-instance_method" title="MDArray#section? (method)">#section?</a></span>, <span class='object_link'><a href="MDArray.html#section_with_stride-instance_method" title="MDArray#section_with_stride (method)">#section_with_stride</a></span>, <span class='object_link'><a href="MDArray.html#select_function-class_method" title="MDArray.select_function (method)">select_function</a></span>, <span class='object_link'><a href="MDArray.html#set-instance_method" title="MDArray#set (method)">#set</a></span>, <span class='object_link'><a href="MDArray.html#set_lazy-class_method" title="MDArray.set_lazy (method)">set_lazy</a></span>, <span class='object_link'><a href="MDArray.html#set_next-instance_method" title="MDArray#set_next (method)">#set_next</a></span>, <span class='object_link'><a href="MDArray.html#set_scalar-instance_method" title="MDArray#set_scalar (method)">#set_scalar</a></span>, <span class='object_link'><a href="MDArray.html#shape-instance_method" title="MDArray#shape (method)">#shape</a></span>, <span class='object_link'><a href="MDArray.html#short-class_method" title="MDArray.short (method)">short</a></span>, <span class='object_link'><a href="MDArray.html#size-instance_method" title="MDArray#size (method)">#size</a></span>, <span class='object_link'><a href="MDArray.html#slice-instance_method" title="MDArray#slice (method)">#slice</a></span>, <span class='object_link'><a href="MDArray.html#string-class_method" title="MDArray.string (method)">string</a></span>, <span class='object_link'><a href="MDArray.html#structure-class_method" title="MDArray.structure (method)">structure</a></span>, <span class='object_link'><a href="MDArray.html#to_csv-instance_method" title="MDArray#to_csv (method)">#to_csv</a></span>, <span class='object_link'><a href="MDArray.html#to_s-instance_method" title="MDArray#to_s (method)">#to_s</a></span>, <span class='object_link'><a href="MDArray.html#to_string-instance_method" title="MDArray#to_string (method)">#to_string</a></span>, <span class='object_link'><a href="MDArray.html#transpose-instance_method" title="MDArray#transpose (method)">#transpose</a></span>, <span class='object_link'><a href="MDArray.html#typed_arange-class_method" title="MDArray.typed_arange (method)">typed_arange</a></span>, <span class='object_link'><a href="MDArray.html#upcast-class_method" title="MDArray.upcast (method)">upcast</a></span></p>
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
<div id="constructor_details" class="method_details_list">
|
|
546
|
+
<h2>Constructor Details</h2>
|
|
547
|
+
|
|
548
|
+
<div class="method_details first">
|
|
549
|
+
<h3 class="signature first" id="initialize-instance_method">
|
|
550
|
+
|
|
551
|
+
- (<tt><span class='object_link'><a href="" title="LazyMDArray (class)">LazyMDArray</a></span></tt>) <strong>initialize</strong>
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
</h3><div class="docstring">
|
|
558
|
+
<div class="discussion">
|
|
559
|
+
<hr>
|
|
560
|
+
<hr>
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
</div>
|
|
564
|
+
</div>
|
|
565
|
+
<div class="tags">
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
</div><table class="source_code">
|
|
569
|
+
<tr>
|
|
570
|
+
<td>
|
|
571
|
+
<pre class="lines">
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
82
|
|
575
|
+
83
|
|
576
|
+
84
|
|
577
|
+
85
|
|
578
|
+
86
|
|
579
|
+
87
|
|
580
|
+
88
|
|
581
|
+
89</pre>
|
|
582
|
+
</td>
|
|
583
|
+
<td>
|
|
584
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/lazy_mdarray.rb', line 82</span>
|
|
585
|
+
|
|
586
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
|
587
|
+
|
|
588
|
+
<span class='ivar'>@stack</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
|
589
|
+
<span class='ivar'>@type</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>lazy</span><span class='tstring_end'>"</span></span>
|
|
590
|
+
<span class='ivar'>@previous_binary_operator</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
|
591
|
+
<span class='ivar'>@previous_unary_operator</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
|
592
|
+
|
|
593
|
+
<span class='kw'>end</span></pre>
|
|
594
|
+
</td>
|
|
595
|
+
</tr>
|
|
596
|
+
</table>
|
|
597
|
+
</div>
|
|
598
|
+
|
|
599
|
+
</div>
|
|
600
|
+
|
|
601
|
+
<div id="instance_attr_details" class="attr_details">
|
|
602
|
+
<h2>Instance Attribute Details</h2>
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
<span id=""></span>
|
|
606
|
+
<div class="method_details first">
|
|
607
|
+
<h3 class="signature first" id="stack-instance_method">
|
|
608
|
+
|
|
609
|
+
- (<tt>Object</tt>) <strong>stack</strong> <span class="extras">(readonly)</span>
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
</h3><div class="docstring">
|
|
616
|
+
<div class="discussion">
|
|
617
|
+
|
|
618
|
+
<p>Returns the value of attribute stack</p>
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
</div>
|
|
622
|
+
</div>
|
|
623
|
+
<div class="tags">
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
</div><table class="source_code">
|
|
627
|
+
<tr>
|
|
628
|
+
<td>
|
|
629
|
+
<pre class="lines">
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
32
|
|
633
|
+
33
|
|
634
|
+
34</pre>
|
|
635
|
+
</td>
|
|
636
|
+
<td>
|
|
637
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/lazy_mdarray.rb', line 32</span>
|
|
638
|
+
|
|
639
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_stack'>stack</span>
|
|
640
|
+
<span class='ivar'>@stack</span>
|
|
641
|
+
<span class='kw'>end</span></pre>
|
|
642
|
+
</td>
|
|
643
|
+
</tr>
|
|
644
|
+
</table>
|
|
645
|
+
</div>
|
|
646
|
+
|
|
647
|
+
</div>
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
<div id="instance_method_details" class="method_details_list">
|
|
651
|
+
<h2>Instance Method Details</h2>
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
<div class="method_details first">
|
|
655
|
+
<h3 class="signature first" id="apply-instance_method">
|
|
656
|
+
|
|
657
|
+
- (<tt>Object</tt>) <strong>apply</strong>(*args)
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
<span class="aliases">Also known as:
|
|
662
|
+
<span class="names"><span id='[]-instance_method'>[]</span></span>
|
|
663
|
+
</span>
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
</h3><div class="docstring">
|
|
668
|
+
<div class="discussion">
|
|
669
|
+
<hr>
|
|
670
|
+
<hr>
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
</div>
|
|
674
|
+
</div>
|
|
675
|
+
<div class="tags">
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
</div><table class="source_code">
|
|
679
|
+
<tr>
|
|
680
|
+
<td>
|
|
681
|
+
<pre class="lines">
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
127
|
|
685
|
+
128
|
|
686
|
+
129
|
|
687
|
+
130
|
|
688
|
+
131
|
|
689
|
+
132
|
|
690
|
+
133
|
|
691
|
+
134
|
|
692
|
+
135
|
|
693
|
+
136</pre>
|
|
694
|
+
</td>
|
|
695
|
+
<td>
|
|
696
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/lazy_mdarray.rb', line 127</span>
|
|
697
|
+
|
|
698
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_apply'>apply</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
699
|
+
|
|
700
|
+
<span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_shape'>shape</span><span class='comma'>,</span> <span class='id identifier rubyid_function'>function</span> <span class='op'>=</span> <span class='id identifier rubyid_validate_fast'>validate_fast</span><span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
701
|
+
|
|
702
|
+
<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='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_shape'>shape</span><span class='rparen'>)</span>
|
|
703
|
+
<span class='id identifier rubyid_helper'>helper</span> <span class='op'>=</span> <span class='const'>Java</span><span class='op'>::</span><span class='const'>RbMdarrayLoopsLazy</span><span class='op'>::</span><span class='const'>DefaultLazyOperator</span>
|
|
704
|
+
<span class='id identifier rubyid_helper'>helper</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>apply</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_nc_array'>nc_array</span><span class='comma'>,</span> <span class='id identifier rubyid_function'>function</span><span class='rparen'>)</span>
|
|
705
|
+
<span class='id identifier rubyid_result'>result</span>
|
|
706
|
+
|
|
707
|
+
<span class='kw'>end</span></pre>
|
|
708
|
+
</td>
|
|
709
|
+
</tr>
|
|
710
|
+
</table>
|
|
711
|
+
</div>
|
|
712
|
+
|
|
713
|
+
<div class="method_details ">
|
|
714
|
+
<h3 class="signature " id="pop-instance_method">
|
|
715
|
+
|
|
716
|
+
- (<tt>Object</tt>) <strong>pop</strong>
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
</h3><div class="docstring">
|
|
723
|
+
<div class="discussion">
|
|
724
|
+
<hr>
|
|
725
|
+
<hr>
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
</div>
|
|
729
|
+
</div>
|
|
730
|
+
<div class="tags">
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
</div><table class="source_code">
|
|
734
|
+
<tr>
|
|
735
|
+
<td>
|
|
736
|
+
<pre class="lines">
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
103
|
|
740
|
+
104
|
|
741
|
+
105</pre>
|
|
742
|
+
</td>
|
|
743
|
+
<td>
|
|
744
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/lazy_mdarray.rb', line 103</span>
|
|
745
|
+
|
|
746
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_pop'>pop</span>
|
|
747
|
+
<span class='ivar'>@stack</span><span class='period'>.</span><span class='id identifier rubyid_pop'>pop</span>
|
|
748
|
+
<span class='kw'>end</span></pre>
|
|
749
|
+
</td>
|
|
750
|
+
</tr>
|
|
751
|
+
</table>
|
|
752
|
+
</div>
|
|
753
|
+
|
|
754
|
+
<div class="method_details ">
|
|
755
|
+
<h3 class="signature " id="print-instance_method">
|
|
756
|
+
|
|
757
|
+
- (<tt>Object</tt>) <strong>print</strong>
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
</h3><div class="docstring">
|
|
764
|
+
<div class="discussion">
|
|
765
|
+
<hr>
|
|
766
|
+
<hr>
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
</div>
|
|
770
|
+
</div>
|
|
771
|
+
<div class="tags">
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
</div><table class="source_code">
|
|
775
|
+
<tr>
|
|
776
|
+
<td>
|
|
777
|
+
<pre class="lines">
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
172
|
|
781
|
+
173
|
|
782
|
+
174
|
|
783
|
+
175</pre>
|
|
784
|
+
</td>
|
|
785
|
+
<td>
|
|
786
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/lazy_mdarray.rb', line 172</span>
|
|
787
|
+
|
|
788
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_print'>print</span>
|
|
789
|
+
<span class='const'>Kernel</span><span class='period'>.</span><span class='id identifier rubyid_print'>print</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>[Lazy MDArray]\n</span><span class='tstring_end'>"</span></span>
|
|
790
|
+
<span class='id identifier rubyid_p'>p</span> <span class='id identifier rubyid_rpn'>rpn</span>
|
|
791
|
+
<span class='kw'>end</span></pre>
|
|
792
|
+
</td>
|
|
793
|
+
</tr>
|
|
794
|
+
</table>
|
|
795
|
+
</div>
|
|
796
|
+
|
|
797
|
+
<div class="method_details ">
|
|
798
|
+
<h3 class="signature " id="push-instance_method">
|
|
799
|
+
|
|
800
|
+
- (<tt>Object</tt>) <strong>push</strong>(elmt)
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
</h3><div class="docstring">
|
|
807
|
+
<div class="discussion">
|
|
808
|
+
<hr>
|
|
809
|
+
<hr>
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
</div>
|
|
813
|
+
</div>
|
|
814
|
+
<div class="tags">
|
|
815
|
+
|
|
816
|
+
|
|
817
|
+
</div><table class="source_code">
|
|
818
|
+
<tr>
|
|
819
|
+
<td>
|
|
820
|
+
<pre class="lines">
|
|
821
|
+
|
|
822
|
+
|
|
823
|
+
95
|
|
824
|
+
96
|
|
825
|
+
97</pre>
|
|
826
|
+
</td>
|
|
827
|
+
<td>
|
|
828
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/lazy_mdarray.rb', line 95</span>
|
|
829
|
+
|
|
830
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='id identifier rubyid_elmt'>elmt</span><span class='rparen'>)</span>
|
|
831
|
+
<span class='ivar'>@stack</span> <span class='op'><<</span> <span class='id identifier rubyid_elmt'>elmt</span>
|
|
832
|
+
<span class='kw'>end</span></pre>
|
|
833
|
+
</td>
|
|
834
|
+
</tr>
|
|
835
|
+
</table>
|
|
836
|
+
</div>
|
|
837
|
+
|
|
838
|
+
<div class="method_details ">
|
|
839
|
+
<h3 class="signature " id="rpn-instance_method">
|
|
840
|
+
|
|
841
|
+
- (<tt>Object</tt>) <strong>rpn</strong>(nl = true)
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
</h3><div class="docstring">
|
|
848
|
+
<div class="discussion">
|
|
849
|
+
<hr>
|
|
850
|
+
|
|
851
|
+
<p>Shows this LazyMDArray in Reverse Polish Notation. Mainly for debugging
|
|
852
|
+
purposes.</p>
|
|
853
|
+
<hr>
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
</div>
|
|
857
|
+
</div>
|
|
858
|
+
<div class="tags">
|
|
859
|
+
|
|
860
|
+
|
|
861
|
+
</div><table class="source_code">
|
|
862
|
+
<tr>
|
|
863
|
+
<td>
|
|
864
|
+
<pre class="lines">
|
|
865
|
+
|
|
866
|
+
|
|
867
|
+
144
|
|
868
|
+
145
|
|
869
|
+
146
|
|
870
|
+
147
|
|
871
|
+
148
|
|
872
|
+
149
|
|
873
|
+
150
|
|
874
|
+
151
|
|
875
|
+
152
|
|
876
|
+
153
|
|
877
|
+
154
|
|
878
|
+
155
|
|
879
|
+
156
|
|
880
|
+
157
|
|
881
|
+
158
|
|
882
|
+
159
|
|
883
|
+
160
|
|
884
|
+
161
|
|
885
|
+
162
|
|
886
|
+
163
|
|
887
|
+
164
|
|
888
|
+
165
|
|
889
|
+
166</pre>
|
|
890
|
+
</td>
|
|
891
|
+
<td>
|
|
892
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/lazy_mdarray.rb', line 144</span>
|
|
893
|
+
|
|
894
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_rpn'>rpn</span><span class='lparen'>(</span><span class='id identifier rubyid_nl'>nl</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
|
895
|
+
|
|
896
|
+
<span class='id identifier rubyid_exp'>exp</span> <span class='op'>=</span> <span class='const'>String</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
|
897
|
+
|
|
898
|
+
<span class='ivar'>@stack</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_elmt'>elmt</span><span class='op'>|</span>
|
|
899
|
+
|
|
900
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_elmt'>elmt</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>LazyMDArray</span><span class='rparen'>)</span>
|
|
901
|
+
<span class='id identifier rubyid_exp'>exp</span> <span class='op'><<</span> <span class='id identifier rubyid_elmt'>elmt</span><span class='period'>.</span><span class='id identifier rubyid_rpn'>rpn</span><span class='lparen'>(</span><span class='kw'>false</span><span class='rparen'>)</span>
|
|
902
|
+
<span class='kw'>elsif</span> <span class='lparen'>(</span><span class='id identifier rubyid_elmt'>elmt</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Numeric</span><span class='rparen'>)</span>
|
|
903
|
+
<span class='id identifier rubyid_exp'>exp</span> <span class='op'><<</span> <span class='id identifier rubyid_elmt'>elmt</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> </span><span class='tstring_end'>"</span></span>
|
|
904
|
+
<span class='kw'>elsif</span> <span class='lparen'>(</span><span class='id identifier rubyid_elmt'>elmt</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Operator</span><span class='rparen'>)</span>
|
|
905
|
+
<span class='id identifier rubyid_exp'>exp</span> <span class='op'><<</span> <span class='id identifier rubyid_elmt'>elmt</span><span class='period'>.</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>
|
|
906
|
+
<span class='kw'>elsif</span> <span class='lparen'>(</span><span class='id identifier rubyid_elmt'>elmt</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>MDArray</span><span class='rparen'>)</span>
|
|
907
|
+
<span class='id identifier rubyid_exp'>exp</span> <span class='op'><<</span> <span class='id identifier rubyid_elmt'>elmt</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> </span><span class='tstring_end'>"</span></span>
|
|
908
|
+
<span class='kw'>else</span>
|
|
909
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Wrong element type in Array</span><span class='tstring_end'>"</span></span>
|
|
910
|
+
<span class='kw'>end</span>
|
|
911
|
+
|
|
912
|
+
<span class='kw'>end</span>
|
|
913
|
+
|
|
914
|
+
<span class='id identifier rubyid_exp'>exp</span>
|
|
915
|
+
|
|
916
|
+
<span class='kw'>end</span></pre>
|
|
917
|
+
</td>
|
|
918
|
+
</tr>
|
|
919
|
+
</table>
|
|
920
|
+
</div>
|
|
921
|
+
|
|
922
|
+
<div class="method_details ">
|
|
923
|
+
<h3 class="signature " id="test_janino_function-instance_method">
|
|
924
|
+
|
|
925
|
+
- (<tt>Object</tt>) <strong>test_janino_function</strong>
|
|
926
|
+
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
</h3><div class="docstring">
|
|
932
|
+
<div class="discussion">
|
|
933
|
+
<hr>
|
|
934
|
+
<hr>
|
|
935
|
+
|
|
936
|
+
|
|
937
|
+
</div>
|
|
938
|
+
</div>
|
|
939
|
+
<div class="tags">
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
</div><table class="source_code">
|
|
943
|
+
<tr>
|
|
944
|
+
<td>
|
|
945
|
+
<pre class="lines">
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
111
|
|
949
|
+
112
|
|
950
|
+
113
|
|
951
|
+
114
|
|
952
|
+
115
|
|
953
|
+
116
|
|
954
|
+
117
|
|
955
|
+
118
|
|
956
|
+
119
|
|
957
|
+
120
|
|
958
|
+
121</pre>
|
|
959
|
+
</td>
|
|
960
|
+
<td>
|
|
961
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/lazy_mdarray.rb', line 111</span>
|
|
962
|
+
|
|
963
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_test_janino_function'>test_janino_function</span>
|
|
964
|
+
<span class='gvar'>$exp</span> <span class='op'>=</span> <span class='const'>ExpressionEvaluator</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
|
965
|
+
<span class='gvar'>$exp</span><span class='period'>.</span><span class='id identifier rubyid_setExpressionType'>setExpressionType</span><span class='lparen'>(</span><span class='const'>Java</span><span class='op'>::</span><span class='const'>CernColtFunctionTdouble</span><span class='op'>::</span><span class='const'>DoubleFunction</span><span class='period'>.</span><span class='id identifier rubyid_java_class'>java_class</span><span class='rparen'>)</span>
|
|
966
|
+
<span class='id identifier rubyid_class_type'>class_type</span> <span class='op'>=</span> <span class='const'>Java</span><span class='op'>::</span><span class='const'>JavaLang</span><span class='op'>::</span><span class='const'>Class</span><span class='period'>.</span><span class='id identifier rubyid_forName'>forName</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>java.lang.Class</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
967
|
+
<span class='id identifier rubyid_array'>array</span> <span class='op'>=</span> <span class='const'>Java</span><span class='op'>::</span><span class='const'>JavaLangReflect</span><span class='op'>::</span><span class='const'>Array</span><span class='period'>.</span><span class='id identifier rubyid_newInstance'>newInstance</span><span class='lparen'>(</span><span class='id identifier rubyid_class_type'>class_type</span><span class='comma'>,</span> <span class='int'>2</span><span class='rparen'>)</span>
|
|
968
|
+
<span class='id identifier rubyid_array'>array</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'>Java</span><span class='op'>::</span><span class='id identifier rubyid_double'>double</span><span class='period'>.</span><span class='id identifier rubyid_java_class'>java_class</span>
|
|
969
|
+
<span class='id identifier rubyid_array'>array</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'>Java</span><span class='op'>::</span><span class='id identifier rubyid_double'>double</span><span class='period'>.</span><span class='id identifier rubyid_java_class'>java_class</span>
|
|
970
|
+
<span class='gvar'>$exp</span><span class='period'>.</span><span class='id identifier rubyid_setParameters'>setParameters</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>a</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>b</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_java'>to_java</span><span class='lparen'>(</span><span class='symbol'>:string</span><span class='rparen'>)</span><span class='comma'>,</span>
|
|
971
|
+
<span class='id identifier rubyid_array'>array</span><span class='rparen'>)</span>
|
|
972
|
+
<span class='gvar'>$exp</span><span class='period'>.</span><span class='id identifier rubyid_cook'>cook</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>a + b</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
973
|
+
<span class='kw'>end</span></pre>
|
|
974
|
+
</td>
|
|
975
|
+
</tr>
|
|
976
|
+
</table>
|
|
977
|
+
</div>
|
|
978
|
+
|
|
979
|
+
</div>
|
|
980
|
+
|
|
981
|
+
</div>
|
|
982
|
+
|
|
983
|
+
<div id="footer">
|
|
984
|
+
Generated on Tue Jul 14 18:09:09 2015 by
|
|
985
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
986
|
+
0.8.7.6 (ruby-1.9.3).
|
|
987
|
+
</div>
|
|
988
|
+
|
|
989
|
+
</body>
|
|
990
|
+
</html>
|