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,189 @@
|
|
|
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: RubyMath::Tanh
|
|
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#!RubyMath/Tanh.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 (T)</a> »
|
|
35
|
+
<span class='title'><span class='object_link'><a href="../RubyMath.html" title="RubyMath (module)">RubyMath</a></span></span>
|
|
36
|
+
»
|
|
37
|
+
<span class="title">Tanh</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: RubyMath::Tanh
|
|
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">RubyMath::Tanh</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/ruby_math.rb</dd>
|
|
98
|
+
|
|
99
|
+
</dl>
|
|
100
|
+
<div class="clear"></div>
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
<h2>
|
|
111
|
+
Class Method Summary
|
|
112
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
113
|
+
</h2>
|
|
114
|
+
|
|
115
|
+
<ul class="summary">
|
|
116
|
+
|
|
117
|
+
<li class="public ">
|
|
118
|
+
<span class="summary_signature">
|
|
119
|
+
|
|
120
|
+
<a href="#apply-class_method" title="apply (class method)">+ (Object) <strong>apply</strong>(val) </a>
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
</span>
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
135
|
+
|
|
136
|
+
</li>
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
</ul>
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
<div id="class_method_details" class="method_details_list">
|
|
145
|
+
<h2>Class Method Details</h2>
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
<div class="method_details first">
|
|
149
|
+
<h3 class="signature first" id="apply-class_method">
|
|
150
|
+
|
|
151
|
+
+ (<tt>Object</tt>) <strong>apply</strong>(val)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
</h3><table class="source_code">
|
|
158
|
+
<tr>
|
|
159
|
+
<td>
|
|
160
|
+
<pre class="lines">
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
148
|
|
164
|
+
149
|
|
165
|
+
150</pre>
|
|
166
|
+
</td>
|
|
167
|
+
<td>
|
|
168
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/ruby_math.rb', line 148</span>
|
|
169
|
+
|
|
170
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_apply'>apply</span><span class='lparen'>(</span><span class='id identifier rubyid_val'>val</span><span class='rparen'>)</span>
|
|
171
|
+
<span class='const'>Math</span><span class='period'>.</span><span class='id identifier rubyid_tanh'>tanh</span><span class='lparen'>(</span><span class='id identifier rubyid_val'>val</span><span class='rparen'>)</span>
|
|
172
|
+
<span class='kw'>end</span></pre>
|
|
173
|
+
</td>
|
|
174
|
+
</tr>
|
|
175
|
+
</table>
|
|
176
|
+
</div>
|
|
177
|
+
|
|
178
|
+
</div>
|
|
179
|
+
|
|
180
|
+
</div>
|
|
181
|
+
|
|
182
|
+
<div id="footer">
|
|
183
|
+
Generated on Tue Jul 14 18:09:11 2015 by
|
|
184
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
185
|
+
0.8.7.6 (ruby-1.9.3).
|
|
186
|
+
</div>
|
|
187
|
+
|
|
188
|
+
</body>
|
|
189
|
+
</html>
|
data/doc/RubyStats.html
CHANGED
|
@@ -6,18 +6,18 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Module: RubyStats
|
|
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#!RubyStats.html";
|
|
21
21
|
</script>
|
|
22
22
|
|
|
23
23
|
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
<h2>Method Summary</h2>
|
|
110
110
|
|
|
111
111
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="RubyFunctions.html" title="RubyFunctions (module)">RubyFunctions</a></span></h3>
|
|
112
|
-
<p class="inherited"><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>
|
|
112
|
+
<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>
|
|
113
113
|
|
|
114
114
|
|
|
115
115
|
|
|
@@ -120,15 +120,15 @@
|
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="FunctionCreation.html" title="FunctionCreation (module)">FunctionCreation</a></span></h3>
|
|
123
|
-
<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#
|
|
123
|
+
<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>
|
|
124
124
|
|
|
125
125
|
|
|
126
126
|
</div>
|
|
127
127
|
|
|
128
128
|
<div id="footer">
|
|
129
|
-
Generated on
|
|
129
|
+
Generated on Tue Jul 14 18:08:57 2015 by
|
|
130
130
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
131
|
-
0.8.
|
|
131
|
+
0.8.7.6 (ruby-1.9.3).
|
|
132
132
|
</div>
|
|
133
133
|
|
|
134
134
|
</body>
|
data/doc/RubyUnaryOperator.html
CHANGED
|
@@ -6,18 +6,18 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: RubyUnaryOperator
|
|
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#!RubyUnaryOperator.html";
|
|
21
21
|
</script>
|
|
22
22
|
|
|
23
23
|
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
<h2>Instance Attribute Summary</h2>
|
|
113
113
|
|
|
114
114
|
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Operator.html" title="Operator (class)">Operator</a></span></h3>
|
|
115
|
-
<p class="inherited"><span class='object_link'><a href="Operator.html#arity-instance_method" title="Operator#arity (method)">#arity</a></span>, <span class='object_link'><a href="Operator.html#exec_type-instance_method" title="Operator#exec_type (method)">#exec_type</a></span>, <span class='object_link'><a href="Operator.html#force_type-instance_method" title="Operator#force_type (method)">#force_type</a></span>, <span class='object_link'><a href="Operator.html#name-instance_method" title="Operator#name (method)">#name</a></span>, <span class='object_link'><a href="Operator.html#post_condition-instance_method" title="Operator#post_condition (method)">#post_condition</a></span>, <span class='object_link'><a href="Operator.html#pre_condition-instance_method" title="Operator#pre_condition (method)">#pre_condition</a></span>, <span class='object_link'><a href="Operator.html#type-instance_method" title="Operator#type (method)">#type</a></span></p>
|
|
115
|
+
<p class="inherited"><span class='object_link'><a href="Operator.html#arity-instance_method" title="Operator#arity (method)">#arity</a></span>, <span class='object_link'><a href="Operator.html#exec_type-instance_method" title="Operator#exec_type (method)">#exec_type</a></span>, <span class='object_link'><a href="Operator.html#fmap-instance_method" title="Operator#fmap (method)">#fmap</a></span>, <span class='object_link'><a href="Operator.html#force_type-instance_method" title="Operator#force_type (method)">#force_type</a></span>, <span class='object_link'><a href="Operator.html#helper-instance_method" title="Operator#helper (method)">#helper</a></span>, <span class='object_link'><a href="Operator.html#name-instance_method" title="Operator#name (method)">#name</a></span>, <span class='object_link'><a href="Operator.html#other_args-instance_method" title="Operator#other_args (method)">#other_args</a></span>, <span class='object_link'><a href="Operator.html#post_condition-instance_method" title="Operator#post_condition (method)">#post_condition</a></span>, <span class='object_link'><a href="Operator.html#pre_condition-instance_method" title="Operator#pre_condition (method)">#pre_condition</a></span>, <span class='object_link'><a href="Operator.html#type-instance_method" title="Operator#type (method)">#type</a></span></p>
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
|
|
142
142
|
|
|
143
143
|
<span class="summary_desc"><div class='inline'>
|
|
144
|
-
<p
|
|
144
|
+
<p>---------------------------------------------------------------------------------------.</p>
|
|
145
145
|
</div></span>
|
|
146
146
|
|
|
147
147
|
</li>
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
|
|
166
166
|
|
|
167
167
|
<span class="summary_desc"><div class='inline'>
|
|
168
|
-
<p
|
|
168
|
+
<p>---------------------------------------------------------------------------------------.</p>
|
|
169
169
|
</div></span>
|
|
170
170
|
|
|
171
171
|
</li>
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
|
|
190
190
|
|
|
191
191
|
<span class="summary_desc"><div class='inline'>
|
|
192
|
-
<p
|
|
192
|
+
<p>---------------------------------------------------------------------------------------.</p>
|
|
193
193
|
</div></span>
|
|
194
194
|
|
|
195
195
|
</li>
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
|
|
214
214
|
|
|
215
215
|
<span class="summary_desc"><div class='inline'>
|
|
216
|
-
<p
|
|
216
|
+
<p>---------------------------------------------------------------------------------------.</p>
|
|
217
217
|
</div></span>
|
|
218
218
|
|
|
219
219
|
</li>
|
|
@@ -267,8 +267,8 @@
|
|
|
267
267
|
|
|
268
268
|
</h3><div class="docstring">
|
|
269
269
|
<div class="discussion">
|
|
270
|
-
<hr
|
|
271
|
-
<hr
|
|
270
|
+
<hr>
|
|
271
|
+
<hr>
|
|
272
272
|
|
|
273
273
|
|
|
274
274
|
</div>
|
|
@@ -298,19 +298,18 @@
|
|
|
298
298
|
<td>
|
|
299
299
|
<pre class="code"><span class="info file"># File 'lib/mdarray/ruby_operators.rb', line 115</span>
|
|
300
300
|
|
|
301
|
-
<span class='
|
|
301
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_default'>default</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
302
302
|
|
|
303
|
-
<span class='
|
|
304
|
-
<span class='
|
|
305
|
-
<span class='
|
|
306
|
-
<span class='
|
|
307
|
-
<span class='
|
|
308
|
-
<span class='
|
|
309
|
-
<span class='
|
|
310
|
-
<span class='
|
|
303
|
+
<span class='id identifier rubyid_get_args'>get_args</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_op_iterator'>op_iterator</span><span class='comma'>,</span> <span class='id identifier rubyid_shape'>shape</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_other_args'>other_args</span><span class='op'>|</span>
|
|
304
|
+
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='const'>MDArray</span><span class='period'>.</span><span class='id identifier rubyid_build'>build</span><span class='lparen'>(</span><span class='ivar'>@type</span><span class='comma'>,</span> <span class='id identifier rubyid_shape'>shape</span><span class='rparen'>)</span>
|
|
305
|
+
<span class='id identifier rubyid_res_iterator'>res_iterator</span> <span class='op'>=</span> <span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_get_iterator_fast'>get_iterator_fast</span>
|
|
306
|
+
<span class='kw'>while</span> <span class='lparen'>(</span><span class='id identifier rubyid_res_iterator'>res_iterator</span><span class='period'>.</span><span class='id identifier rubyid_has_next?'>has_next?</span><span class='rparen'>)</span>
|
|
307
|
+
<span class='id identifier rubyid_res_iterator'>res_iterator</span><span class='period'>.</span><span class='id identifier rubyid_set_next'>set_next</span><span class='lparen'>(</span><span class='ivar'>@do_func</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_op_iterator'>op_iterator</span><span class='period'>.</span><span class='id identifier rubyid_get_next'>get_next</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
308
|
+
<span class='kw'>end</span>
|
|
309
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_result'>result</span>
|
|
310
|
+
<span class='kw'>end</span>
|
|
311
311
|
|
|
312
|
-
<span class='
|
|
313
|
-
</pre>
|
|
312
|
+
<span class='kw'>end</span></pre>
|
|
314
313
|
</td>
|
|
315
314
|
</tr>
|
|
316
315
|
</table>
|
|
@@ -327,8 +326,8 @@
|
|
|
327
326
|
|
|
328
327
|
</h3><div class="docstring">
|
|
329
328
|
<div class="discussion">
|
|
330
|
-
<hr
|
|
331
|
-
<hr
|
|
329
|
+
<hr>
|
|
330
|
+
<hr>
|
|
332
331
|
|
|
333
332
|
|
|
334
333
|
</div>
|
|
@@ -356,17 +355,16 @@
|
|
|
356
355
|
<td>
|
|
357
356
|
<pre class="code"><span class="info file"># File 'lib/mdarray/ruby_operators.rb', line 152</span>
|
|
358
357
|
|
|
359
|
-
<span class='
|
|
358
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_in_place'>in_place</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
360
359
|
|
|
361
|
-
<span class='
|
|
362
|
-
<span class='
|
|
363
|
-
<span class='
|
|
364
|
-
<span class='
|
|
365
|
-
<span class='
|
|
366
|
-
<span class='
|
|
360
|
+
<span class='id identifier rubyid_get_args'>get_args</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_op_iterator'>op_iterator</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_other_args'>other_args</span><span class='op'>|</span>
|
|
361
|
+
<span class='kw'>while</span> <span class='lparen'>(</span><span class='id identifier rubyid_op_iterator'>op_iterator</span><span class='period'>.</span><span class='id identifier rubyid_has_next?'>has_next?</span><span class='rparen'>)</span>
|
|
362
|
+
<span class='id identifier rubyid_op_iterator'>op_iterator</span><span class='period'>.</span><span class='id identifier rubyid_set_current'>set_current</span><span class='lparen'>(</span><span class='ivar'>@do_func</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_op_iterator'>op_iterator</span><span class='period'>.</span><span class='id identifier rubyid_get_next'>get_next</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
363
|
+
<span class='kw'>end</span>
|
|
364
|
+
<span class='kw'>return</span> <span class='kw'>self</span>
|
|
365
|
+
<span class='kw'>end</span>
|
|
367
366
|
|
|
368
|
-
<span class='
|
|
369
|
-
</pre>
|
|
367
|
+
<span class='kw'>end</span></pre>
|
|
370
368
|
</td>
|
|
371
369
|
</tr>
|
|
372
370
|
</table>
|
|
@@ -383,8 +381,8 @@
|
|
|
383
381
|
|
|
384
382
|
</h3><div class="docstring">
|
|
385
383
|
<div class="discussion">
|
|
386
|
-
<hr
|
|
387
|
-
<hr
|
|
384
|
+
<hr>
|
|
385
|
+
<hr>
|
|
388
386
|
|
|
389
387
|
|
|
390
388
|
</div>
|
|
@@ -413,18 +411,17 @@
|
|
|
413
411
|
<td>
|
|
414
412
|
<pre class="code"><span class="info file"># File 'lib/mdarray/ruby_operators.rb', line 167</span>
|
|
415
413
|
|
|
416
|
-
<span class='
|
|
414
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_reduce'>reduce</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
417
415
|
|
|
418
|
-
<span class='
|
|
419
|
-
<span class='
|
|
420
|
-
<span class='
|
|
421
|
-
<span class='
|
|
422
|
-
<span class='
|
|
423
|
-
<span class='
|
|
424
|
-
<span class='
|
|
416
|
+
<span class='id identifier rubyid_get_args'>get_args</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_op_iterator'>op_iterator</span><span class='comma'>,</span> <span class='id identifier rubyid_shape'>shape</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_other_args'>other_args</span><span class='op'>|</span>
|
|
417
|
+
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='ivar'>@pre_condition_result</span>
|
|
418
|
+
<span class='kw'>while</span> <span class='lparen'>(</span><span class='id identifier rubyid_op_iterator'>op_iterator</span><span class='period'>.</span><span class='id identifier rubyid_has_next?'>has_next?</span><span class='rparen'>)</span>
|
|
419
|
+
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='ivar'>@do_func</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_result'>result</span><span class='comma'>,</span> <span class='id identifier rubyid_op_iterator'>op_iterator</span><span class='period'>.</span><span class='id identifier rubyid_get_next'>get_next</span><span class='rparen'>)</span>
|
|
420
|
+
<span class='kw'>end</span>
|
|
421
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_result'>result</span>
|
|
422
|
+
<span class='kw'>end</span>
|
|
425
423
|
|
|
426
|
-
<span class='
|
|
427
|
-
</pre>
|
|
424
|
+
<span class='kw'>end</span></pre>
|
|
428
425
|
</td>
|
|
429
426
|
</tr>
|
|
430
427
|
</table>
|
|
@@ -441,8 +438,8 @@
|
|
|
441
438
|
|
|
442
439
|
</h3><div class="docstring">
|
|
443
440
|
<div class="discussion">
|
|
444
|
-
<hr
|
|
445
|
-
<hr
|
|
441
|
+
<hr>
|
|
442
|
+
<hr>
|
|
446
443
|
|
|
447
444
|
|
|
448
445
|
</div>
|
|
@@ -475,22 +472,21 @@
|
|
|
475
472
|
<td>
|
|
476
473
|
<pre class="code"><span class="info file"># File 'lib/mdarray/ruby_operators.rb', line 132</span>
|
|
477
474
|
|
|
478
|
-
<span class='
|
|
479
|
-
|
|
480
|
-
<span class='
|
|
481
|
-
<span class='
|
|
482
|
-
<span class='
|
|
483
|
-
<span class='
|
|
484
|
-
<span class='
|
|
485
|
-
<span class='
|
|
486
|
-
<span class='
|
|
487
|
-
<span class='
|
|
488
|
-
<span class='
|
|
489
|
-
<span class='
|
|
490
|
-
<span class='
|
|
491
|
-
|
|
492
|
-
<span class='
|
|
493
|
-
</pre>
|
|
475
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_set_block'>set_block</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
476
|
+
|
|
477
|
+
<span class='id identifier rubyid_get_args'>get_args</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_op_iterator'>op_iterator</span><span class='comma'>,</span> <span class='id identifier rubyid_shape'>shape</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_other_args'>other_args</span><span class='op'>|</span>
|
|
478
|
+
<span class='id identifier rubyid_block'>block</span> <span class='op'>=</span> <span class='id identifier rubyid_other_args'>other_args</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
|
|
479
|
+
<span class='kw'>while</span> <span class='lparen'>(</span><span class='id identifier rubyid_op_iterator'>op_iterator</span><span class='period'>.</span><span class='id identifier rubyid_has_next?'>has_next?</span><span class='rparen'>)</span>
|
|
480
|
+
<span class='id identifier rubyid_op_iterator'>op_iterator</span><span class='period'>.</span><span class='id identifier rubyid_next'>next</span>
|
|
481
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_shape'>shape</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span> <span class='op'><</span> <span class='int'>8</span><span class='rparen'>)</span>
|
|
482
|
+
<span class='id identifier rubyid_op_iterator'>op_iterator</span><span class='period'>.</span><span class='id identifier rubyid_set_current'>set_current</span><span class='lparen'>(</span><span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_op_iterator'>op_iterator</span><span class='period'>.</span><span class='id identifier rubyid_get_current_counter'>get_current_counter</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
483
|
+
<span class='kw'>else</span>
|
|
484
|
+
<span class='id identifier rubyid_op_iterator'>op_iterator</span><span class='period'>.</span><span class='id identifier rubyid_set_current'>set_current</span><span class='lparen'>(</span><span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_op_iterator'>op_iterator</span><span class='period'>.</span><span class='id identifier rubyid_get_current_counter'>get_current_counter</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
485
|
+
<span class='kw'>end</span>
|
|
486
|
+
<span class='kw'>end</span> <span class='kw'>if</span> <span class='id identifier rubyid_block'>block</span>
|
|
487
|
+
<span class='kw'>end</span>
|
|
488
|
+
|
|
489
|
+
<span class='kw'>end</span></pre>
|
|
494
490
|
</td>
|
|
495
491
|
</tr>
|
|
496
492
|
</table>
|
|
@@ -501,9 +497,9 @@
|
|
|
501
497
|
</div>
|
|
502
498
|
|
|
503
499
|
<div id="footer">
|
|
504
|
-
Generated on
|
|
500
|
+
Generated on Tue Jul 14 18:09:12 2015 by
|
|
505
501
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
506
|
-
0.8.
|
|
502
|
+
0.8.7.6 (ruby-1.9.3).
|
|
507
503
|
</div>
|
|
508
504
|
|
|
509
505
|
</body>
|