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.
Files changed (209) hide show
  1. checksums.yaml +4 -4
  2. data/config.rb +29 -95
  3. data/doc/BinaryOperator.html +20 -21
  4. data/doc/BitwiseOperators.html +18 -8
  5. data/doc/BitwiseOperators/BinaryAnd.html +189 -0
  6. data/doc/BitwiseOperators/BinaryLeftShift.html +189 -0
  7. data/doc/BitwiseOperators/BinaryOnesComplement.html +189 -0
  8. data/doc/BitwiseOperators/BinaryOr.html +189 -0
  9. data/doc/BitwiseOperators/BinaryRightShift.html +189 -0
  10. data/doc/BitwiseOperators/BinaryXor.html +189 -0
  11. data/doc/BooleanFunctions.html +18 -8
  12. data/doc/BooleanFunctions/And.html +189 -0
  13. data/doc/BooleanFunctions/Not.html +189 -0
  14. data/doc/BooleanFunctions/Or.html +189 -0
  15. data/doc/BooleanMDArray.html +10 -10
  16. data/doc/ByteMDArray.html +73 -14
  17. data/doc/CernDoubleFunctions.html +208 -0
  18. data/doc/CernFloatFunctions.html +208 -0
  19. data/doc/CernFunctions.html +828 -0
  20. data/doc/CernIntFunctions.html +208 -0
  21. data/doc/CernLongFunctions.html +208 -0
  22. data/doc/CharMDArray.html +181 -0
  23. data/doc/Colt.html +18 -20
  24. data/doc/ComparisonOperators.html +18 -8
  25. data/doc/ComparisonOperators/Eq.html +189 -0
  26. data/doc/ComparisonOperators/Ge.html +189 -0
  27. data/doc/ComparisonOperators/Gt.html +189 -0
  28. data/doc/ComparisonOperators/Le.html +189 -0
  29. data/doc/ComparisonOperators/Lt.html +189 -0
  30. data/doc/Const.html +107 -47
  31. data/doc/Csv.html +325 -113
  32. data/doc/Csv/Dimension.html +771 -0
  33. data/doc/Csv/Dimensions.html +654 -0
  34. data/doc/DDescriptive.html +573 -625
  35. data/doc/DoubleMDArray.html +40 -172
  36. data/doc/DoubleStatList.html +19 -20
  37. data/doc/FastBinaryOperator.html +166 -148
  38. data/doc/FastUnaryOperator.html +104 -109
  39. data/doc/FloatMDArray.html +55 -16
  40. data/doc/FunctionCreation.html +53 -273
  41. data/doc/FunctionMap.html +381 -93
  42. data/doc/GenericFunctions.html +18 -8
  43. data/doc/GenericFunctions/Null.html +187 -0
  44. data/doc/IntMDArray.html +77 -16
  45. data/doc/Java/CernJetMathTdouble/DoubleFunctions.html +120 -0
  46. data/doc/Java/CernJetMathTfloat/FloatFunctions.html +120 -0
  47. data/doc/Java/CernJetMathTint/IntFunctions.html +120 -0
  48. data/doc/Java/CernJetMathTlong/LongFunctions.html +120 -0
  49. data/doc/LazyBinaryOperator.html +714 -0
  50. data/doc/LazyMDArray.html +990 -0
  51. data/doc/LazyMDArray/BinaryComp.html +282 -0
  52. data/doc/LazyMDArray/UnaryComp.html +280 -0
  53. data/doc/LazyUnaryOperator.html +537 -0
  54. data/doc/LongMDArray.html +59 -15
  55. data/doc/MDArray.html +3223 -2181
  56. data/doc/MDArray/Counter.html +321 -1233
  57. data/doc/MDArray/IteratorFast.html +177 -116
  58. data/doc/MDArray/IteratorFastBoolean.html +37 -41
  59. data/doc/MDArray/IteratorFastByte.html +46 -39
  60. data/doc/MDArray/IteratorFastChar.html +37 -41
  61. data/doc/MDArray/IteratorFastDouble.html +37 -41
  62. data/doc/MDArray/IteratorFastFloat.html +37 -41
  63. data/doc/MDArray/IteratorFastInt.html +37 -41
  64. data/doc/MDArray/IteratorFastLong.html +37 -41
  65. data/doc/MDArray/IteratorFastShort.html +37 -41
  66. data/doc/MDArray/Section.html +561 -0
  67. data/doc/Nashorn.html +1407 -0
  68. data/doc/NetCDF.html +749 -0
  69. data/doc/NetCDF/Attribute.html +875 -0
  70. data/doc/NetCDF/AttributeWriter.html +286 -0
  71. data/doc/NetCDF/CDMNode.html +460 -0
  72. data/doc/NetCDF/Dimension.html +559 -0
  73. data/doc/NetCDF/DimensionWriter.html +642 -0
  74. data/doc/NetCDF/File.html +1593 -0
  75. data/doc/NetCDF/FileParent.html +674 -0
  76. data/doc/NetCDF/FileWriter.html +2875 -0
  77. data/doc/NetCDF/Group.html +685 -0
  78. data/doc/NetCDF/GroupWriter.html +851 -0
  79. data/doc/NetCDF/TimeVariable.html +646 -0
  80. data/doc/NetCDF/Variable.html +2994 -0
  81. data/doc/NetCDF/VariableWriter.html +420 -0
  82. data/doc/NonNumericalMDArray.html +11 -11
  83. data/doc/NumericFunctions.html +38 -30
  84. data/doc/NumericFunctions/Abs.html +189 -0
  85. data/doc/NumericFunctions/Add.html +189 -0
  86. data/doc/NumericFunctions/Ceil.html +189 -0
  87. data/doc/NumericFunctions/Cube.html +189 -0
  88. data/doc/NumericFunctions/Div.html +189 -0
  89. data/doc/NumericFunctions/Floor.html +189 -0
  90. data/doc/NumericFunctions/Fourth.html +189 -0
  91. data/doc/NumericFunctions/IsZero.html +189 -0
  92. data/doc/NumericFunctions/Max.html +189 -0
  93. data/doc/NumericFunctions/Min.html +189 -0
  94. data/doc/NumericFunctions/Mul.html +189 -0
  95. data/doc/NumericFunctions/Power.html +189 -0
  96. data/doc/NumericFunctions/Square.html +189 -0
  97. data/doc/NumericFunctions/Sub.html +189 -0
  98. data/doc/NumericFunctions/Truncate.html +189 -0
  99. data/doc/NumericalMDArray.html +14 -15
  100. data/doc/Operator.html +318 -109
  101. data/doc/Proc.html +120 -129
  102. data/doc/RubyBinaryOperator.html +66 -70
  103. data/doc/RubyFunctions.html +572 -27
  104. data/doc/RubyMath.html +18 -8
  105. data/doc/RubyMath/Acos.html +189 -0
  106. data/doc/RubyMath/Acosh.html +189 -0
  107. data/doc/RubyMath/Asin.html +189 -0
  108. data/doc/RubyMath/Asinh.html +189 -0
  109. data/doc/RubyMath/Atan.html +189 -0
  110. data/doc/RubyMath/Atan2.html +189 -0
  111. data/doc/RubyMath/Atanh.html +189 -0
  112. data/doc/RubyMath/Cbrt.html +189 -0
  113. data/doc/RubyMath/Cos.html +189 -0
  114. data/doc/RubyMath/Cosh.html +189 -0
  115. data/doc/RubyMath/Erf.html +189 -0
  116. data/doc/RubyMath/Erfc.html +189 -0
  117. data/doc/RubyMath/Exp.html +189 -0
  118. data/doc/RubyMath/Gamma.html +189 -0
  119. data/doc/RubyMath/Hypot.html +189 -0
  120. data/doc/RubyMath/Ldexp.html +189 -0
  121. data/doc/RubyMath/Log.html +189 -0
  122. data/doc/RubyMath/Log10.html +189 -0
  123. data/doc/RubyMath/Log2.html +189 -0
  124. data/doc/RubyMath/Neg.html +189 -0
  125. data/doc/RubyMath/Sin.html +189 -0
  126. data/doc/RubyMath/Sinh.html +189 -0
  127. data/doc/RubyMath/Sqrt.html +189 -0
  128. data/doc/RubyMath/Tan.html +189 -0
  129. data/doc/RubyMath/Tanh.html +189 -0
  130. data/doc/RubyStats.html +8 -8
  131. data/doc/RubyUnaryOperator.html +61 -65
  132. data/doc/ShortMDArray.html +69 -14
  133. data/doc/Sol.html +700 -0
  134. data/doc/Sol/BarChart.html +181 -0
  135. data/doc/Sol/BaseChart.html +800 -0
  136. data/doc/Sol/Bootstrap.html +1137 -0
  137. data/doc/Sol/Bridge.html +586 -0
  138. data/doc/Sol/Chart.html +1162 -0
  139. data/doc/Sol/CoordinateChart.html +679 -0
  140. data/doc/Sol/Dashboard.html +2094 -0
  141. data/doc/Sol/Dashboard/DCFX.html +786 -0
  142. data/doc/Sol/Dashboard/MyHandle.html +338 -0
  143. data/doc/Sol/Dashboard/MyService.html +202 -0
  144. data/doc/Sol/Dashboard/MyTask.html +291 -0
  145. data/doc/Sol/Interval.html +1213 -0
  146. data/doc/Sol/LineChart.html +346 -0
  147. data/doc/Sol/LinearScale.html +334 -0
  148. data/doc/Sol/Margins.html +219 -0
  149. data/doc/Sol/OrdinalScale.html +263 -0
  150. data/doc/Sol/Scale.html +462 -0
  151. data/doc/Sol/Stack.html +199 -0
  152. data/doc/Sol/TimeScale.html +397 -0
  153. data/doc/StatList.html +110 -125
  154. data/doc/StringMDArray.html +10 -10
  155. data/doc/StructureMDArray.html +10 -10
  156. data/doc/UnaryOperator.html +20 -21
  157. data/doc/UserFunction.html +51 -49
  158. data/doc/_index.html +881 -106
  159. data/doc/class_list.html +8 -3
  160. data/doc/css/style.css +2 -1
  161. data/doc/file.README.html +455 -104
  162. data/doc/file_list.html +7 -2
  163. data/doc/frames.html +5 -7
  164. data/doc/index.html +455 -104
  165. data/doc/js/app.js +7 -2
  166. data/doc/js/full_list.js +11 -3
  167. data/doc/method_list.html +3170 -1233
  168. data/doc/top-level-namespace.html +31 -8
  169. data/lib/colt/matrix/algebra.rb +5 -5
  170. data/lib/mdarray.rb +6 -3
  171. data/lib/mdarray/csv.rb +25 -5
  172. data/lib/mdarray/fast_operators.rb +1 -1
  173. data/lib/mdarray/function_creation.rb +3 -1
  174. data/lib/mdarray/hierarchy.rb +2 -0
  175. data/lib/mdarray/operators.rb +1 -1
  176. data/lib/mdarray/ruby_functions.rb +8 -4
  177. data/lib/mdarray/ruby_math.rb +0 -28
  178. data/test/colt/matrix/test_matrix2d_floatingalgebra.rb +31 -7
  179. data/test/complete.rb +4 -4
  180. data/test/mdarray/PETR4_2014.csv +249 -0
  181. data/test/mdarray/VALE_2014.csv +253 -0
  182. data/test/mdarray/VALE_PETR4.csv +501 -0
  183. data/test/mdarray/arithmetic_casting.rb +1 -0
  184. data/test/mdarray/test_access.rb +1 -0
  185. data/test/mdarray/test_boolean.rb +1 -0
  186. data/test/mdarray/test_comparison.rb +1 -0
  187. data/test/mdarray/test_complete.rb +2 -5
  188. data/test/mdarray/test_counter.rb +1 -0
  189. data/test/mdarray/test_creation.rb +1 -0
  190. data/test/mdarray/test_csv.rb +51 -0
  191. data/test/mdarray/test_error.rb +1 -0
  192. data/test/mdarray/test_non_numeric.rb +1 -1
  193. data/test/mdarray/test_operator.rb +31 -14
  194. data/test/mdarray/test_performance.rb +2 -1
  195. data/test/mdarray/test_printing.rb +1 -0
  196. data/test/mdarray/test_sections.rb +1 -0
  197. data/test/mdarray/test_shape.rb +1 -0
  198. data/test/mdarray/test_trigonometry.rb +1 -0
  199. data/test/mdarray/test_views.rb +1 -0
  200. data/vendor/mdarray.jar +0 -0
  201. data/vendor/{netcdfAll-4.5_0.jar → netcdfAll-4.6.jar} +0 -0
  202. data/vendor/slf4j-jdk14-1.7.12.jar +0 -0
  203. data/version.rb +1 -1
  204. metadata +247 -139
  205. data/lib/env.rb +0 -12
  206. data/lib/mdarray/lazy_mdarray.rb +0 -315
  207. data/lib/mdarray/lazy_operators.rb +0 -174
  208. data/test/env.rb +0 -8
  209. data/test/mdarray/test_lazy.rb +0 -306
