mdarray 0.4.3.pre-java → 0.5.0-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.
- data/README.md +82 -14
- data/Rakefile +8 -2
- data/doc/BinaryOperator.html +227 -0
- data/doc/BitwiseOperators.html +135 -0
- data/doc/BooleanFunctions.html +135 -0
- data/doc/BooleanMDArray.html +193 -0
- data/doc/ByteMDArray.html +271 -0
- data/doc/Colt.html +269 -0
- data/doc/ComparisonOperators.html +135 -0
- data/doc/Const.html +490 -0
- data/doc/Csv.html +589 -0
- data/doc/DDescriptive.html +4373 -0
- data/doc/DoubleMDArray.html +555 -0
- data/doc/DoubleStatList.html +256 -0
- data/doc/FastBinaryOperator.html +743 -0
- data/doc/FastBoolean.html +512 -0
- data/doc/FastUnaryOperator.html +583 -0
- data/doc/FloatMDArray.html +237 -0
- data/doc/FunctionCreation.html +520 -0
- data/doc/FunctionMap.html +813 -0
- data/doc/GenericFunctions.html +135 -0
- data/doc/IntMDArray.html +259 -0
- data/doc/LongMDArray.html +257 -0
- data/doc/MDArray.html +9639 -0
- data/doc/MDArray/Counter.html +2767 -0
- data/doc/MDArray/IteratorFast.html +872 -0
- data/doc/MDArray/IteratorFastBoolean.html +384 -0
- data/doc/MDArray/IteratorFastByte.html +373 -0
- data/doc/MDArray/IteratorFastChar.html +384 -0
- data/doc/MDArray/IteratorFastDouble.html +384 -0
- data/doc/MDArray/IteratorFastFloat.html +384 -0
- data/doc/MDArray/IteratorFastInt.html +384 -0
- data/doc/MDArray/IteratorFastLong.html +384 -0
- data/doc/MDArray/IteratorFastShort.html +384 -0
- data/doc/MDArrayTest.html +125 -0
- data/doc/NonNumericalMDArray.html +177 -0
- data/doc/NumericFunctions.html +297 -0
- data/doc/NumericalMDArray.html +278 -0
- data/doc/Operator.html +826 -0
- data/doc/Proc.html +1097 -0
- data/doc/RubyBinaryOperator.html +526 -0
- data/doc/RubyFunctions.html +232 -0
- data/doc/RubyMath.html +135 -0
- data/doc/RubyStats.html +135 -0
- data/doc/RubyUnaryOperator.html +510 -0
- data/doc/ShortMDArray.html +267 -0
- data/doc/StatList.html +1176 -0
- data/doc/StringMDArray.html +181 -0
- data/doc/StructureMDArray.html +181 -0
- data/doc/UnaryOperator.html +227 -0
- data/doc/UserFunction.html +297 -0
- data/doc/_index.html +467 -0
- data/doc/class_list.html +53 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +338 -0
- data/doc/file.README.html +173 -0
- data/doc/file_list.html +55 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +173 -0
- data/doc/js/app.js +214 -0
- data/doc/js/full_list.js +173 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +2524 -0
- data/doc/top-level-namespace.html +114 -0
- data/lib/colt/colt.rb +56 -0
- data/lib/colt/colt_mdarray.rb +95 -0
- data/lib/colt/double_descriptive.rb +636 -0
- data/lib/colt/probability.rb +12 -0
- data/lib/colt/stat_list.rb +192 -0
- data/lib/env.rb +5 -1
- data/lib/mdarray.rb +5 -0
- data/lib/mdarray/access.rb +2 -2
- data/lib/mdarray/creation.rb +34 -19
- data/lib/mdarray/csv.rb +61 -0
- data/lib/mdarray/fast_operators.rb +241 -0
- data/lib/mdarray/operators.rb +18 -0
- data/lib/mdarray/ruby_operators.rb +2 -18
- data/lib/mdarray/ruby_stats.rb +1 -1
- data/lib/mdarray/views.rb +8 -8
- data/target/helper.jar +0 -0
- data/test/colt/VALE3.csv +3437 -0
- data/test/colt/VALE3.xlsx +0 -0
- data/test/colt/VALE3_short-err.csv +20 -0
- data/test/colt/VALE3_short.csv +20 -0
- data/test/colt/VALE3_short.xlsx +0 -0
- data/test/colt/test_complete.rb +25 -0
- data/test/colt/test_stat_list.rb +128 -0
- data/test/colt/test_statistics.rb +114 -0
- data/test/complete.rb +25 -0
- data/test/env.rb +54 -30
- data/test/{arithmetic_casting.rb → mdarray/arithmetic_casting.rb} +0 -0
- data/test/{test_access.rb → mdarray/test_access.rb} +0 -0
- data/test/{test_boolean.rb → mdarray/test_boolean.rb} +0 -2
- data/test/{test_comparison.rb → mdarray/test_comparison.rb} +0 -0
- data/test/{test_complete.rb → mdarray/test_complete.rb} +3 -14
- data/test/{test_counter.rb → mdarray/test_counter.rb} +0 -0
- data/test/{test_creation.rb → mdarray/test_creation.rb} +0 -0
- data/test/{test_error.rb → mdarray/test_error.rb} +8 -5
- data/test/{test_operator.rb → mdarray/test_operator.rb} +6 -2
- data/test/{test_speed.rb → mdarray/test_performance.rb} +74 -39
- data/test/{test_printing.rb → mdarray/test_printing.rb} +0 -1
- data/test/{test_shape.rb → mdarray/test_shape.rb} +0 -0
- data/test/mdarray/test_statistics.rb +80 -0
- data/test/{test_trigonometry.rb → mdarray/test_trigonometry.rb} +0 -0
- data/test/{test_views.rb → mdarray/test_views.rb} +0 -0
- data/vendor/parallelcolt-0.10.0.jar +0 -0
- data/version.rb +1 -1
- metadata +122 -39
- data/test/test_lazy.rb +0 -52
- data/test/test_statistics.rb +0 -38
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
+
<title>
|
|
7
|
+
Class: FloatMDArray
|
|
8
|
+
|
|
9
|
+
— Documentation by YARD 0.8.5.2
|
|
10
|
+
|
|
11
|
+
</title>
|
|
12
|
+
|
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
|
14
|
+
|
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" 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#!" + escape(window.location.href);
|
|
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 (F)</a> »
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
<span class="title">FloatMDArray</span>
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<div id="search">
|
|
44
|
+
|
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
|
46
|
+
href="class_list.html">
|
|
47
|
+
Class List
|
|
48
|
+
</a>
|
|
49
|
+
|
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
|
51
|
+
href="method_list.html">
|
|
52
|
+
Method List
|
|
53
|
+
</a>
|
|
54
|
+
|
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
|
56
|
+
href="file_list.html">
|
|
57
|
+
File List
|
|
58
|
+
</a>
|
|
59
|
+
|
|
60
|
+
</div>
|
|
61
|
+
<div class="clear"></div>
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
<iframe id="search_frame"></iframe>
|
|
65
|
+
|
|
66
|
+
<div id="content"><h1>Class: FloatMDArray
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</h1>
|
|
71
|
+
|
|
72
|
+
<dl class="box">
|
|
73
|
+
|
|
74
|
+
<dt class="r1">Inherits:</dt>
|
|
75
|
+
<dd class="r1">
|
|
76
|
+
<span class="inheritName"><span class='object_link'><a href="DoubleMDArray.html" title="DoubleMDArray (class)">DoubleMDArray</a></span></span>
|
|
77
|
+
|
|
78
|
+
<ul class="fullTree">
|
|
79
|
+
<li>Object</li>
|
|
80
|
+
|
|
81
|
+
<li class="next"><span class='object_link'><a href="MDArray.html" title="MDArray (class)">MDArray</a></span></li>
|
|
82
|
+
|
|
83
|
+
<li class="next"><span class='object_link'><a href="NumericalMDArray.html" title="NumericalMDArray (class)">NumericalMDArray</a></span></li>
|
|
84
|
+
|
|
85
|
+
<li class="next"><span class='object_link'><a href="DoubleMDArray.html" title="DoubleMDArray (class)">DoubleMDArray</a></span></li>
|
|
86
|
+
|
|
87
|
+
<li class="next">FloatMDArray</li>
|
|
88
|
+
|
|
89
|
+
</ul>
|
|
90
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
91
|
+
|
|
92
|
+
</dd>
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
<dt class="r2 last">Defined in:</dt>
|
|
103
|
+
<dd class="r2 last">lib/mdarray/hierarchy.rb</dd>
|
|
104
|
+
|
|
105
|
+
</dl>
|
|
106
|
+
<div class="clear"></div>
|
|
107
|
+
|
|
108
|
+
<div id="subclasses">
|
|
109
|
+
<h2>Direct Known Subclasses</h2>
|
|
110
|
+
<p class="children"><span class='object_link'><a href="LongMDArray.html" title="LongMDArray (class)">LongMDArray</a></span></p>
|
|
111
|
+
</div>
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
<h2>Instance Attribute Summary</h2>
|
|
119
|
+
|
|
120
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="DoubleMDArray.html" title="DoubleMDArray (class)">DoubleMDArray</a></span></h3>
|
|
121
|
+
<p class="inherited"><span class='object_link'><a href="DoubleMDArray.html#stat_list-instance_method" title="DoubleMDArray#stat_list (method)">#stat_list</a></span></p>
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="MDArray.html" title="MDArray (class)">MDArray</a></span></h3>
|
|
126
|
+
<p class="inherited"><span class='object_link'><a href="MDArray.html#binary_operator-instance_method" title="MDArray#binary_operator (method)">#binary_operator</a></span>, <span class='object_link'><a href="MDArray.html#coerced-instance_method" title="MDArray#coerced (method)">#coerced</a></span>, <span class='object_link'><a href="MDArray.html#float_output_precision%3D-instance_method" title="MDArray#float_output_precision= (method)">#float_output_precision</a></span>, <span class='object_link'><a href="MDArray.html#float_output_suppress_small%3D-instance_method" title="MDArray#float_output_suppress_small= (method)">#float_output_suppress_small</a></span>, <span class='object_link'><a href="MDArray.html#formatter%3D-instance_method" title="MDArray#formatter= (method)">#formatter</a></span>, <span class='object_link'><a href="MDArray.html#inf_str%3D-instance_method" title="MDArray#inf_str= (method)">#inf_str</a></span>, <span class='object_link'><a href="MDArray.html#int_output_size%3D-instance_method" title="MDArray#int_output_size= (method)">#int_output_size</a></span>, <span class='object_link'><a href="MDArray.html#local_index-instance_method" title="MDArray#local_index (method)">#local_index</a></span>, <span class='object_link'><a href="MDArray.html#local_iterator-instance_method" title="MDArray#local_iterator (method)">#local_iterator</a></span>, <span class='object_link'><a href="MDArray.html#max_line_width%3D-instance_method" title="MDArray#max_line_width= (method)">#max_line_width</a></span>, <span class='object_link'><a href="MDArray.html#nan_str%3D-instance_method" title="MDArray#nan_str= (method)">#nan_str</a></span>, <span class='object_link'><a href="MDArray.html#nc_array-instance_method" title="MDArray#nc_array (method)">#nc_array</a></span>, <span class='object_link'><a href="MDArray.html#prefix%3D-instance_method" title="MDArray#prefix= (method)">#prefix</a></span>, <span class='object_link'><a href="MDArray.html#separator%3D-instance_method" title="MDArray#separator= (method)">#separator</a></span>, <span class='object_link'><a href="MDArray.html#summary_edge_items%3D-instance_method" title="MDArray#summary_edge_items= (method)">#summary_edge_items</a></span>, <span class='object_link'><a href="MDArray.html#summary_threshold%3D-instance_method" title="MDArray#summary_threshold= (method)">#summary_threshold</a></span>, <span class='object_link'><a href="MDArray.html#type-instance_method" title="MDArray#type (method)">#type</a></span>, <span class='object_link'><a href="MDArray.html#unary_operator-instance_method" title="MDArray#unary_operator (method)">#unary_operator</a></span></p>
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
<h2>Method Summary</h2>
|
|
137
|
+
|
|
138
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="DoubleMDArray.html" title="DoubleMDArray (class)">DoubleMDArray</a></span></h3>
|
|
139
|
+
<p class="inherited"><span class='object_link'><a href="DoubleMDArray.html#colt_stats-class_method" title="DoubleMDArray.colt_stats (method)">colt_stats</a></span>, <span class='object_link'><a href="DoubleMDArray.html#reset_statistics-instance_method" title="DoubleMDArray#reset_statistics (method)">#reset_statistics</a></span></p>
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="RubyFunctions.html" title="RubyFunctions (module)">RubyFunctions</a></span></h3>
|
|
156
|
+
<p class="inherited"><span class='object_link'><a href="RubyFunctions.html#ruby_binary_function-instance_method" title="RubyFunctions#ruby_binary_function (method)">#ruby_binary_function</a></span>, <span class='object_link'><a href="RubyFunctions.html#ruby_unary_function-instance_method" title="RubyFunctions#ruby_unary_function (method)">#ruby_unary_function</a></span></p>
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="FunctionCreation.html" title="FunctionCreation (module)">FunctionCreation</a></span></h3>
|
|
167
|
+
<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_binary_operators-instance_method" title="FunctionCreation#make_binary_operators (method)">#make_binary_operators</a></span>, <span class='object_link'><a href="FunctionCreation.html#make_comparison_op-instance_method" title="FunctionCreation#make_comparison_op (method)">#make_comparison_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>, <span class='object_link'><a href="FunctionCreation.html#make_unary_operators-instance_method" title="FunctionCreation#make_unary_operators (method)">#make_unary_operators</a></span></p>
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="NumericalMDArray.html" title="NumericalMDArray (class)">NumericalMDArray</a></span></h3>
|
|
178
|
+
<p class="inherited"><span class='object_link'><a href="NumericalMDArray.html#coerce-instance_method" title="NumericalMDArray#coerce (method)">#coerce</a></span></p>
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="NumericFunctions.html" title="NumericFunctions (module)">NumericFunctions</a></span></h3>
|
|
195
|
+
<p class="inherited"><span class='object_link'><a href="NumericFunctions.html#fast_add-instance_method" title="NumericFunctions#fast_add (method)">#fast_add</a></span>, <span class='object_link'><a href="NumericFunctions.html#zero%3F-instance_method" title="NumericFunctions#zero? (method)">#zero?</a></span></p>
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="MDArray.html" title="MDArray (class)">MDArray</a></span></h3>
|
|
212
|
+
<p class="inherited"><span class='object_link'><a href="MDArray.html#%5B%5D-instance_method" title="MDArray#[] (method)">#[]</a></span>, <span class='object_link'><a href="MDArray.html#%5B%5D%3D-instance_method" title="MDArray#[]= (method)">#[]=</a></span>, <span class='object_link'><a href="MDArray.html#apply_over_axes-instance_method" title="MDArray#apply_over_axes (method)">#apply_over_axes</a></span>, <span class='object_link'><a href="MDArray.html#arange-class_method" title="MDArray.arange (method)">arange</a></span>, <span class='object_link'><a href="MDArray.html#boolean-class_method" title="MDArray.boolean (method)">boolean</a></span>, <span class='object_link'><a href="MDArray.html#build-class_method" title="MDArray.build (method)">build</a></span>, <span class='object_link'><a href="MDArray.html#build_from_nc_array-class_method" title="MDArray.build_from_nc_array (method)">build_from_nc_array</a></span>, <span class='object_link'><a href="MDArray.html#byte-class_method" title="MDArray.byte (method)">byte</a></span>, <span class='object_link'><a href="MDArray.html#char-class_method" title="MDArray.char (method)">char</a></span>, <span class='object_link'><a href="MDArray.html#compatible-instance_method" title="MDArray#compatible (method)">#compatible</a></span>, <span class='object_link'><a href="MDArray.html#copy-instance_method" title="MDArray#copy (method)">#copy</a></span>, <span class='object_link'><a href="MDArray.html#csv1d-instance_method" title="MDArray#csv1d (method)">#csv1d</a></span>, <span class='object_link'><a href="MDArray.html#double-class_method" title="MDArray.double (method)">double</a></span>, <span class='object_link'><a href="MDArray.html#dtype-instance_method" title="MDArray#dtype (method)">#dtype</a></span>, <span class='object_link'><a href="MDArray.html#each-instance_method" title="MDArray#each (method)">#each</a></span>, <span class='object_link'><a href="MDArray.html#each_cont-instance_method" title="MDArray#each_cont (method)">#each_cont</a></span>, <span class='object_link'><a href="MDArray.html#each_slice-instance_method" title="MDArray#each_slice (method)">#each_slice</a></span>, <span class='object_link'><a href="MDArray.html#each_with_counter-instance_method" title="MDArray#each_with_counter (method)">#each_with_counter</a></span>, <span class='object_link'><a href="MDArray.html#float-class_method" title="MDArray.float (method)">float</a></span>, <span class='object_link'><a href="MDArray.html#fromfunction-class_method" title="MDArray.fromfunction (method)">fromfunction</a></span>, <span class='object_link'><a href="MDArray.html#function_map_to_csv-class_method" title="MDArray.function_map_to_csv (method)">function_map_to_csv</a></span>, <span class='object_link'><a href="MDArray.html#get-instance_method" title="MDArray#get (method)">#get</a></span>, <span class='object_link'><a href="MDArray.html#get_binary_op-instance_method" title="MDArray#get_binary_op (method)">#get_binary_op</a></span>, <span class='object_link'><a href="MDArray.html#get_counter-instance_method" title="MDArray#get_counter (method)">#get_counter</a></span>, <span class='object_link'><a href="MDArray.html#get_current_index-instance_method" title="MDArray#get_current_index (method)">#get_current_index</a></span>, <span class='object_link'><a href="MDArray.html#get_element_type-instance_method" title="MDArray#get_element_type (method)">#get_element_type</a></span>, <span class='object_link'><a href="MDArray.html#get_index-instance_method" title="MDArray#get_index (method)">#get_index</a></span>, <span class='object_link'><a href="MDArray.html#get_iterator_fast-instance_method" title="MDArray#get_iterator_fast (method)">#get_iterator_fast</a></span>, <span class='object_link'><a href="MDArray.html#get_next-instance_method" title="MDArray#get_next (method)">#get_next</a></span>, <span class='object_link'><a href="MDArray.html#get_rank-instance_method" title="MDArray#get_rank (method)">#get_rank</a></span>, <span class='object_link'><a href="MDArray.html#get_shape-instance_method" title="MDArray#get_shape (method)">#get_shape</a></span>, <span class='object_link'><a href="MDArray.html#get_size-instance_method" title="MDArray#get_size (method)">#get_size</a></span>, <span class='object_link'><a href="MDArray.html#get_unary_op-instance_method" title="MDArray#get_unary_op (method)">#get_unary_op</a></span>, <span class='object_link'><a href="MDArray.html#init_with-class_method" title="MDArray.init_with (method)">init_with</a></span>, <span class='object_link'><a href="MDArray.html#initialize-instance_method" title="MDArray#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="MDArray.html#int-class_method" title="MDArray.int (method)">int</a></span>, <span class='object_link'><a href="MDArray.html#linspace-class_method" title="MDArray.linspace (method)">linspace</a></span>, <span class='object_link'><a href="MDArray.html#long-class_method" title="MDArray.long (method)">long</a></span>, <span class='object_link'><a href="MDArray.html#make_binary_op-class_method" title="MDArray.make_binary_op (method)">make_binary_op</a></span>, <span class='object_link'><a href="MDArray.html#make_unary_op-class_method" title="MDArray.make_unary_op (method)">make_unary_op</a></span>, <span class='object_link'><a href="MDArray.html#ndenumerate-instance_method" title="MDArray#ndenumerate (method)">#ndenumerate</a></span>, <span class='object_link'><a href="MDArray.html#ndim-instance_method" title="MDArray#ndim (method)">#ndim</a></span>, <span class='object_link'><a href="MDArray.html#next-instance_method" title="MDArray#next (method)">#next</a></span>, <span class='object_link'><a href="MDArray.html#ones-class_method" title="MDArray.ones (method)">ones</a></span>, <span class='object_link'><a href="MDArray.html#permute-instance_method" title="MDArray#permute (method)">#permute</a></span>, <span class='object_link'><a href="MDArray.html#print-instance_method" title="MDArray#print (method)">#print</a></span>, <span class='object_link'><a href="MDArray.html#print1d-instance_method" title="MDArray#print1d (method)">#print1d</a></span>, <span class='object_link'><a href="MDArray.html#print_function_map-class_method" title="MDArray.print_function_map (method)">print_function_map</a></span>, <span class='object_link'><a href="MDArray.html#printing_defaults-instance_method" title="MDArray#printing_defaults (method)">#printing_defaults</a></span>, <span class='object_link'><a href="MDArray.html#rank-instance_method" title="MDArray#rank (method)">#rank</a></span>, <span class='object_link'><a href="MDArray.html#reduce-instance_method" title="MDArray#reduce (method)">#reduce</a></span>, <span class='object_link'><a href="MDArray.html#register_function-class_method" title="MDArray.register_function (method)">register_function</a></span>, <span class='object_link'><a href="MDArray.html#reset_traversal-instance_method" title="MDArray#reset_traversal (method)">#reset_traversal</a></span>, <span class='object_link'><a href="MDArray.html#reshape-instance_method" title="MDArray#reshape (method)">#reshape</a></span>, <span class='object_link'><a href="MDArray.html#reshape%21-instance_method" title="MDArray#reshape! (method)">#reshape!</a></span>, <span class='object_link'><a href="MDArray.html#section-instance_method" title="MDArray#section (method)">#section</a></span>, <span class='object_link'><a href="MDArray.html#section%3F-instance_method" title="MDArray#section? (method)">#section?</a></span>, <span class='object_link'><a href="MDArray.html#section_with_stride-instance_method" title="MDArray#section_with_stride (method)">#section_with_stride</a></span>, <span class='object_link'><a href="MDArray.html#select_function-class_method" title="MDArray.select_function (method)">select_function</a></span>, <span class='object_link'><a href="MDArray.html#set-instance_method" title="MDArray#set (method)">#set</a></span>, <span class='object_link'><a href="MDArray.html#set_next-instance_method" title="MDArray#set_next (method)">#set_next</a></span>, <span class='object_link'><a href="MDArray.html#shape-instance_method" title="MDArray#shape (method)">#shape</a></span>, <span class='object_link'><a href="MDArray.html#short-class_method" title="MDArray.short (method)">short</a></span>, <span class='object_link'><a href="MDArray.html#size-instance_method" title="MDArray#size (method)">#size</a></span>, <span class='object_link'><a href="MDArray.html#slice-instance_method" title="MDArray#slice (method)">#slice</a></span>, <span class='object_link'><a href="MDArray.html#string-class_method" title="MDArray.string (method)">string</a></span>, <span class='object_link'><a href="MDArray.html#structure-class_method" title="MDArray.structure (method)">structure</a></span>, <span class='object_link'><a href="MDArray.html#to_csv-instance_method" title="MDArray#to_csv (method)">#to_csv</a></span>, <span class='object_link'><a href="MDArray.html#to_s-instance_method" title="MDArray#to_s (method)">#to_s</a></span>, <span class='object_link'><a href="MDArray.html#to_string-instance_method" title="MDArray#to_string (method)">#to_string</a></span>, <span class='object_link'><a href="MDArray.html#transpose-instance_method" title="MDArray#transpose (method)">#transpose</a></span>, <span class='object_link'><a href="MDArray.html#typed_arange-class_method" title="MDArray.typed_arange (method)">typed_arange</a></span>, <span class='object_link'><a href="MDArray.html#upcast-class_method" title="MDArray.upcast (method)">upcast</a></span></p>
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
<div id="constructor_details" class="method_details_list">
|
|
221
|
+
<h2>Constructor Details</h2>
|
|
222
|
+
|
|
223
|
+
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="MDArray.html#initialize-instance_method" title="MDArray#initialize (method)">MDArray</a></span></p>
|
|
224
|
+
|
|
225
|
+
</div>
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
</div>
|
|
229
|
+
|
|
230
|
+
<div id="footer">
|
|
231
|
+
Generated on Thu May 16 12:48:39 2013 by
|
|
232
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
233
|
+
0.8.5.2 (ruby-1.9.3).
|
|
234
|
+
</div>
|
|
235
|
+
|
|
236
|
+
</body>
|
|
237
|
+
</html>
|
|
@@ -0,0 +1,520 @@
|
|
|
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: FunctionCreation
|
|
8
|
+
|
|
9
|
+
— Documentation by YARD 0.8.5.2
|
|
10
|
+
|
|
11
|
+
</title>
|
|
12
|
+
|
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
|
14
|
+
|
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" 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#!" + escape(window.location.href);
|
|
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 (F)</a> »
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
<span class="title">FunctionCreation</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: FunctionCreation
|
|
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="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>
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
<dt class="r2 last">Defined in:</dt>
|
|
86
|
+
<dd class="r2 last">lib/mdarray/function_creation.rb</dd>
|
|
87
|
+
|
|
88
|
+
</dl>
|
|
89
|
+
<div class="clear"></div>
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
<h2>
|
|
100
|
+
Instance Method Summary
|
|
101
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
102
|
+
</h2>
|
|
103
|
+
|
|
104
|
+
<ul class="summary">
|
|
105
|
+
|
|
106
|
+
<li class="public ">
|
|
107
|
+
<span class="summary_signature">
|
|
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>
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
</span>
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
<span class="summary_desc"><div class='inline'>
|
|
124
|
+
<p>????????????????????????????.</p>
|
|
125
|
+
</div></span>
|
|
126
|
+
|
|
127
|
+
</li>
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
<li class="public ">
|
|
131
|
+
<span class="summary_signature">
|
|
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>
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
</span>
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
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>
|
|
221
|
+
</div></span>
|
|
222
|
+
|
|
223
|
+
</li>
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
</ul>
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
<div id="instance_method_details" class="method_details_list">
|
|
232
|
+
<h2>Instance Method Details</h2>
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
<div class="method_details first">
|
|
236
|
+
<h3 class="signature first" id="make_binary_op-instance_method">
|
|
237
|
+
|
|
238
|
+
- (<tt>Object</tt>) <strong>make_binary_op</strong>(name, exec_type, func, force_type = nil, pre_condition = nil, post_condition = nil)
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
</h3><div class="docstring">
|
|
245
|
+
<div class="discussion">
|
|
246
|
+
<hr style="height: 10px">
|
|
247
|
+
<hr style="height: 10px">
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
</div>
|
|
251
|
+
</div>
|
|
252
|
+
<div class="tags">
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
</div><table class="source_code">
|
|
256
|
+
<tr>
|
|
257
|
+
<td>
|
|
258
|
+
<pre class="lines">
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
32
|
|
262
|
+
33
|
|
263
|
+
34
|
|
264
|
+
35
|
|
265
|
+
36
|
|
266
|
+
37
|
|
267
|
+
38
|
|
268
|
+
39
|
|
269
|
+
40
|
|
270
|
+
41
|
|
271
|
+
42
|
|
272
|
+
43</pre>
|
|
273
|
+
</td>
|
|
274
|
+
<td>
|
|
275
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/function_creation.rb', line 32</span>
|
|
276
|
+
|
|
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>
|
|
279
|
+
|
|
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>
|
|
285
|
+
|
|
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>
|
|
287
|
+
|
|
288
|
+
<span class='rubyid_end end kw'>end</span>
|
|
289
|
+
</pre>
|
|
290
|
+
</td>
|
|
291
|
+
</tr>
|
|
292
|
+
</table>
|
|
293
|
+
</div>
|
|
294
|
+
|
|
295
|
+
<div class="method_details ">
|
|
296
|
+
<h3 class="signature " id="make_binary_operators-instance_method">
|
|
297
|
+
|
|
298
|
+
- (<tt>Object</tt>) <strong>make_binary_operators</strong>(name, func, default = true, in_place = true)
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
</h3><div class="docstring">
|
|
305
|
+
<div class="discussion">
|
|
306
|
+
<hr style="height: 10px">
|
|
307
|
+
<hr style="height: 10px">
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
</div>
|
|
311
|
+
</div>
|
|
312
|
+
<div class="tags">
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
</div><table class="source_code">
|
|
316
|
+
<tr>
|
|
317
|
+
<td>
|
|
318
|
+
<pre class="lines">
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
49
|
|
322
|
+
50
|
|
323
|
+
51
|
|
324
|
+
52
|
|
325
|
+
53
|
|
326
|
+
54
|
|
327
|
+
55
|
|
328
|
+
56
|
|
329
|
+
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'>"default"</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'>"!"</span><span class='comma token'>,</span> <span class='string val'>"in_place"</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>
|
|
380
|
+
</td>
|
|
381
|
+
<td>
|
|
382
|
+
<pre class="code"><span class="info file"># File 'lib/mdarray/function_creation.rb', line 96</span>
|
|
383
|
+
|
|
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'>"default"</span><span class='comma token'>,</span> <span class='rubyid_func identifier id'>func</span><span class='comma token'>,</span> <span class='string val'>"boolean"</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">
|
|
411
|
+
|
|
412
|
+
|
|
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'>"default"</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'>"!"</span><span class='comma token'>,</span> <span class='string val'>"in_place"</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>
|
|
501
|
+
|
|
502
|
+
<span class='rubyid_end end kw'>end</span>
|
|
503
|
+
</pre>
|
|
504
|
+
</td>
|
|
505
|
+
</tr>
|
|
506
|
+
</table>
|
|
507
|
+
</div>
|
|
508
|
+
|
|
509
|
+
</div>
|
|
510
|
+
|
|
511
|
+
</div>
|
|
512
|
+
|
|
513
|
+
<div id="footer">
|
|
514
|
+
Generated on Thu May 16 12:48:35 2013 by
|
|
515
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
516
|
+
0.8.5.2 (ruby-1.9.3).
|
|
517
|
+
</div>
|
|
518
|
+
|
|
519
|
+
</body>
|
|
520
|
+
</html>
|