4
4
5
5
< html xmlns ="http://www.w3.org/1999/xhtml ">
6
6
< head >
7
+ < meta http-equiv ="X-UA-Compatible " content ="IE=Edge " />
7
8
< meta http-equiv ="Content-Type " content ="text/html; charset=utf-8 " />
8
-
9
9
< title > arrayfire.arith — ArrayFire Python documentation</ title >
10
-
11
10
< link rel ="stylesheet " href ="../../_static/alabaster.css " type ="text/css " />
12
11
< link rel ="stylesheet " href ="../../_static/pygments.css " type ="text/css " />
13
- < link rel ="stylesheet " href ="../../_static/style.css " type ="text/css " />
14
-
15
- < script type ="text/javascript ">
16
- var DOCUMENTATION_OPTIONS = {
17
- URL_ROOT : '../../' ,
18
- VERSION : '3.5.20170718' ,
19
- COLLAPSE_INDEX : false ,
20
- FILE_SUFFIX : '.html' ,
21
- HAS_SOURCE : true ,
22
- SOURCELINK_SUFFIX : '.txt'
23
- } ;
24
- </ script >
12
+ < link rel ="stylesheet " type ="text/css " href ="../../_static/graphviz.css " />
13
+ < link rel ="stylesheet " type ="text/css " href ="../../_static/style.css " />
14
+ < script type ="text/javascript " id ="documentation_options " data-url_root ="../../ " src ="../../_static/documentation_options.js "> </ script >
25
15
< script type ="text/javascript " src ="../../_static/jquery.js "> </ script >
26
16
< script type ="text/javascript " src ="../../_static/underscore.js "> </ script >
27
17
< script type ="text/javascript " src ="../../_static/doctools.js "> </ script >
28
- < script type ="text/javascript " src ="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0 /MathJax.js?config=TeX-AMS-MML_HTMLorMML "> </ script >
18
+ < script async =" async " type ="text/javascript " src ="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1 /MathJax.js?config=TeX-AMS-MML_HTMLorMML "> </ script >
29
19
< link rel ="index " title ="Index " href ="../../genindex.html " />
30
20
< link rel ="search " title ="Search " href ="../../search.html " />
31
21
34
24
35
25
< meta name ="viewport " content ="width=device-width, initial-scale=0.9, maximum-scale=0.9 " />
36
26
37
- </ head >
38
- < body >
27
+ </ head > < body >
39
28
40
29
41
30
< div class ="document ">
@@ -210,6 +199,26 @@ <h1>Source code for arrayfire.arith</h1><div class="highlight"><pre>
210
199
211
200
< span class ="k "> return</ span > < span class ="n "> out</ span > </ div >
212
201
202
+ < div class ="viewcode-block " id ="mod "> < a class ="viewcode-back " href ="../../arrayfire.arith.html#arrayfire.arith.mod "> [docs]</ a > < span class ="k "> def</ span > < span class ="nf "> mod</ span > < span class ="p "> (</ span > < span class ="n "> lhs</ span > < span class ="p "> ,</ span > < span class ="n "> rhs</ span > < span class ="p "> ):</ span >
203
+ < span class ="sd "> """</ span >
204
+ < span class ="sd "> Find the modulus.</ span >
205
+ < span class ="sd "> Parameters</ span >
206
+ < span class ="sd "> ----------</ span >
207
+ < span class ="sd "> lhs : af.Array or scalar</ span >
208
+ < span class ="sd "> Multi dimensional arrayfire array or a scalar number.</ span >
209
+ < span class ="sd "> rhs : af.Array or scalar</ span >
210
+ < span class ="sd "> Multi dimensional arrayfire array or a scalar number.</ span >
211
+ < span class ="sd "> Returns</ span >
212
+ < span class ="sd "> --------</ span >
213
+ < span class ="sd "> out : af.Array</ span >
214
+ < span class ="sd "> Contains the moduli after dividing each value of lhs` with those in `rhs`.</ span >
215
+ < span class ="sd "> Note</ span >
216
+ < span class ="sd "> -------</ span >
217
+ < span class ="sd "> - Atleast one of `lhs` and `rhs` needs to be af.Array.</ span >
218
+ < span class ="sd "> - If `lhs` and `rhs` are both af.Array, they must be of same size.</ span >
219
+ < span class ="sd "> """</ span >
220
+ < span class ="k "> return</ span > < span class ="n "> _arith_binary_func</ span > < span class ="p "> (</ span > < span class ="n "> lhs</ span > < span class ="p "> ,</ span > < span class ="n "> rhs</ span > < span class ="p "> ,</ span > < span class ="n "> backend</ span > < span class ="o "> .</ span > < span class ="n "> get</ span > < span class ="p "> ()</ span > < span class ="o "> .</ span > < span class ="n "> af_mod</ span > < span class ="p "> )</ span > </ div >
221
+
213
222
< div class ="viewcode-block " id ="rem "> < a class ="viewcode-back " href ="../../arrayfire.arith.html#arrayfire.arith.rem "> [docs]</ a > < span class ="k "> def</ span > < span class ="nf "> rem</ span > < span class ="p "> (</ span > < span class ="n "> lhs</ span > < span class ="p "> ,</ span > < span class ="n "> rhs</ span > < span class ="p "> ):</ span >
214
223
< span class ="sd "> """</ span >
215
224
< span class ="sd "> Find the remainder.</ span >
@@ -278,7 +287,7 @@ <h1>Source code for arrayfire.arith</h1><div class="highlight"><pre>
278
287
< span class ="sd "> Returns</ span >
279
288
< span class ="sd "> --------</ span >
280
289
< span class ="sd "> out : af.Array</ span >
281
- < span class ="sd "> array containing - 1 for negative values, 1 otherwise.</ span >
290
+ < span class ="sd "> array containing 1 for negative values, 0 otherwise.</ span >
282
291
< span class ="sd "> """</ span >
283
292
< span class ="k "> return</ span > < span class ="n "> _arith_unary_func</ span > < span class ="p "> (</ span > < span class ="n "> a</ span > < span class ="p "> ,</ span > < span class ="n "> backend</ span > < span class ="o "> .</ span > < span class ="n "> get</ span > < span class ="p "> ()</ span > < span class ="o "> .</ span > < span class ="n "> af_sign</ span > < span class ="p "> )</ span > </ div >
284
293
@@ -1132,7 +1141,19 @@ <h1>Source code for arrayfire.arith</h1><div class="highlight"><pre>
1132
1141
< div class ="sphinxsidebarwrapper ">
1133
1142
< p class ="logo "> < a href ="../../index.html ">
1134
1143
< img class ="logo " src ="../../_static/arrayfire_logo_symbol.png " alt ="Logo "/>
1135
- </ a > </ p > < div class ="relations ">
1144
+ </ a > </ p >
1145
+ < h1 class ="logo "> < a href ="../../index.html "> ArrayFire</ a > </ h1 >
1146
+
1147
+
1148
+
1149
+
1150
+
1151
+
1152
+
1153
+
1154
+ < h3 > Navigation</ h3 >
1155
+
1156
+ < div class ="relations ">
1136
1157
< h3 > Related Topics</ h3 >
1137
1158
< ul >
1138
1159
< li > < a href ="../../index.html "> Documentation overview</ a > < ul >
@@ -1143,12 +1164,14 @@ <h3>Related Topics</h3>
1143
1164
</ div >
1144
1165
< div id ="searchbox " style ="display: none " role ="search ">
1145
1166
< h3 > Quick search</ h3 >
1167
+ < div class ="searchformwrapper ">
1146
1168
< form class ="search " action ="../../search.html " method ="get ">
1147
- < div > < input type ="text " name ="q " /> </ div >
1148
- < div > < input type ="submit " value ="Go " /> </ div >
1169
+ < input type ="text " name ="q " />
1170
+ < input type ="submit " value ="Go " />
1149
1171
< input type ="hidden " name ="check_keywords " value ="yes " />
1150
1172
< input type ="hidden " name ="area " value ="default " />
1151
1173
</ form >
1174
+ </ div >
1152
1175
</ div >
1153
1176
< script type ="text/javascript "> $ ( '#searchbox' ) . show ( 0 ) ; </ script >
1154
1177
</ div >
@@ -1159,7 +1182,7 @@ <h3>Quick search</h3>
1159
1182
©2016, Pavan Yalamanchili.
1160
1183
1161
1184
|
1162
- Powered by < a href ="http://sphinx-doc.org/ "> Sphinx 1.6.2 </ a >
1185
+ Powered by < a href ="http://sphinx-doc.org/ "> Sphinx 1.8.1 </ a >
1163
1186
& < a href ="https://github.com/bitprophet/alabaster "> Alabaster 0.7.10</ a >
1164
1187
1165
1188
</ div >
0 commit comments