@@ -6,18 +6,18 @@
6
6
  <title>
7
7
  Module: FunctionCreation
8
8
 
9
- &mdash; Documentation by YARD 0.8.5.2
9
+ &mdash; 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" media="screen" charset="utf-8" />
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" media="screen" charset="utf-8" />
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#!" + escape(window.location.href);
20
+ framesUrl = "frames.html#!FunctionCreation.html";
21
21
  </script>
22
22
 
23
23
 
@@ -78,7 +78,7 @@
78
78
 
79
79
 
80
80
  <dt class="r1">Included in:</dt>
81
- <dd class="r1"><span class='object_link'><a href="BitwiseOperators.html" title="BitwiseOperators (module)">BitwiseOperators</a></span>, <span class='object_link'><a href="BooleanFunctions.html" title="BooleanFunctions (module)">BooleanFunctions</a></span>, <span class='object_link'><a href="ComparisonOperators.html" title="ComparisonOperators (module)">ComparisonOperators</a></span>, <span class='object_link'><a href="GenericFunctions.html" title="GenericFunctions (module)">GenericFunctions</a></span>, <span class='object_link'><a href="NumericFunctions.html" title="NumericFunctions (module)">NumericFunctions</a></span>, <span class='object_link'><a href="RubyMath.html" title="RubyMath (module)">RubyMath</a></span>, <span class='object_link'><a href="RubyStats.html" title="RubyStats (module)">RubyStats</a></span></dd>
81
+ <dd class="r1"><span class='object_link'><a href="BitwiseOperators.html" title="BitwiseOperators (module)">BitwiseOperators</a></span>, <span class='object_link'><a href="BooleanFunctions.html" title="BooleanFunctions (module)">BooleanFunctions</a></span>, <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>, <span class='object_link'><a href="ComparisonOperators.html" title="ComparisonOperators (module)">ComparisonOperators</a></span>, <span class='object_link'><a href="GenericFunctions.html" title="GenericFunctions (module)">GenericFunctions</a></span>, <span class='object_link'><a href="NumericFunctions.html" title="NumericFunctions (module)">NumericFunctions</a></span>, <span class='object_link'><a href="RubyMath.html" title="RubyMath (module)">RubyMath</a></span>, <span class='object_link'><a href="RubyStats.html" title="RubyStats (module)">RubyStats</a></span></dd>
82
82
 
83
83
 
84
84
 
@@ -106,7 +106,7 @@
106
106
  <li class="public ">
107
107
  <span class="summary_signature">
108
108
 
109
- <a href="#make_binary_op-instance_method" title="#make_binary_op (instance method)">- (Object) <strong>make_binary_op</strong>(name, exec_type, func, force_type = nil, pre_condition = nil, post_condition = nil) </a>
109
+ <a href="#make_binary_op-instance_method" title="#make_binary_op (instance method)">- (Object) <strong>make_binary_op</strong>(name, exec_type, func, helper_class, force_type = nil, pre_condition = nil, post_condition = nil) </a>
110
110
 
111
111
 
112
112
 
@@ -121,7 +121,7 @@
121
121
 
122
122
 
123
123
  <span class="summary_desc"><div class='inline'>
124
- <p>????????????????????????????.</p>
124
+ <p>------------------------------------------------------------------------------------.</p>
125
125
  </div></span>
126
126
 
