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,208 @@
|
|
|
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
|
+
Module: CernDoubleFunctions
|
|
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#!CernDoubleFunctions.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 (C)</a> »
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
<span class="title">CernDoubleFunctions</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>Module: CernDoubleFunctions
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</h1>
|
|
71
|
+
|
|
72
|
+
<dl class="box">
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
<dt class="r1">Extended by:</dt>
|
|
77
|
+
<dd class="r1"><span class='object_link'><a href="CernFunctions.html" title="CernFunctions (module)">CernFunctions</a></span>, <span class='object_link'><a href="FunctionCreation.html" title="FunctionCreation (module)">FunctionCreation</a></span></dd>
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
<dt class="r2">Included in:</dt>
|
|
85
|
+
<dd class="r2"><span class='object_link'><a href="DoubleMDArray.html" title="DoubleMDArray (class)">DoubleMDArray</a></span></dd>
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
<dt class="r1 last">Defined in:</dt>
|
|
90
|
+
<dd class="r1 last">lib/colt/cern_double_functions.rb</dd>
|
|
91
|
+
|
|
92
|
+
</dl>
|
|
93
|
+
<div class="clear"></div>
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
<h2>
|
|
104
|
+
Class Method Summary
|
|
105
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
106
|
+
</h2>
|
|
107
|
+
|
|
108
|
+
<ul class="summary">
|
|
109
|
+
|
|
110
|
+
<li class="public ">
|
|
111
|
+
<span class="summary_signature">
|
|
112
|
+
|
|
113
|
+
<a href="#register-class_method" title="register (class method)">+ (Object) <strong>register</strong>(als, name, long_name, type) </a>
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
</span>
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
128
|
+
|
|
129
|
+
</li>
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
</ul>
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="CernFunctions.html" title="CernFunctions (module)">CernFunctions</a></span></h3>
|
|
145
|
+
<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>
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="FunctionCreation.html" title="FunctionCreation (module)">FunctionCreation</a></span></h3>
|
|
156
|
+
<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>
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
<div id="class_method_details" class="method_details_list">
|
|
160
|
+
<h2>Class Method Details</h2>
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
<div class="method_details first">
|
|
164
|
+
<h3 class="signature first" id="register-class_method">
|
|
165
|
+
|
|
166
|
+
+ (<tt>Object</tt>) <strong>register</strong>(als, name, long_name, type)
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
</h3><table class="source_code">
|
|
173
|
+
<tr>
|
|
174
|
+
<td>
|
|
175
|
+
<pre class="lines">
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
127
|
|
179
|
+
128
|
|
180
|
+
129
|
|
181
|
+
130
|
|
182
|
+
131</pre>
|
|
183
|
+
</td>
|
|
184
|
+
<td>
|
|
185
|
+
<pre class="code"><span class="info file"># File 'lib/colt/cern_double_functions.rb', line 127</span>
|
|
186
|
+
|
|
187
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_register'>register</span><span class='lparen'>(</span><span class='id identifier rubyid_als'>als</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_long_name'>long_name</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
|
|
188
|
+
<span class='id identifier rubyid_map'>map</span> <span class='op'>=</span> <span class='id identifier rubyid_cern_binary_function'>cern_binary_function</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_long_name'>long_name</span><span class='comma'>,</span> <span class='const'>Java</span><span class='op'>::</span><span class='const'>CernJetMathTdouble</span><span class='period'>.</span><span class='const'>DoubleFunctions</span><span class='comma'>,</span>
|
|
189
|
+
<span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
|
|
190
|
+
<span class='const'>MDArray</span><span class='period'>.</span><span class='id identifier rubyid_register_function'>register_function</span><span class='lparen'>(</span><span class='id identifier rubyid_als'>als</span><span class='comma'>,</span> <span class='id identifier rubyid_map'>map</span><span class='comma'>,</span> <span class='int'>2</span><span class='comma'>,</span> <span class='const'>CernFunctions</span><span class='period'>.</span><span class='id identifier rubyid_binary_helper'>binary_helper</span><span class='rparen'>)</span>
|
|
191
|
+
<span class='kw'>end</span></pre>
|
|
192
|
+
</td>
|
|
193
|
+
</tr>
|
|
194
|
+
</table>
|
|
195
|
+
</div>
|
|
196
|
+
|
|
197
|
+
</div>
|
|
198
|
+
|
|
199
|
+
</div>
|
|
200
|
+
|
|
201
|
+
<div id="footer">
|
|
202
|
+
Generated on Tue Jul 14 18:08:57 2015 by
|
|
203
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
204
|
+
0.8.7.6 (ruby-1.9.3).
|
|
205
|
+
</div>
|
|
206
|
+
|
|
207
|
+
</body>
|
|
208
|
+
</html>
|
|
@@ -0,0 +1,208 @@
|
|
|
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
|
+
Module: CernFloatFunctions
|
|
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#!CernFloatFunctions.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 (C)</a> »
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
<span class="title">CernFloatFunctions</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>Module: CernFloatFunctions
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</h1>
|
|
71
|
+
|
|
72
|
+
<dl class="box">
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
<dt class="r1">Extended by:</dt>
|
|
77
|
+
<dd class="r1"><span class='object_link'><a href="CernFunctions.html" title="CernFunctions (module)">CernFunctions</a></span>, <span class='object_link'><a href="FunctionCreation.html" title="FunctionCreation (module)">FunctionCreation</a></span></dd>
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
<dt class="r2">Included in:</dt>
|
|
85
|
+
<dd class="r2"><span class='object_link'><a href="FloatMDArray.html" title="FloatMDArray (class)">FloatMDArray</a></span></dd>
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
<dt class="r1 last">Defined in:</dt>
|
|
90
|
+
<dd class="r1 last">lib/colt/cern_float_functions.rb</dd>
|
|
91
|
+
|
|
92
|
+
</dl>
|
|
93
|
+
<div class="clear"></div>
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
<h2>
|
|
104
|
+
Class Method Summary
|
|
105
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
106
|
+
</h2>
|
|
107
|
+
|
|
108
|
+
<ul class="summary">
|
|
109
|
+
|
|
110
|
+
<li class="public ">
|
|
111
|
+
<span class="summary_signature">
|
|
112
|
+
|
|
113
|
+
<a href="#register-class_method" title="register (class method)">+ (Object) <strong>register</strong>(als, name, long_name, type) </a>
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
</span>
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
128
|
+
|
|
129
|
+
</li>
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
</ul>
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="CernFunctions.html" title="CernFunctions (module)">CernFunctions</a></span></h3>
|
|
145
|
+
<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>
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="FunctionCreation.html" title="FunctionCreation (module)">FunctionCreation</a></span></h3>
|
|
156
|
+
<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>
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
<div id="class_method_details" class="method_details_list">
|
|
160
|
+
<h2>Class Method Details</h2>
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
<div class="method_details first">
|
|
164
|
+
<h3 class="signature first" id="register-class_method">
|
|
165
|
+
|
|
166
|
+
+ (<tt>Object</tt>) <strong>register</strong>(als, name, long_name, type)
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
</h3><table class="source_code">
|
|
173
|
+
<tr>
|
|
174
|
+
<td>
|
|
175
|
+
<pre class="lines">
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
127
|
|
179
|
+
128
|
|
180
|
+
129
|
|
181
|
+
130
|
|
182
|
+
131</pre>
|
|
183
|
+
</td>
|
|
184
|
+
<td>
|
|
185
|
+
<pre class="code"><span class="info file"># File 'lib/colt/cern_float_functions.rb', line 127</span>
|
|
186
|
+
|
|
187
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_register'>register</span><span class='lparen'>(</span><span class='id identifier rubyid_als'>als</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_long_name'>long_name</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
|
|
188
|
+
<span class='id identifier rubyid_map'>map</span> <span class='op'>=</span> <span class='id identifier rubyid_cern_binary_function'>cern_binary_function</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_long_name'>long_name</span><span class='comma'>,</span> <span class='const'>Java</span><span class='op'>::</span><span class='const'>CernJetMathTfloat</span><span class='period'>.</span><span class='const'>FloatFunctions</span><span class='comma'>,</span>
|
|
189
|
+
<span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
|
|
190
|
+
<span class='const'>MDArray</span><span class='period'>.</span><span class='id identifier rubyid_register_function'>register_function</span><span class='lparen'>(</span><span class='id identifier rubyid_als'>als</span><span class='comma'>,</span> <span class='id identifier rubyid_map'>map</span><span class='comma'>,</span> <span class='int'>2</span><span class='comma'>,</span> <span class='const'>CernFunctions</span><span class='period'>.</span><span class='id identifier rubyid_binary_helper'>binary_helper</span><span class='rparen'>)</span>
|
|
191
|
+
<span class='kw'>end</span></pre>
|
|
192
|
+
</td>
|
|
193
|
+
</tr>
|
|
194
|
+
</table>
|
|
195
|
+
</div>
|
|
196
|
+
|
|
197
|
+
</div>
|
|
198
|
+
|
|
199
|
+
</div>
|
|
200
|
+
|
|
201
|
+
<div id="footer">
|
|
202
|
+
Generated on Tue Jul 14 18:08:57 2015 by
|
|
203
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
204
|
+
0.8.7.6 (ruby-1.9.3).
|
|
205
|
+
</div>
|
|
206
|
+
|
|
207
|
+
</body>
|
|
208
|
+
</html>
|
|
@@ -0,0 +1,828 @@
|
|
|
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
|
+
Module: CernFunctions
|
|
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#!CernFunctions.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 (C)</a> »
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
<span class="title">CernFunctions</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>Module: CernFunctions
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</h1>
|
|
71
|
+
|
|
72
|
+
<dl class="box">
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
<dt class="r1">Included in:</dt>
|
|
81
|
+
<dd class="r1"><span class='object_link'><a href="CernDoubleFunctions.html" title="CernDoubleFunctions (module)">CernDoubleFunctions</a></span>, <span class='object_link'><a href="CernFloatFunctions.html" title="CernFloatFunctions (module)">CernFloatFunctions</a></span>, <span class='object_link'><a href="CernIntFunctions.html" title="CernIntFunctions (module)">CernIntFunctions</a></span>, <span class='object_link'><a href="CernLongFunctions.html" title="CernLongFunctions (module)">CernLongFunctions</a></span></dd>
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
<dt class="r2 last">Defined in:</dt>
|
|
86
|
+
<dd class="r2 last">lib/colt/colt.rb</dd>
|
|
87
|
+
|
|
88
|
+
</dl>
|
|
89
|
+
<div class="clear"></div>
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
<h2>Class Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
|
96
|
+
<ul class="summary">
|
|
97
|
+
|
|
98
|
+
<li class="public ">
|
|
99
|
+
<span class="summary_signature">
|
|
100
|
+
|
|
101
|
+
<a href="#binary_helper-class_method" title="binary_helper (class method)">+ (Object) <strong>binary_helper</strong> </a>
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
</span>
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
<span class="note title readonly">readonly</span>
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
<span class="summary_desc"><div class='inline'>
|
|
121
|
+
<p>Returns the value of attribute binary_helper.</p>
|
|
122
|
+
</div></span>
|
|
123
|
+
|
|
124
|
+
</li>
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
<li class="public ">
|
|
128
|
+
<span class="summary_signature">
|
|
129
|
+
|
|
130
|
+
<a href="#unary_helper-class_method" title="unary_helper (class method)">+ (Object) <strong>unary_helper</strong> </a>
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
</span>
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
<span class="note title readonly">readonly</span>
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
<span class="summary_desc"><div class='inline'>
|
|
150
|
+
<p>Returns the value of attribute unary_helper.</p>
|
|
151
|
+
</div></span>
|
|
152
|
+
|
|
153
|
+
</li>
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
</ul>
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
<h2>
|
|
163
|
+
Instance Method Summary
|
|
164
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
165
|
+
</h2>
|
|
166
|
+
|
|
167
|
+
<ul class="summary">
|
|
168
|
+
|
|
169
|
+
<li class="public ">
|
|
170
|
+
<span class="summary_signature">
|
|
171
|
+
|
|
172
|
+
<a href="#cern_binary_function-instance_method" title="#cern_binary_function (instance method)">- (Object) <strong>cern_binary_function</strong>(short_name, long_name, module_name, type) </a>
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
</span>
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
<span class="summary_desc"><div class='inline'>
|
|
187
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
188
|
+
</div></span>
|
|
189
|
+
|
|
190
|
+
</li>
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
<li class="public ">
|
|
194
|
+
<span class="summary_signature">
|
|
195
|
+
|
|
196
|
+
<a href="#cern_comparison_function-instance_method" title="#cern_comparison_function (instance method)">- (Object) <strong>cern_comparison_function</strong>(short_name, long_name, module_name, type) </a>
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
</span>
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
<span class="summary_desc"><div class='inline'>
|
|
211
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
212
|
+
</div></span>
|
|
213
|
+
|
|
214
|
+
</li>
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
<li class="public ">
|
|
218
|
+
<span class="summary_signature">
|
|
219
|
+
|
|
220
|
+
<a href="#cern_unary_function-instance_method" title="#cern_unary_function (instance method)">- (Object) <strong>cern_unary_function</strong>(short_name, long_name, module_name, type) </a>
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
</span>
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
<span class="summary_desc"><div class='inline'>
|
|
235
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
236
|
+
</div></span>
|
|
237
|
+
|
|
238
|
+
</li>
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
<li class="public ">
|
|
242
|
+
<span class="summary_signature">
|
|
243
|
+
|
|
244
|
+
<a href="#make_binary_operator-instance_method" title="#make_binary_operator (instance method)">- (Object) <strong>make_binary_operator</strong>(name, type, func) </a>
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
</span>
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
<span class="summary_desc"><div class='inline'>
|
|
259
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
260
|
+
</div></span>
|
|
261
|
+
|
|
262
|
+
</li>
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
<li class="public ">
|
|
266
|
+
<span class="summary_signature">
|
|
267
|
+
|
|
268
|
+
<a href="#make_binary_operators-instance_method" title="#make_binary_operators (instance method)">- (Object) <strong>make_binary_operators</strong>(name, func, default = true, in_place = true) </a>
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
</span>
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
<span class="summary_desc"><div class='inline'>
|
|
283
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
284
|
+
</div></span>
|
|
285
|
+
|
|
286
|
+
</li>
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
<li class="public ">
|
|
290
|
+
<span class="summary_signature">
|
|
291
|
+
|
|
292
|
+
<a href="#make_comparison_operator-instance_method" title="#make_comparison_operator (instance method)">- (Object) <strong>make_comparison_operator</strong>(name, func) </a>
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
</span>
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
<span class="summary_desc"><div class='inline'>
|
|
307
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
308
|
+
</div></span>
|
|
309
|
+
|
|
310
|
+
</li>
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
<li class="public ">
|
|
314
|
+
<span class="summary_signature">
|
|
315
|
+
|
|
316
|
+
<a href="#make_unary_operator-instance_method" title="#make_unary_operator (instance method)">- (Object) <strong>make_unary_operator</strong>(name, type, func) </a>
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
</span>
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
<span class="summary_desc"><div class='inline'>
|
|
331
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
332
|
+
</div></span>
|
|
333
|
+
|
|
334
|
+
</li>
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
<li class="public ">
|
|
338
|
+
<span class="summary_signature">
|
|
339
|
+
|
|
340
|
+
<a href="#make_unary_operators-instance_method" title="#make_unary_operators (instance method)">- (Object) <strong>make_unary_operators</strong>(name, func, default = true, in_place = true) </a>
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
</span>
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
<span class="summary_desc"><div class='inline'>
|
|
355
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
356
|
+
</div></span>
|
|
357
|
+
|
|
358
|
+
</li>
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
</ul>
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
<div id="class_attr_details" class="attr_details">
|
|
366
|
+
<h2>Class Attribute Details</h2>
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
<span id=""></span>
|
|
370
|
+
<div class="method_details first">
|
|
371
|
+
<h3 class="signature first" id="binary_helper-class_method">
|
|
372
|
+
|
|
373
|
+
+ (<tt>Object</tt>) <strong>binary_helper</strong> <span class="extras">(readonly)</span>
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
</h3><div class="docstring">
|
|
380
|
+
<div class="discussion">
|
|
381
|
+
|
|
382
|
+
<p>Returns the value of attribute binary_helper</p>
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
</div>
|
|
386
|
+
</div>
|
|
387
|
+
<div class="tags">
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
</div><table class="source_code">
|
|
391
|
+
<tr>
|
|
392
|
+
<td>
|
|
393
|
+
<pre class="lines">
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
59
|
|
397
|
+
60
|
|
398
|
+
61</pre>
|
|
399
|
+
</td>
|
|
400
|
+
<td>
|
|
401
|
+
<pre class="code"><span class="info file"># File 'lib/colt/colt.rb', line 59</span>
|
|
402
|
+
|
|
403
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_binary_helper'>binary_helper</span>
|
|
404
|
+
<span class='ivar'>@binary_helper</span>
|
|
405
|
+
<span class='kw'>end</span></pre>
|
|
406
|
+
</td>
|
|
407
|
+
</tr>
|
|
408
|
+
</table>
|
|
409
|
+
</div>
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
<span id=""></span>
|
|
413
|
+
<div class="method_details ">
|
|
414
|
+
<h3 class="signature " id="unary_helper-class_method">
|
|
415
|
+
|
|
416
|
+
+ (<tt>Object</tt>) <strong>unary_helper</strong> <span class="extras">(readonly)</span>
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
</h3><div class="docstring">
|
|
423
|
+
<div class="discussion">
|
|
424
|
+
|
|
425
|
+
<p>Returns the value of attribute unary_helper</p>
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
</div>
|
|
429
|
+
</div>
|
|
430
|
+
<div class="tags">
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
</div><table class="source_code">
|
|
434
|
+
<tr>
|
|
435
|
+
<td>
|
|
436
|
+
<pre class="lines">
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
60
|
|
440
|
+
61
|
|
441
|
+
62</pre>
|
|
442
|
+
</td>
|
|
443
|
+
<td>
|
|
444
|
+
<pre class="code"><span class="info file"># File 'lib/colt/colt.rb', line 60</span>
|
|
445
|
+
|
|
446
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_unary_helper'>unary_helper</span>
|
|
447
|
+
<span class='ivar'>@unary_helper</span>
|
|
448
|
+
<span class='kw'>end</span></pre>
|
|
449
|
+
</td>
|
|
450
|
+
</tr>
|
|
451
|
+
</table>
|
|
452
|
+
</div>
|
|
453
|
+
|
|
454
|
+
</div>
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
<div id="instance_method_details" class="method_details_list">
|
|
458
|
+
<h2>Instance Method Details</h2>
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
<div class="method_details first">
|
|
462
|
+
<h3 class="signature first" id="cern_binary_function-instance_method">
|
|
463
|
+
|
|
464
|
+
- (<tt>Object</tt>) <strong>cern_binary_function</strong>(short_name, long_name, module_name, type)
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
</h3><div class="docstring">
|
|
471
|
+
<div class="discussion">
|
|
472
|
+
<hr>
|
|
473
|
+
<hr>
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
</div>
|
|
477
|
+
</div>
|
|
478
|
+
<div class="tags">
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
</div><table class="source_code">
|
|
482
|
+
<tr>
|
|
483
|
+
<td>
|
|
484
|
+
<pre class="lines">
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
124
|
|
488
|
+
125
|
|
489
|
+
126</pre>
|
|
490
|
+
</td>
|
|
491
|
+
<td>
|
|
492
|
+
<pre class="code"><span class="info file"># File 'lib/colt/colt.rb', line 124</span>
|
|
493
|
+
|
|
494
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cern_binary_function'>cern_binary_function</span><span class='lparen'>(</span><span class='id identifier rubyid_short_name'>short_name</span><span class='comma'>,</span> <span class='id identifier rubyid_long_name'>long_name</span><span class='comma'>,</span> <span class='id identifier rubyid_module_name'>module_name</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
|
|
495
|
+
<span class='lbracket'>[</span><span class='id identifier rubyid_long_name'>long_name</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>CernFunctions</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_module_name'>module_name</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_short_name'>short_name</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='rbracket'>]</span>
|
|
496
|
+
<span class='kw'>end</span></pre>
|
|
497
|
+
</td>
|
|
498
|
+
</tr>
|
|
499
|
+
</table>
|
|
500
|
+
</div>
|
|
501
|
+
|
|
502
|
+
<div class="method_details ">
|
|
503
|
+
<h3 class="signature " id="cern_comparison_function-instance_method">
|
|
504
|
+
|
|
505
|
+
- (<tt>Object</tt>) <strong>cern_comparison_function</strong>(short_name, long_name, module_name, type)
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
</h3><div class="docstring">
|
|
512
|
+
<div class="discussion">
|
|
513
|
+
<hr>
|
|
514
|
+
<hr>
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
</div>
|
|
518
|
+
</div>
|
|
519
|
+
<div class="tags">
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
</div><table class="source_code">
|
|
523
|
+
<tr>
|
|
524
|
+
<td>
|
|
525
|
+
<pre class="lines">
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
140
|
|
529
|
+
141
|
|
530
|
+
142</pre>
|
|
531
|
+
</td>
|
|
532
|
+
<td>
|
|
533
|
+
<pre class="code"><span class="info file"># File 'lib/colt/colt.rb', line 140</span>
|
|
534
|
+
|
|
535
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cern_comparison_function'>cern_comparison_function</span><span class='lparen'>(</span><span class='id identifier rubyid_short_name'>short_name</span><span class='comma'>,</span> <span class='id identifier rubyid_long_name'>long_name</span><span class='comma'>,</span> <span class='id identifier rubyid_module_name'>module_name</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
|
|
536
|
+
<span class='lbracket'>[</span><span class='id identifier rubyid_long_name'>long_name</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>CernFunctions</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_module_name'>module_name</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_short_name'>short_name</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>boolean</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='rbracket'>]</span>
|
|
537
|
+
<span class='kw'>end</span></pre>
|
|
538
|
+
</td>
|
|
539
|
+
</tr>
|
|
540
|
+
</table>
|
|
541
|
+
</div>
|
|
542
|
+
|
|
543
|
+
<div class="method_details ">
|
|
544
|
+
<h3 class="signature " id="cern_unary_function-instance_method">
|
|
545
|
+
|
|
546
|
+
- (<tt>Object</tt>) <strong>cern_unary_function</strong>(short_name, long_name, module_name, type)
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
</h3><div class="docstring">
|
|
553
|
+
<div class="discussion">
|
|
554
|
+
<hr>
|
|
555
|
+
<hr>
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
</div>
|
|
559
|
+
</div>
|
|
560
|
+
<div class="tags">
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
</div><table class="source_code">
|
|
564
|
+
<tr>
|
|
565
|
+
<td>
|
|
566
|
+
<pre class="lines">
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
132
|
|
570
|
+
133
|
|
571
|
+
134</pre>
|
|
572
|
+
</td>
|
|
573
|
+
<td>
|
|
574
|
+
<pre class="code"><span class="info file"># File 'lib/colt/colt.rb', line 132</span>
|
|
575
|
+
|
|
576
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cern_unary_function'>cern_unary_function</span><span class='lparen'>(</span><span class='id identifier rubyid_short_name'>short_name</span><span class='comma'>,</span> <span class='id identifier rubyid_long_name'>long_name</span><span class='comma'>,</span> <span class='id identifier rubyid_module_name'>module_name</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
|
|
577
|
+
<span class='lbracket'>[</span><span class='id identifier rubyid_long_name'>long_name</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>CernFunctions</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_module_name'>module_name</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_short_name'>short_name</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>void</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span>
|
|
578
|
+
<span class='kw'>end</span></pre>
|
|
579
|
+
</td>
|
|
580
|
+
</tr>
|
|
581
|
+
</table>
|
|
582
|
+
</div>
|
|
583
|
+
|
|
584
|
+
<div class="method_details ">
|
|
585
|
+
<h3 class="signature " id="make_binary_operator-instance_method">
|
|
586
|
+
|
|
587
|
+
- (<tt>Object</tt>) <strong>make_binary_operator</strong>(name, type, func)
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
</h3><div class="docstring">
|
|
594
|
+
<div class="discussion">
|
|
595
|
+
<hr>
|
|
596
|
+
<hr>
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
</div>
|
|
600
|
+
</div>
|
|
601
|
+
<div class="tags">
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
</div><table class="source_code">
|
|
605
|
+
<tr>
|
|
606
|
+
<td>
|
|
607
|
+
<pre class="lines">
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
85
|
|
611
|
+
86
|
|
612
|
+
87</pre>
|
|
613
|
+
</td>
|
|
614
|
+
<td>
|
|
615
|
+
<pre class="code"><span class="info file"># File 'lib/colt/colt.rb', line 85</span>
|
|
616
|
+
|
|
617
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_make_binary_operator'>make_binary_operator</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='rparen'>)</span>
|
|
618
|
+
<span class='id identifier rubyid_make_binary_op'>make_binary_op</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='comma'>,</span> <span class='const'>CernFunctions</span><span class='period'>.</span><span class='id identifier rubyid_binary_helper'>binary_helper</span><span class='rparen'>)</span>
|
|
619
|
+
<span class='kw'>end</span></pre>
|
|
620
|
+
</td>
|
|
621
|
+
</tr>
|
|
622
|
+
</table>
|
|
623
|
+
</div>
|
|
624
|
+
|
|
625
|
+
<div class="method_details ">
|
|
626
|
+
<h3 class="signature " id="make_binary_operators-instance_method">
|
|
627
|
+
|
|
628
|
+
- (<tt>Object</tt>) <strong>make_binary_operators</strong>(name, func, default = true, in_place = true)
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
</h3><div class="docstring">
|
|
635
|
+
<div class="discussion">
|
|
636
|
+
<hr>
|
|
637
|
+
<hr>
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
</div>
|
|
641
|
+
</div>
|
|
642
|
+
<div class="tags">
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
</div><table class="source_code">
|
|
646
|
+
<tr>
|
|
647
|
+
<td>
|
|
648
|
+
<pre class="lines">
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
70
|
|
652
|
+
71
|
|
653
|
+
72
|
|
654
|
+
73
|
|
655
|
+
74
|
|
656
|
+
75
|
|
657
|
+
76
|
|
658
|
+
77
|
|
659
|
+
78
|
|
660
|
+
79</pre>
|
|
661
|
+
</td>
|
|
662
|
+
<td>
|
|
663
|
+
<pre class="code"><span class="info file"># File 'lib/colt/colt.rb', line 70</span>
|
|
664
|
+
|
|
665
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_make_binary_operators'>make_binary_operators</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='comma'>,</span> <span class='id identifier rubyid_default'>default</span> <span class='op'>=</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='id identifier rubyid_in_place'>in_place</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
|
666
|
+
|
|
667
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_default'>default</span><span class='rparen'>)</span>
|
|
668
|
+
<span class='id identifier rubyid_make_binary_op'>make_binary_op</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='symbol'>:default</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='comma'>,</span> <span class='const'>CernFunctions</span><span class='period'>.</span><span class='id identifier rubyid_binary_helper'>binary_helper</span><span class='rparen'>)</span>
|
|
669
|
+
<span class='kw'>end</span>
|
|
670
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_in_place'>in_place</span><span class='rparen'>)</span>
|
|
671
|
+
<span class='id identifier rubyid_make_binary_op'>make_binary_op</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>!</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='symbol'>:in_place</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='comma'>,</span> <span class='const'>CernFunctions</span><span class='period'>.</span><span class='id identifier rubyid_binary_helper'>binary_helper</span><span class='rparen'>)</span>
|
|
672
|
+
<span class='kw'>end</span>
|
|
673
|
+
|
|
674
|
+
<span class='kw'>end</span></pre>
|
|
675
|
+
</td>
|
|
676
|
+
</tr>
|
|
677
|
+
</table>
|
|
678
|
+
</div>
|
|
679
|
+
|
|
680
|
+
<div class="method_details ">
|
|
681
|
+
<h3 class="signature " id="make_comparison_operator-instance_method">
|
|
682
|
+
|
|
683
|
+
- (<tt>Object</tt>) <strong>make_comparison_operator</strong>(name, func)
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
</h3><div class="docstring">
|
|
690
|
+
<div class="discussion">
|
|
691
|
+
<hr>
|
|
692
|
+
<hr>
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
</div>
|
|
696
|
+
</div>
|
|
697
|
+
<div class="tags">
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
</div><table class="source_code">
|
|
701
|
+
<tr>
|
|
702
|
+
<td>
|
|
703
|
+
<pre class="lines">
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
116
|
|
707
|
+
117
|
|
708
|
+
118</pre>
|
|
709
|
+
</td>
|
|
710
|
+
<td>
|
|
711
|
+
<pre class="code"><span class="info file"># File 'lib/colt/colt.rb', line 116</span>
|
|
712
|
+
|
|
713
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_make_comparison_operator'>make_comparison_operator</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='rparen'>)</span>
|
|
714
|
+
<span class='id identifier rubyid_make_binary_op'>make_binary_op</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>default</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='comma'>,</span> <span class='const'>CernFunctions</span><span class='period'>.</span><span class='id identifier rubyid_binary_helper'>binary_helper</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>boolean</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
715
|
+
<span class='kw'>end</span></pre>
|
|
716
|
+
</td>
|
|
717
|
+
</tr>
|
|
718
|
+
</table>
|
|
719
|
+
</div>
|
|
720
|
+
|
|
721
|
+
<div class="method_details ">
|
|
722
|
+
<h3 class="signature " id="make_unary_operator-instance_method">
|
|
723
|
+
|
|
724
|
+
- (<tt>Object</tt>) <strong>make_unary_operator</strong>(name, type, func)
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
</h3><div class="docstring">
|
|
731
|
+
<div class="discussion">
|
|
732
|
+
<hr>
|
|
733
|
+
<hr>
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
</div>
|
|
737
|
+
</div>
|
|
738
|
+
<div class="tags">
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
</div><table class="source_code">
|
|
742
|
+
<tr>
|
|
743
|
+
<td>
|
|
744
|
+
<pre class="lines">
|
|
745
|
+
|
|
746
|
+
|
|
747
|
+
108
|
|
748
|
+
109
|
|
749
|
+
110</pre>
|
|
750
|
+
</td>
|
|
751
|
+
<td>
|
|
752
|
+
<pre class="code"><span class="info file"># File 'lib/colt/colt.rb', line 108</span>
|
|
753
|
+
|
|
754
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_make_unary_operator'>make_unary_operator</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='rparen'>)</span>
|
|
755
|
+
<span class='id identifier rubyid_make_unary_op'>make_unary_op</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='comma'>,</span> <span class='const'>CernFunctions</span><span class='period'>.</span><span class='id identifier rubyid_unary_helper'>unary_helper</span><span class='rparen'>)</span>
|
|
756
|
+
<span class='kw'>end</span></pre>
|
|
757
|
+
</td>
|
|
758
|
+
</tr>
|
|
759
|
+
</table>
|
|
760
|
+
</div>
|
|
761
|
+
|
|
762
|
+
<div class="method_details ">
|
|
763
|
+
<h3 class="signature " id="make_unary_operators-instance_method">
|
|
764
|
+
|
|
765
|
+
- (<tt>Object</tt>) <strong>make_unary_operators</strong>(name, func, default = true, in_place = true)
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
</h3><div class="docstring">
|
|
772
|
+
<div class="discussion">
|
|
773
|
+
<hr>
|
|
774
|
+
<hr>
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
</div>
|
|
778
|
+
</div>
|
|
779
|
+
<div class="tags">
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
</div><table class="source_code">
|
|
783
|
+
<tr>
|
|
784
|
+
<td>
|
|
785
|
+
<pre class="lines">
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
93
|
|
789
|
+
94
|
|
790
|
+
95
|
|
791
|
+
96
|
|
792
|
+
97
|
|
793
|
+
98
|
|
794
|
+
99
|
|
795
|
+
100
|
|
796
|
+
101
|
|
797
|
+
102</pre>
|
|
798
|
+
</td>
|
|
799
|
+
<td>
|
|
800
|
+
<pre class="code"><span class="info file"># File 'lib/colt/colt.rb', line 93</span>
|
|
801
|
+
|
|
802
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_make_unary_operators'>make_unary_operators</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='comma'>,</span> <span class='id identifier rubyid_default'>default</span> <span class='op'>=</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='id identifier rubyid_in_place'>in_place</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
|
803
|
+
|
|
804
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_default'>default</span><span class='rparen'>)</span>
|
|
805
|
+
<span class='id identifier rubyid_make_unary_op'>make_unary_op</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='symbol'>:default</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='comma'>,</span> <span class='const'>CernFunctions</span><span class='period'>.</span><span class='id identifier rubyid_unary_helper'>unary_helper</span><span class='rparen'>)</span>
|
|
806
|
+
<span class='kw'>end</span>
|
|
807
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_in_place'>in_place</span><span class='rparen'>)</span>
|
|
808
|
+
<span class='id identifier rubyid_make_unary_op'>make_unary_op</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>!</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='symbol'>:in_place</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='comma'>,</span> <span class='const'>CernFunctions</span><span class='period'>.</span><span class='id identifier rubyid_unary_helper'>unary_helper</span><span class='rparen'>)</span>
|
|
809
|
+
<span class='kw'>end</span>
|
|
810
|
+
|
|
811
|
+
<span class='kw'>end</span></pre>
|
|
812
|
+
</td>
|
|
813
|
+
</tr>
|
|
814
|
+
</table>
|
|
815
|
+
</div>
|
|
816
|
+
|
|
817
|
+
</div>
|
|
818
|
+
|
|
819
|
+
</div>
|
|
820
|
+
|
|
821
|
+
<div id="footer">
|
|
822
|
+
Generated on Tue Jul 14 18:08:56 2015 by
|
|
823
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
824
|
+
0.8.7.6 (ruby-1.9.3).
|
|
825
|
+
</div>
|
|
826
|
+
|
|
827
|
+
</body>
|
|
828
|
+
</html>
|