127
127
  </li>
@@ -130,7 +130,7 @@
130
130
  <li class="public ">
131
131
  <span class="summary_signature">
132
132
 
133
- <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>
133
+ <a href="#make_unary_op-instance_method" title="#make_unary_op (instance method)">- (Object) <strong>make_unary_op</strong>(name, exec_type, func, helper_class, force_type = nil, pre_condition = nil, post_condition = nil) </a>
134
134
 
135
135
 
136
136
 
@@ -145,79 +145,7 @@
145
145
 
146
146
 
147
147
  <span class="summary_desc"><div class='inline'>
148
- <p>????????????????????????????.</p>
149
- </div></span>
150
-
151
- </li>
152
-
153
-
154
- <li class="public ">
155
- <span class="summary_signature">
156
-
157
- <a href="#make_comparison_op-instance_method" title="#make_comparison_op (instance method)">- (Object) <strong>make_comparison_op</strong>(name, func) </a>
158
-
159
-
160
-
161
- </span>
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
- <span class="summary_desc"><div class='inline'>
172
- <p>????????????????????????????.</p>
173
- </div></span>
174
-
175
- </li>
176
-
177
-
178
- <li class="public ">
179
- <span class="summary_signature">
180
-
181
- <a href="#make_unary_op-instance_method" title="#make_unary_op (instance method)">- (Object) <strong>make_unary_op</strong>(name, exec_type, func, force_type = nil, pre_condition = nil, post_condition = nil) </a>
182
-
183
-
184
-
185
- </span>
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
- <span class="summary_desc"><div class='inline'>
196
- <p>????????????????????????????.</p>
197
- </div></span>
198
-
199
- </li>
200
-
201
-
202
- <li class="public ">
203
- <span class="summary_signature">
204
-
205
- <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>
206
-
207
-
208
-
209
- </span>
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
-
218
-
219
- <span class="summary_desc"><div class='inline'>
220
- <p>????????????????????????????.</p>
148
+ <p>------------------------------------------------------------------------------------.</p>
221
149
  </div></span>
222
150
 
223
151
  </li>
@@ -235,7 +163,7 @@
235
163
  <div class="method_details first">
236
164
  <h3 class="signature first" id="make_binary_op-instance_method">
237
165
 
238
- - (<tt>Object</tt>) <strong>make_binary_op</strong>(name, exec_type, func, force_type = nil, pre_condition = nil, post_condition = nil)
166
+ - (<tt>Object</tt>) <strong>make_binary_op</strong>(name, exec_type, func, helper_class, force_type = nil, pre_condition = nil, post_condition = nil)
239
167
 
240
168
 
241
169
 
@@ -243,8 +171,8 @@
243
171
 
244
172
  </h3><div class="docstring">
245
173
  <div class="discussion">
246
- <hr style="height: 10px">
247
- <hr style="height: 10px">
174
+ <hr>
175
+ <hr>
248
176
 
249
177
 
250
178
  </div>
@@ -269,33 +197,40 @@
269
197
  40
270
198
  41
271
199
  42
272
- 43</pre>
200
+ 43
201
+ 44
202
+ 45
203
+ 46
204
+ 47</pre>
273
205
  </td>
274
206
  <td>
275
207
  <pre class="code"><span class="info file"># File 'lib/mdarray/function_creation.rb', line 32</span>
276
208
 
277
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_make_binary_op identifier id'>make_binary_op</span><span class='lparen token'>(</span><span class='rubyid_name identifier id'>name</span><span class='comma token'>,</span> <span class='rubyid_exec_type identifier id'>exec_type</span><span class='comma token'>,</span> <span class='rubyid_func identifier id'>func</span><span class='comma token'>,</span> <span class='rubyid_force_type identifier id'>force_type</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='comma token'>,</span> <span class='rubyid_pre_condition identifier id'>pre_condition</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='comma token'>,</span>
278
- <span class='rubyid_post_condition identifier id'>post_condition</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='rparen token'>)</span>
209
+ <span class='kw'>def</span> <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_exec_type'>exec_type</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='comma'>,</span> <span class='id identifier rubyid_helper_class'>helper_class</span><span class='comma'>,</span> <span class='id identifier rubyid_force_type'>force_type</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span>
210
+ <span class='id identifier rubyid_pre_condition'>pre_condition</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_post_condition'>post_condition</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
279
211
 
280
- <span class='rubyid_define_method identifier id'>define_method</span><span class='lparen token'>(</span><span class='rubyid_name identifier id'>name</span><span class='rparen token'>)</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_op2 identifier id'>op2</span><span class='comma token'>,</span> <span class='rubyid_requested_type identifier id'>requested_type</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='rubyid_args identifier id'>args</span><span class='bitor op'>|</span>
281
- <span class='rubyid_binary_op identifier id'>binary_op</span> <span class='assign token'>=</span> <span class='rubyid_get_binary_op identifier id'>get_binary_op</span>
282
- <span class='rubyid_op identifier id'>op</span> <span class='assign token'>=</span> <span class='rubyid_binary_op identifier id'>binary_op</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span><span class='lparen token'>(</span><span class='rubyid_name identifier id'>name</span><span class='comma token'>,</span> <span class='rubyid_exec_type identifier id'>exec_type</span><span class='comma token'>,</span> <span class='rubyid_force_type identifier id'>force_type</span><span class='comma token'>,</span> <span class='rubyid_pre_condition identifier id'>pre_condition</span><span class='comma token'>,</span> <span class='rubyid_post_condition identifier id'>post_condition</span><span class='rparen token'>)</span>
283
- <span class='rubyid_op identifier id'>op</span><span class='dot token'>.</span><span class='rubyid_exec identifier id'>exec</span><span class='lparen token'>(</span><span class='rubyid_self self kw'>self</span><span class='comma token'>,</span> <span class='rubyid_op2 identifier id'>op2</span><span class='comma token'>,</span> <span class='rubyid_requested_type identifier id'>requested_type</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='rubyid_args identifier id'>args</span><span class='rparen token'>)</span>
284
- <span class='rubyid_end end kw'>end</span>
212
+ <span class='id identifier rubyid_define_method'>define_method</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_op2'>op2</span><span class='comma'>,</span> <span class='id identifier rubyid_requested_type'>requested_type</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='op'>|</span>
213
+ <span class='kw'>if</span> <span class='lparen'>(</span><span class='ivar'>@type</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>lazy</span><span class='tstring_end'>&quot;</span></span> <span class='op'>||</span> <span class='lparen'>(</span><span class='lparen'>(</span><span class='id identifier rubyid_op2'>op2</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>MDArray</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_op2'>op2</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>lazy</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
214
+ <span class='id identifier rubyid_binary_op'>binary_op</span> <span class='op'>=</span> <span class='const'>LazyBinaryOperator</span>
215
+ <span class='kw'>else</span>
216
+ <span class='id identifier rubyid_binary_op'>binary_op</span> <span class='op'>=</span> <span class='id identifier rubyid_get_binary_op'>get_binary_op</span>
217
+ <span class='kw'>end</span>
218
+ <span class='id identifier rubyid_op'>op</span> <span class='op'>=</span> <span class='id identifier rubyid_binary_op'>binary_op</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_exec_type'>exec_type</span><span class='comma'>,</span> <span class='id identifier rubyid_force_type'>force_type</span><span class='comma'>,</span> <span class='id identifier rubyid_pre_condition'>pre_condition</span><span class='comma'>,</span> <span class='id identifier rubyid_post_condition'>post_condition</span><span class='rparen'>)</span>
219
+ <span class='id identifier rubyid_op'>op</span><span class='period'>.</span><span class='id identifier rubyid_exec'>exec</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_op2'>op2</span><span class='comma'>,</span> <span class='id identifier rubyid_requested_type'>requested_type</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
220
+ <span class='kw'>end</span>
285
221
 
286
- <span class='rubyid_MDArray constant id'>MDArray</span><span class='dot token'>.</span><span class='rubyid_register_function identifier id'>register_function</span><span class='lparen token'>(</span><span class='rubyid_name identifier id'>name</span><span class='comma token'>,</span> <span class='rubyid_func identifier id'>func</span><span class='rparen token'>)</span>
222
+ <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_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='comma'>,</span> <span class='int'>2</span><span class='comma'>,</span> <span class='id identifier rubyid_helper_class'>helper_class</span><span class='rparen'>)</span>
287
223
 
288
- <span class='rubyid_end end kw'>end</span>
289
- </pre>
224
+ <span class='kw'>end</span></pre>
290
225
  </td>
291
226
  </tr>
292
227
  </table>
293
228
  </div>
294
229
 
295
230
  <div class="method_details ">
296
- <h3 class="signature " id="make_binary_operators-instance_method">
231
+ <h3 class="signature " id="make_unary_op-instance_method">
297
232
 
298
- - (<tt>Object</tt>) <strong>make_binary_operators</strong>(name, func, default = true, in_place = true)
233
+ - (<tt>Object</tt>) <strong>make_unary_op</strong>(name, exec_type, func, helper_class, force_type = nil, pre_condition = nil, post_condition = nil)
299
234
 
300
235
 
301
236
 
@@ -303,8 +238,8 @@
303
238
 
304
239
  </h3><div class="docstring">
305
240
  <div class="discussion">
306
- <hr style="height: 10px">
307
- <hr style="height: 10px">
241
+ <hr>
242
+ <hr>
308
243
 
309
244
 
310
245
  </div>
@@ -318,189 +253,34 @@
318
253
  <pre class="lines">
319
254
 
320
255
 
321
- 49
322
- 50
323
- 51
324
- 52
325
256
  53
326
257
  54
327
258
  55
328
259
  56
329
260
  57
330
- 58</pre>
331
- </td>
332
- <td>
333
- <pre class="code"><span class="info file"># File 'lib/mdarray/function_creation.rb', line 49</span>
334
-
335
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_make_binary_operators identifier id'>make_binary_operators</span><span class='lparen token'>(</span><span class='rubyid_name identifier id'>name</span><span class='comma token'>,</span> <span class='rubyid_func identifier id'>func</span><span class='comma token'>,</span> <span class='rubyid_default identifier id'>default</span> <span class='assign token'>=</span> <span class='rubyid_true true kw'>true</span><span class='comma token'>,</span> <span class='rubyid_in_place identifier id'>in_place</span> <span class='assign token'>=</span> <span class='rubyid_true true kw'>true</span><span class='rparen token'>)</span>
336
-
337
- <span class='rubyid_if if kw'>if</span> <span class='lparen token'>(</span><span class='rubyid_default identifier id'>default</span><span class='rparen token'>)</span>
338
- <span class='rubyid_make_binary_op identifier id'>make_binary_op</span><span class='lparen token'>(</span><span class='rubyid_name identifier id'>name</span><span class='comma token'>,</span> <span class='string val'>&quot;default&quot;</span><span class='comma token'>,</span> <span class='rubyid_func identifier id'>func</span><span class='rparen token'>)</span>
339
- <span class='rubyid_end end kw'>end</span>
340
- <span class='rubyid_if if kw'>if</span> <span class='lparen token'>(</span><span class='rubyid_in_place identifier id'>in_place</span><span class='rparen token'>)</span>
341
- <span class='rubyid_make_binary_op identifier id'>make_binary_op</span><span class='lparen token'>(</span><span class='rubyid_name identifier id'>name</span> <span class='plus op'>+</span> <span class='string val'>&quot;!&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;in_place&quot;</span><span class='comma token'>,</span> <span class='rubyid_func identifier id'>func</span><span class='rparen token'>)</span>
342
- <span class='rubyid_end end kw'>end</span>
343
-
344
- <span class='rubyid_end end kw'>end</span>
345
- </pre>
346
- </td>
347
- </tr>
348
- </table>
349
- </div>
350
-
351
- <div class="method_details ">
352
- <h3 class="signature " id="make_comparison_op-instance_method">
353
-
354
- - (<tt>Object</tt>) <strong>make_comparison_op</strong>(name, func)
355
-
356
-
357
-
358
-
359
-
360
- </h3><div class="docstring">
361
- <div class="discussion">
362
- <hr style="height: 10px">
363
- <hr style="height: 10px">
364
-
365
-
366
- </div>
367
- </div>
368
- <div class="tags">
369
-
370
-
371
- </div><table class="source_code">
372
- <tr>
373
- <td>
374
- <pre class="lines">
375
-
376
-
377
- 96
378
- 97
379
- 98</pre>
261
+ 58
262
+ 59
263
+ 60
264
+ 61
265
+ 62
266
+ 63
267
+ 64</pre>
380
268
  </td>
381
269
  <td>
382
- <pre class="code"><span class="info file"># File 'lib/mdarray/function_creation.rb', line 96</span>
270
+ <pre class="code"><span class="info file"># File 'lib/mdarray/function_creation.rb', line 53</span>
383
271
 
384
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_make_comparison_op identifier id'>make_comparison_op</span><span class='lparen token'>(</span><span class='rubyid_name identifier id'>name</span><span class='comma token'>,</span> <span class='rubyid_func identifier id'>func</span><span class='rparen token'>)</span>
385
- <span class='rubyid_make_binary_op identifier id'>make_binary_op</span><span class='lparen token'>(</span><span class='rubyid_name identifier id'>name</span><span class='comma token'>,</span> <span class='string val'>&quot;default&quot;</span><span class='comma token'>,</span> <span class='rubyid_func identifier id'>func</span><span class='comma token'>,</span> <span class='string val'>&quot;boolean&quot;</span><span class='rparen token'>)</span>
386
- <span class='rubyid_end end kw'>end</span>
387
- </pre>
388
- </td>
389
- </tr>
390
- </table>
391
- </div>
392
-
393
- <div class="method_details ">
394
- <h3 class="signature " id="make_unary_op-instance_method">
395
-
396
- - (<tt>Object</tt>) <strong>make_unary_op</strong>(name, exec_type, func, force_type = nil, pre_condition = nil, post_condition = nil)
397
-
398
-
399
-
400
-
401
-
402
- </h3><div class="docstring">
403
- <div class="discussion">
404
- <hr style="height: 10px">
405
- <hr style="height: 10px">
406
-
407
-
408
- </div>
409
- </div>
410
- <div class="tags">
272
+ <span class='kw'>def</span> <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_exec_type'>exec_type</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='comma'>,</span> <span class='id identifier rubyid_helper_class'>helper_class</span><span class='comma'>,</span> <span class='id identifier rubyid_force_type'>force_type</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span>
273
+ <span class='id identifier rubyid_pre_condition'>pre_condition</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_post_condition'>post_condition</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
411
274
 
275
+ <span class='id identifier rubyid_define_method'>define_method</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_requested_type'>requested_type</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='op'>|</span>
276
+ <span class='id identifier rubyid_unary_op'>unary_op</span> <span class='op'>=</span> <span class='id identifier rubyid_get_unary_op'>get_unary_op</span>
277
+ <span class='id identifier rubyid_op'>op</span> <span class='op'>=</span> <span class='id identifier rubyid_unary_op'>unary_op</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_exec_type'>exec_type</span><span class='comma'>,</span> <span class='id identifier rubyid_force_type'>force_type</span><span class='comma'>,</span> <span class='id identifier rubyid_pre_condition'>pre_condition</span><span class='comma'>,</span> <span class='id identifier rubyid_post_condition'>post_condition</span><span class='rparen'>)</span>
278
+ <span class='id identifier rubyid_op'>op</span><span class='period'>.</span><span class='id identifier rubyid_exec'>exec</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_requested_type'>requested_type</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
279
+ <span class='kw'>end</span>
412
280
 
413
- </div><table class="source_code">
414
- <tr>
415
- <td>
416
- <pre class="lines">
417
-
418
-
419
- 64
420
- 65
421
- 66
422
- 67
423
- 68
424
- 69
425
- 70
426
- 71
427
- 72
428
- 73
429
- 74
430
- 75</pre>
431
- </td>
432
- <td>
433
- <pre class="code"><span class="info file"># File 'lib/mdarray/function_creation.rb', line 64</span>
434
-
435
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_make_unary_op identifier id'>make_unary_op</span><span class='lparen token'>(</span><span class='rubyid_name identifier id'>name</span><span class='comma token'>,</span> <span class='rubyid_exec_type identifier id'>exec_type</span><span class='comma token'>,</span> <span class='rubyid_func identifier id'>func</span><span class='comma token'>,</span> <span class='rubyid_force_type identifier id'>force_type</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='comma token'>,</span> <span class='rubyid_pre_condition identifier id'>pre_condition</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='comma token'>,</span>
436
- <span class='rubyid_post_condition identifier id'>post_condition</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='rparen token'>)</span>
437
-
438
- <span class='rubyid_define_method identifier id'>define_method</span><span class='lparen token'>(</span><span class='rubyid_name identifier id'>name</span><span class='rparen token'>)</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_requested_type identifier id'>requested_type</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='rubyid_args identifier id'>args</span><span class='bitor op'>|</span>
439
- <span class='rubyid_unary_op identifier id'>unary_op</span> <span class='assign token'>=</span> <span class='rubyid_get_unary_op identifier id'>get_unary_op</span>
440
- <span class='rubyid_op identifier id'>op</span> <span class='assign token'>=</span> <span class='rubyid_unary_op identifier id'>unary_op</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span><span class='lparen token'>(</span><span class='rubyid_name identifier id'>name</span><span class='comma token'>,</span> <span class='rubyid_exec_type identifier id'>exec_type</span><span class='comma token'>,</span> <span class='rubyid_force_type identifier id'>force_type</span><span class='comma token'>,</span> <span class='rubyid_pre_condition identifier id'>pre_condition</span><span class='comma token'>,</span> <span class='rubyid_post_condition identifier id'>post_condition</span><span class='rparen token'>)</span>
441
- <span class='rubyid_op identifier id'>op</span><span class='dot token'>.</span><span class='rubyid_exec identifier id'>exec</span><span class='lparen token'>(</span><span class='rubyid_self self kw'>self</span><span class='comma token'>,</span> <span class='rubyid_requested_type identifier id'>requested_type</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='rubyid_args identifier id'>args</span><span class='rparen token'>)</span>
442
- <span class='rubyid_end end kw'>end</span>
443
-
444
- <span class='rubyid_MDArray constant id'>MDArray</span><span class='dot token'>.</span><span class='rubyid_register_function identifier id'>register_function</span><span class='lparen token'>(</span><span class='rubyid_name identifier id'>name</span><span class='comma token'>,</span> <span class='rubyid_func identifier id'>func</span><span class='rparen token'>)</span>
445
-
446
- <span class='rubyid_end end kw'>end</span>
447
- </pre>
448
- </td>
449
- </tr>
450
- </table>
451
- </div>
452
-
453
- <div class="method_details ">
454
- <h3 class="signature " id="make_unary_operators-instance_method">
455
-
456
- - (<tt>Object</tt>) <strong>make_unary_operators</strong>(name, func, default = true, in_place = true)
457
-
458
-
459
-
460
-
461
-
462
- </h3><div class="docstring">
463
- <div class="discussion">
464
- <hr style="height: 10px">
465
- <hr style="height: 10px">
466
-
467
-
468
- </div>
469
- </div>
470
- <div class="tags">
471
-
472
-
473
- </div><table class="source_code">
474
- <tr>
475
- <td>
476
- <pre class="lines">
477
-
478
-
479
- 81
480
- 82
481
- 83
482
- 84
483
- 85
484
- 86
485
- 87
486
- 88
487
- 89
488
- 90</pre>
489
- </td>
490
- <td>
491
- <pre class="code"><span class="info file"># File 'lib/mdarray/function_creation.rb', line 81</span>
492
-
493
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_make_unary_operators identifier id'>make_unary_operators</span><span class='lparen token'>(</span><span class='rubyid_name identifier id'>name</span><span class='comma token'>,</span> <span class='rubyid_func identifier id'>func</span><span class='comma token'>,</span> <span class='rubyid_default identifier id'>default</span> <span class='assign token'>=</span> <span class='rubyid_true true kw'>true</span><span class='comma token'>,</span> <span class='rubyid_in_place identifier id'>in_place</span> <span class='assign token'>=</span> <span class='rubyid_true true kw'>true</span><span class='rparen token'>)</span>
494
-
495
- <span class='rubyid_if if kw'>if</span> <span class='lparen token'>(</span><span class='rubyid_default identifier id'>default</span><span class='rparen token'>)</span>
496
- <span class='rubyid_make_unary_op identifier id'>make_unary_op</span><span class='lparen token'>(</span><span class='rubyid_name identifier id'>name</span><span class='comma token'>,</span> <span class='string val'>&quot;default&quot;</span><span class='comma token'>,</span> <span class='rubyid_func identifier id'>func</span><span class='rparen token'>)</span>
497
- <span class='rubyid_end end kw'>end</span>
498
- <span class='rubyid_if if kw'>if</span> <span class='lparen token'>(</span><span class='rubyid_in_place identifier id'>in_place</span><span class='rparen token'>)</span>
499
- <span class='rubyid_make_unary_op identifier id'>make_unary_op</span><span class='lparen token'>(</span><span class='rubyid_name identifier id'>name</span> <span class='plus op'>+</span> <span class='string val'>&quot;!&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;in_place&quot;</span><span class='comma token'>,</span> <span class='rubyid_func identifier id'>func</span><span class='rparen token'>)</span>
500
- <span class='rubyid_end end kw'>end</span>
281
+ <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_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_func'>func</span><span class='comma'>,</span> <span class='int'>1</span><span class='comma'>,</span> <span class='id identifier rubyid_helper_class'>helper_class</span><span class='rparen'>)</span>
501
282
 
502
- <span class='rubyid_end end kw'>end</span>
503
- </pre>
283
+ <span class='kw'>end</span></pre>
504
284
  </td>
505
285
  </tr>
506
286
  </table>
@@ -511,9 +291,9 @@
511
291
  </div>
512
292
 
513
293
  <div id="footer">
514
- Generated on Thu May 16 12:48:35 2013 by
294
+ Generated on Tue Jul 14 18:08:56 2015 by
515
295
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
516
- 0.8.5.2 (ruby-1.9.3).
296
+ 0.8.7.6 (ruby-1.9.3).
517
297
  </div>
518
298
 
519
299
  </body>
@@ -6,18 +6,18 @@
6
6
  <title>
7
7
  Class: FunctionMap
8
8
 
9
- &mdash; Documentation by YARD 0.8.5.2
9
+ &mdash; 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" media="screen" charset="utf-8" />
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" media="screen" charset="utf-8" />
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#!" + escape(window.location.href);
20
+ framesUrl = "frames.html#!FunctionMap.html";
21
21
  </script>
22
22
 
23
23
 
@@ -106,6 +106,35 @@
106
106
  <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
107
107
  <ul class="summary">
108
108
 
109
+ <li class="public ">
110
+ <span class="summary_signature">
111
+
112
+ <a href="#arity-instance_method" title="#arity (instance method)">- (Object) <strong>arity</strong> </a>
113
+
114
+
115
+
116
+ </span>
117
+
118
+
119
+
120
+
121
+ <span class="note title readonly">readonly</span>
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+ <span class="summary_desc"><div class='inline'>
132
+ <p>arity of the function: 1 or 2.</p>
133
+ </div></span>
134
+
135
+ </li>
136
+
137
+
109
138
  <li class="public ">
110
139
  <span class="summary_signature">
111
140
 
@@ -130,6 +159,35 @@
130
159
  <p>Returns the value of attribute description.</p>
131
160
  </div></span>
132
161
 
162
+ </li>
163
+
164
+
165
+ <li class="public ">
166
+ <span class="summary_signature">
167
+
168
+ <a href="#elmtwise-instance_method" title="#elmtwise (instance method)">- (Object) <strong>elmtwise</strong> </a>
169
+
170
+
171
+
172
+ </span>
173
+
174
+
175
+
176
+
177
+ <span class="note title readonly">readonly</span>
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+ <span class="summary_desc"><div class='inline'>
188
+ <p>set to true if function applies to all elmts of the array.</p>
189
+ </div></span>
190
+
133
191
  </li>
134
192
 
135
193
 
@@ -156,7 +214,36 @@
156
214
 
157
215
 
158
216
  <span class="summary_desc"><div class='inline'>
159
- <p>Returns the value of attribute function.</p>
217
+ <p>function to be applied to elmts.</p>
218
+ </div></span>
219
+
220
+ </li>
221
+
222
+
223
+ <li class="public ">
224
+ <span class="summary_signature">
225
+
226
+ <a href="#helper-instance_method" title="#helper (instance method)">- (Object) <strong>helper</strong> </a>
227
+
228
+
229
+
230
+ </span>
231
+
232
+
233
+
234
+
235
+ <span class="note title readonly">readonly</span>
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+ <span class="summary_desc"><div class='inline'>
246
+ <p>Helper method to perform the function.</p>
160
247
  </div></span>
161
248
 
162
249
  </li>
@@ -217,6 +304,35 @@
217
304
  <p>Returns the value of attribute input2_type.</p>
218
305
  </div></span>
219
306
 
307
+ </li>
308
+
309
+
310
+ <li class="public ">
311
+ <span class="summary_signature">
312
+
313
+ <a href="#is_global-instance_method" title="#is_global (instance method)">- (Object) <strong>is_global</strong> </a>
314
+
315
+
316
+
317
+ </span>
318
+
319
+
320
+
321
+
322
+ <span class="note title readonly">readonly</span>
323
+
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+ <span class="summary_desc"><div class='inline'>
333
+ <p>Returns the value of attribute is_global.</p>
334
+ </div></span>
335
+
220
336
  </li>
221
337
 
222
338
 
@@ -243,7 +359,7 @@
243
359
 
244
360
 
245
361
  <span class="summary_desc"><div class='inline'>
246
- <p>Returns the value of attribute long_name.</p>
362
+ <p>long name of the function.</p>
247
363
  </div></span>
248
364
 
249
365
  </li>
@@ -252,7 +368,7 @@
252
368
  <li class="public ">
253
369
  <span class="summary_signature">
254
370
 
255
- <a href="#return_type-instance_method" title="#return_type (instance method)">- (Object) <strong>return_type</strong> </a>
371
+ <a href="#package-instance_method" title="#package (instance method)">- (Object) <strong>package</strong> </a>
256
372
 
257
373
 
258
374
 
@@ -272,7 +388,7 @@
272
388
 
273
389
 
274
390
  <span class="summary_desc"><div class='inline'>
275
- <p>Returns the value of attribute return_type.</p>
391
+ <p>package where the function was implemented.</p>
276
392
  </div></span>
277
393
 
278
394
  </li>
@@ -281,7 +397,7 @@
281
397
  <li class="public ">
282
398
  <span class="summary_signature">
283
399
 
284
- <a href="#scope-instance_method" title="#scope (instance method)">- (Object) <strong>scope</strong> </a>
400
+ <a href="#return_type-instance_method" title="#return_type (instance method)">- (Object) <strong>return_type</strong> </a>
285
401
 
286
402
 
287
403
 
@@ -301,7 +417,7 @@
301
417
 
302
418
 
303
419
  <span class="summary_desc"><div class='inline'>
304
- <p>Returns the value of attribute scope.</p>
420
+ <p>Returns the value of attribute return_type.</p>
305
421
  </div></span>
306
422
 
307
423
  </li>
@@ -330,7 +446,7 @@
330
446
 
331
447
 
332
448
  <span class="summary_desc"><div class='inline'>
333
- <p>Returns the value of attribute short_name.</p>
449
+ <p>short name of the function.</p>
334
450
  </div></span>
335
451
 
336
452
  </li>
@@ -352,7 +468,7 @@
352
468
  <li class="public ">
353
469
  <span class="summary_signature">
354
470
 
355
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (FunctionMap) <strong>initialize</strong>(short_name, long_name, scope, function, return_type, input1_type, input2_type) </a>
471
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (FunctionMap) <strong>initialize</strong>(short_name, long_name, package, function, return_type, input1_type, input2_type, arity, helper, elmtwise = true, is_global = false) </a>
356
472
 
357
473
 
358
474
 
@@ -369,7 +485,7 @@
369
485
 
370
486
 
371
487
  <span class="summary_desc"><div class='inline'>
372
- <p>????????????????????????????.</p>
488
+ <p>------------------------------------------------------------------------------------.</p>
373
489
  </div></span>
374
490
 
375
491
  </li>
@@ -384,7 +500,7 @@
384
500
  <div class="method_details first">
385
501
  <h3 class="signature first" id="initialize-instance_method">
386
502
 
387
- - (<tt><span class='object_link'><a href="" title="FunctionMap (class)">FunctionMap</a></span></tt>) <strong>initialize</strong>(short_name, long_name, scope, function, return_type, input1_type, input2_type)
503
+ - (<tt><span class='object_link'><a href="" title="FunctionMap (class)">FunctionMap</a></span></tt>) <strong>initialize</strong>(short_name, long_name, package, function, return_type, input1_type, input2_type, arity, helper, elmtwise = true, is_global = false)
388
504
 
389
505
 
390
506
 
@@ -392,8 +508,8 @@
392
508
 
393
509
  </h3><div class="docstring">
394
510
  <div class="discussion">
395
- <hr style="height: 10px">
396
- <hr style="height: 10px">
511
+ <hr>
512
+ <hr>
397
513
 
398
514
 
399
515
  </div>
@@ -407,10 +523,6 @@
407
523
  <pre class="lines">
408
524
 
409
525
 
410
- 42
411
- 43
412
- 44
413
- 45
414
526
  46
415
527
  47
416
528
  48
@@ -418,24 +530,35 @@
418
530
  50
419
531
  51
420
532
  52
421
- 53</pre>
533
+ 53
534
+ 54
535
+ 55
536
+ 56
537
+ 57
538
+ 58
539
+ 59
540
+ 60
541
+ 61</pre>
422
542
  </td>
423
543
  <td>
424
- <pre class="code"><span class="info file"># File 'lib/mdarray/function_map.rb', line 42</span>
425
-
426
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='rubyid_short_name identifier id'>short_name</span><span class='comma token'>,</span> <span class='rubyid_long_name identifier id'>long_name</span><span class='comma token'>,</span> <span class='rubyid_scope identifier id'>scope</span><span class='comma token'>,</span> <span class='rubyid_function identifier id'>function</span><span class='comma token'>,</span> <span class='rubyid_return_type identifier id'>return_type</span><span class='comma token'>,</span> <span class='rubyid_input1_type identifier id'>input1_type</span><span class='comma token'>,</span>
427
- <span class='rubyid_input2_type identifier id'>input2_type</span><span class='rparen token'>)</span>
428
-
429
- <span class='rubyid_@short_name ivar id'>@short_name</span> <span class='assign token'>=</span> <span class='rubyid_short_name identifier id'>short_name</span>
430
- <span class='rubyid_@long_name ivar id'>@long_name</span> <span class='assign token'>=</span> <span class='rubyid_long_name identifier id'>long_name</span>
431
- <span class='rubyid_@scope ivar id'>@scope</span> <span class='assign token'>=</span> <span class='rubyid_scope identifier id'>scope</span>
432
- <span class='rubyid_@function ivar id'>@function</span> <span class='assign token'>=</span> <span class='rubyid_function identifier id'>function</span>
433
- <span class='rubyid_@return_type ivar id'>@return_type</span> <span class='assign token'>=</span> <span class='rubyid_return_type identifier id'>return_type</span>
434
- <span class='rubyid_@input1_type ivar id'>@input1_type</span> <span class='assign token'>=</span> <span class='rubyid_input1_type identifier id'>input1_type</span>
435
- <span class='rubyid_@input2_type ivar id'>@input2_type</span> <span class='assign token'>=</span> <span class='rubyid_input2_type identifier id'>input2_type</span>
436
-
437
- <span class='rubyid_end end kw'>end</span>
438
- </pre>
544
+ <pre class="code"><span class="info file"># File 'lib/mdarray/function_map.rb', line 46</span>
545
+
546
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</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_package'>package</span><span class='comma'>,</span> <span class='id identifier rubyid_function'>function</span><span class='comma'>,</span> <span class='id identifier rubyid_return_type'>return_type</span><span class='comma'>,</span> <span class='id identifier rubyid_input1_type'>input1_type</span><span class='comma'>,</span>
547
+ <span class='id identifier rubyid_input2_type'>input2_type</span><span class='comma'>,</span> <span class='id identifier rubyid_arity'>arity</span><span class='comma'>,</span> <span class='id identifier rubyid_helper'>helper</span><span class='comma'>,</span> <span class='id identifier rubyid_elmtwise'>elmtwise</span> <span class='op'>=</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='id identifier rubyid_is_global'>is_global</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
548
+
549
+ <span class='ivar'>@short_name</span> <span class='op'>=</span> <span class='id identifier rubyid_short_name'>short_name</span>
550
+ <span class='ivar'>@long_name</span> <span class='op'>=</span> <span class='id identifier rubyid_long_name'>long_name</span>
551
+ <span class='ivar'>@package</span> <span class='op'>=</span> <span class='id identifier rubyid_package'>package</span>
552
+ <span class='ivar'>@function</span> <span class='op'>=</span> <span class='id identifier rubyid_function'>function</span>
553
+ <span class='ivar'>@return_type</span> <span class='op'>=</span> <span class='id identifier rubyid_return_type'>return_type</span>
554
+ <span class='ivar'>@input1_type</span> <span class='op'>=</span> <span class='id identifier rubyid_input1_type'>input1_type</span>
555
+ <span class='ivar'>@input2_type</span> <span class='op'>=</span> <span class='id identifier rubyid_input2_type'>input2_type</span>
556
+ <span class='ivar'>@arity</span> <span class='op'>=</span> <span class='id identifier rubyid_arity'>arity</span>
557
+ <span class='ivar'>@helper</span> <span class='op'>=</span> <span class='id identifier rubyid_helper'>helper</span>
558
+ <span class='ivar'>@elmtwise</span> <span class='op'>=</span> <span class='id identifier rubyid_elmtwise'>elmtwise</span>
559
+ <span class='ivar'>@is_global</span> <span class='op'>=</span> <span class='id identifier rubyid_is_global'>is_global</span>
560
+
561
+ <span class='kw'>end</span></pre>
439
562
  </td>
440
563
  </tr>
441
564
  </table>
@@ -447,9 +570,52 @@
447
570
  <h2>Instance Attribute Details</h2>
448
571
 
449
572
 
450
- <span id="description=-instance_method"></span>
573
+ <span id=""></span>
451
574
  <div class="method_details first">
452
- <h3 class="signature first" id="description-instance_method">
575
+ <h3 class="signature first" id="arity-instance_method">
576
+
577
+ - (<tt>Object</tt>) <strong>arity</strong> <span class="extras">(readonly)</span>
578
+
579
+
580
+
581
+
582
+
583
+ </h3><div class="docstring">
584
+ <div class="discussion">
585
+
586
+ <p>arity of the function: 1 or 2</p>
587
+
588
+
589
+ </div>
590
+ </div>
591
+ <div class="tags">
592
+
593
+
594
+ </div><table class="source_code">
595
+ <tr>
596
+ <td>
597
+ <pre class="lines">
598
+
599
+
600
+ 35
601
+ 36
602
+ 37</pre>
603
+ </td>
604
+ <td>
605
+ <pre class="code"><span class="info file"># File 'lib/mdarray/function_map.rb', line 35</span>
606
+
607
+ <span class='kw'>def</span> <span class='id identifier rubyid_arity'>arity</span>
608
+ <span class='ivar'>@arity</span>
609
+ <span class='kw'>end</span></pre>
610
+ </td>
611
+ </tr>
612
+ </table>
613
+ </div>
614
+
615
+
616
+ <span id="description=-instance_method"></span>
617
+ <div class="method_details ">
618
+ <h3 class="signature " id="description-instance_method">
453
619
 
454
620
  - (<tt>Object</tt>) <strong>description</strong>
455
621
 
@@ -474,17 +640,60 @@
474
640
  <pre class="lines">
475
641
 
476
642
 
477
- 36
478
- 37
479
- 38</pre>
643
+ 40
644
+ 41
645
+ 42</pre>
480
646
  </td>
481
647
  <td>
482
- <pre class="code"><span class="info file"># File 'lib/mdarray/function_map.rb', line 36</span>
648
+ <pre class="code"><span class="info file"># File 'lib/mdarray/function_map.rb', line 40</span>
483
649
 
484
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_description identifier id'>description</span>
485
- <span class='rubyid_@description ivar id'>@description</span>
486
- <span class='rubyid_end end kw'>end</span>
487
- </pre>
650
+ <span class='kw'>def</span> <span class='id identifier rubyid_description'>description</span>
651
+ <span class='ivar'>@description</span>
652
+ <span class='kw'>end</span></pre>
653
+ </td>
654
+ </tr>
655
+ </table>
656
+ </div>
657
+
658
+
659
+ <span id=""></span>
660
+ <div class="method_details ">
661
+ <h3 class="signature " id="elmtwise-instance_method">
662
+
663
+ - (<tt>Object</tt>) <strong>elmtwise</strong> <span class="extras">(readonly)</span>
664
+
665
+
666
+
667
+
668
+
669
+ </h3><div class="docstring">
670
+ <div class="discussion">
671
+
672
+ <p>set to true if function applies to all elmts of the array. By default set
673
+ to false</p>
674
+
675
+
676
+ </div>
677
+ </div>
678
+ <div class="tags">
679
+
680
+
681
+ </div><table class="source_code">
682
+ <tr>
683
+ <td>
684
+ <pre class="lines">
685
+
686
+
687
+ 39
688
+ 40
689
+ 41</pre>
690
+ </td>
691
+ <td>
692
+ <pre class="code"><span class="info file"># File 'lib/mdarray/function_map.rb', line 39</span>
693
+
694
+ <span class='kw'>def</span> <span class='id identifier rubyid_elmtwise'>elmtwise</span>
695
+ <span class='ivar'>@elmtwise</span>
696
+ <span class='kw'>end</span></pre>
488
697
  </td>
489
698
  </tr>
490
699
  </table>
@@ -504,7 +713,7 @@
504
713
  </h3><div class="docstring">
505
714
  <div class="discussion">
506
715
 
507
- <p>Returns the value of attribute function</p>
716
+ <p>function to be applied to elmts</p>
508
717
 
509
718
 
510
719
  </div>
@@ -525,10 +734,52 @@
525
734
  <td>
526
735
  <pre class="code"><span class="info file"># File 'lib/mdarray/function_map.rb', line 31</span>
527
736
 
528
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_function identifier id'>function</span>
529
- <span class='rubyid_@function ivar id'>@function</span>
530
- <span class='rubyid_end end kw'>end</span>
531
- </pre>
737
+ <span class='kw'>def</span> <span class='id identifier rubyid_function'>function</span>
738
+ <span class='ivar'>@function</span>
739
+ <span class='kw'>end</span></pre>
740
+ </td>
741
+ </tr>
742
+ </table>
743
+ </div>
744
+
745
+
746
+ <span id=""></span>
747
+ <div class="method_details ">
748
+ <h3 class="signature " id="helper-instance_method">
749
+
750
+ - (<tt>Object</tt>) <strong>helper</strong> <span class="extras">(readonly)</span>
751
+
752
+
753
+
754
+
755
+
756
+ </h3><div class="docstring">
757
+ <div class="discussion">
758
+
759
+ <p>Helper method to perform the function</p>
760
+
761
+
762
+ </div>
763
+ </div>
764
+ <div class="tags">
765
+
766
+
767
+ </div><table class="source_code">
768
+ <tr>
769
+ <td>
770
+ <pre class="lines">
771
+
772
+
773
+ 36
774
+ 37
775
+ 38</pre>
776
+ </td>
777
+ <td>
778
+ <pre class="code"><span class="info file"># File 'lib/mdarray/function_map.rb', line 36</span>
779
+
780
+ <span class='kw'>def</span> <span class='id identifier rubyid_helper'>helper</span>
781
+ <span class='ivar'>@helper</span>
782
+ <span class='kw'>end</span></pre>
532
783
  </td>
533
784
  </tr>
534
785
  </table>
@@ -569,10 +820,9 @@
569
820
  <td>
570
821
  <pre class="code"><span class="info file"># File 'lib/mdarray/function_map.rb', line 33</span>
571
822
 
572
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_input1_type identifier id'>input1_type</span>
573
- <span class='rubyid_@input1_type ivar id'>@input1_type</span>
574
- <span class='rubyid_end end kw'>end</span>
575
- </pre>
823
+ <span class='kw'>def</span> <span class='id identifier rubyid_input1_type'>input1_type</span>
824
+ <span class='ivar'>@input1_type</span>
825
+ <span class='kw'>end</span></pre>
576
826
  </td>
577
827
  </tr>
578
828
  </table>
@@ -613,10 +863,52 @@
613
863
  <td>
614
864
  <pre class="code"><span class="info file"># File 'lib/mdarray/function_map.rb', line 34</span>
615
865
 
616
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_input2_type identifier id'>input2_type</span>
617
- <span class='rubyid_@input2_type ivar id'>@input2_type</span>
618
- <span class='rubyid_end end kw'>end</span>
619
- </pre>
866
+ <span class='kw'>def</span> <span class='id identifier rubyid_input2_type'>input2_type</span>
867
+ <span class='ivar'>@input2_type</span>
868
+ <span class='kw'>end</span></pre>
869
+ </td>
870
+ </tr>
871
+ </table>
872
+ </div>
873
+
874
+
875
+ <span id=""></span>
876
+ <div class="method_details ">
877
+ <h3 class="signature " id="is_global-instance_method">
878
+
879
+ - (<tt>Object</tt>) <strong>is_global</strong> <span class="extras">(readonly)</span>
880
+
881
+
882
+
883
+
884
+
885
+ </h3><div class="docstring">
886
+ <div class="discussion">
887
+
888
+ <p>Returns the value of attribute is_global</p>
889
+
890
+
891
+ </div>
892
+ </div>
893
+ <div class="tags">
894
+
895
+
896
+ </div><table class="source_code">
897
+ <tr>
898
+ <td>
899
+ <pre class="lines">
900
+
901
+
902
+ 37
903
+ 38
904
+ 39</pre>
905
+ </td>
906
+ <td>
907
+ <pre class="code"><span class="info file"># File 'lib/mdarray/function_map.rb', line 37</span>
908
+
909
+ <span class='kw'>def</span> <span class='id identifier rubyid_is_global'>is_global</span>
910
+ <span class='ivar'>@is_global</span>
911
+ <span class='kw'>end</span></pre>
620
912
  </td>
621
913
  </tr>
622
914
  </table>
@@ -636,7 +928,7 @@
636
928
  </h3><div class="docstring">
637
929
  <div class="discussion">
638
930
 
639
- <p>Returns the value of attribute long_name</p>
931
+ <p>long name of the function</p>
640
932
 
641
933
 
642
934
  </div>
@@ -657,10 +949,9 @@
657
949
  <td>
658
950
  <pre class="code"><span class="info file"># File 'lib/mdarray/function_map.rb', line 29</span>
659
951
 
660
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_long_name identifier id'>long_name</span>
661
- <span class='rubyid_@long_name ivar id'>@long_name</span>
662
- <span class='rubyid_end end kw'>end</span>
663
- </pre>
952
+ <span class='kw'>def</span> <span class='id identifier rubyid_long_name'>long_name</span>
953
+ <span class='ivar'>@long_name</span>
954
+ <span class='kw'>end</span></pre>
664
955
  </td>
665
956
  </tr>
666
957
  </table>
@@ -669,9 +960,9 @@
669
960
 
670
961
  <span id=""></span>
671
962
  <div class="method_details ">
672
- <h3 class="signature " id="return_type-instance_method">
963
+ <h3 class="signature " id="package-instance_method">
673
964
 
674
- - (<tt>Object</tt>) <strong>return_type</strong> <span class="extras">(readonly)</span>
965
+ - (<tt>Object</tt>) <strong>package</strong> <span class="extras">(readonly)</span>
675
966
 
676
967
 
677
968
 
@@ -680,7 +971,7 @@
680
971
  </h3><div class="docstring">
681
972
  <div class="discussion">
682
973
 
683
- <p>Returns the value of attribute return_type</p>
974
+ <p>package where the function was implemented</p>
684
975
 
685
976
 
686
977
  </div>
@@ -694,17 +985,16 @@
694
985
  <pre class="lines">
695
986
 
696
987
 
697
- 32
698
- 33
699
- 34</pre>
988
+ 30
989
+ 31
990
+ 32</pre>
700
991
  </td>
701
992
  <td>
702
- <pre class="code"><span class="info file"># File 'lib/mdarray/function_map.rb', line 32</span>
993
+ <pre class="code"><span class="info file"># File 'lib/mdarray/function_map.rb', line 30</span>
703
994
 
704
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_return_type identifier id'>return_type</span>
705
- <span class='rubyid_@return_type ivar id'>@return_type</span>
706
- <span class='rubyid_end end kw'>end</span>
707
- </pre>
995
+ <span class='kw'>def</span> <span class='id identifier rubyid_package'>package</span>
996
+ <span class='ivar'>@package</span>
997
+ <span class='kw'>end</span></pre>
708
998
  </td>
709
999
  </tr>
710
1000
  </table>
@@ -713,9 +1003,9 @@
713
1003
 
714
1004
  <span id=""></span>
715
1005
  <div class="method_details ">
716
- <h3 class="signature " id="scope-instance_method">
1006
+ <h3 class="signature " id="return_type-instance_method">
717
1007
 
718
- - (<tt>Object</tt>) <strong>scope</strong> <span class="extras">(readonly)</span>
1008
+ - (<tt>Object</tt>) <strong>return_type</strong> <span class="extras">(readonly)</span>
719
1009
 
720
1010
 
721
1011
 
@@ -724,7 +1014,7 @@
724
1014
  </h3><div class="docstring">
725
1015
  <div class="discussion">
726
1016
 
727
- <p>Returns the value of attribute scope</p>
1017
+ <p>Returns the value of attribute return_type</p>
728
1018
 
729
1019
 
730
1020
  </div>
@@ -738,17 +1028,16 @@
738
1028
  <pre class="lines">
739
1029
 
740
1030
 
741
- 30
742
- 31
743
- 32</pre>
1031
+ 32
1032
+ 33
1033
+ 34</pre>
744
1034
  </td>
745
1035
  <td>
746
- <pre class="code"><span class="info file"># File 'lib/mdarray/function_map.rb', line 30</span>
1036
+ <pre class="code"><span class="info file"># File 'lib/mdarray/function_map.rb', line 32</span>
747
1037
 
748
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_scope identifier id'>scope</span>
749
- <span class='rubyid_@scope ivar id'>@scope</span>
750
- <span class='rubyid_end end kw'>end</span>
751
- </pre>
1038
+ <span class='kw'>def</span> <span class='id identifier rubyid_return_type'>return_type</span>
1039
+ <span class='ivar'>@return_type</span>
1040
+ <span class='kw'>end</span></pre>
752
1041
  </td>
753
1042
  </tr>
754
1043
  </table>
@@ -768,7 +1057,7 @@
768
1057
  </h3><div class="docstring">
769
1058
  <div class="discussion">
770
1059
 
771
- <p>Returns the value of attribute short_name</p>
1060
+ <p>short name of the function</p>
772
1061
 
773
1062
 
774
1063
  </div>
@@ -789,10 +1078,9 @@
789
1078
  <td>
790
1079
  <pre class="code"><span class="info file"># File 'lib/mdarray/function_map.rb', line 28</span>
791
1080
 
792
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_short_name identifier id'>short_name</span>
793
- <span class='rubyid_@short_name ivar id'>@short_name</span>
794
- <span class='rubyid_end end kw'>end</span>
795
- </pre>
1081
+ <span class='kw'>def</span> <span class='id identifier rubyid_short_name'>short_name</span>
1082
+ <span class='ivar'>@short_name</span>
1083
+ <span class='kw'>end</span></pre>
796
1084
  </td>
797
1085
  </tr>
798
1086
  </table>
@@ -804,9 +1092,9 @@
804
1092
  </div>
805
1093
 
806
1094
  <div id="footer">
807
- Generated on Thu May 16 12:48:41 2013 by
1095
+ Generated on Tue Jul 14 18:09:00 2015 by
808
1096
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
809
- 0.8.5.2 (ruby-1.9.3).
1097
+ 0.8.7.6 (ruby-1.9.3).
810
1098
  </div>
811
1099
 
812
1100
  </body>