README.md (3229B)
1 <!-- 2 3 @license Apache-2.0 4 5 Copyright (c) 2020 The Stdlib Authors. 6 7 Licensed under the Apache License, Version 2.0 (the "License"); 8 you may not use this file except in compliance with the License. 9 You may obtain a copy of the License at 10 11 http://www.apache.org/licenses/LICENSE-2.0 12 13 Unless required by applicable law or agreed to in writing, software 14 distributed under the License is distributed on an "AS IS" BASIS, 15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 See the License for the specific language governing permissions and 17 limitations under the License. 18 19 --> 20 21 # Operators 22 23 > Standard library math operator iterators. 24 25 <section class="usage"> 26 27 ## Usage 28 29 ```javascript 30 var ns = require( '@stdlib/math/iter/ops' ); 31 ``` 32 33 #### ns 34 35 Standard library math operator iterators. 36 37 ```javascript 38 var iterators = ns; 39 // returns {...} 40 ``` 41 42 The namespace contains the following functions for creating iterator protocol-compliant iterators: 43 44 <!-- <toc pattern="*"> --> 45 46 <div class="namespace-toc"> 47 48 - <span class="signature">[`iterAdd( iter0, ...iterator )`][@stdlib/math/iter/ops/add]</span><span class="delimiter">: </span><span class="description">create an iterator which performs element-wise addition of two or more iterators.</span> 49 - <span class="signature">[`iterDivide( iter0, ...iterator )`][@stdlib/math/iter/ops/divide]</span><span class="delimiter">: </span><span class="description">create an iterator which performs element-wise division of two or more iterators.</span> 50 - <span class="signature">[`iterMod( iter0, ...iterator )`][@stdlib/math/iter/ops/mod]</span><span class="delimiter">: </span><span class="description">create an iterator which performs an element-wise modulo operation of two or more iterators.</span> 51 - <span class="signature">[`iterMultiply( iter0, ...iterator )`][@stdlib/math/iter/ops/multiply]</span><span class="delimiter">: </span><span class="description">create an iterator which performs element-wise multiplication of two or more iterators.</span> 52 - <span class="signature">[`iterSubtract( iter0, ...iterator )`][@stdlib/math/iter/ops/subtract]</span><span class="delimiter">: </span><span class="description">create an iterator which performs element-wise subtraction of two or more iterators.</span> 53 54 </div> 55 56 <!-- </toc> --> 57 58 </section> 59 60 <!-- /.usage --> 61 62 <section class="examples"> 63 64 ## Examples 65 66 <!-- TODO: better examples --> 67 68 <!-- eslint no-undef: "error" --> 69 70 ```javascript 71 var objectKeys = require( '@stdlib/utils/keys' ); 72 var ns = require( '@stdlib/math/iter/ops' ); 73 74 console.log( objectKeys( ns ) ); 75 ``` 76 77 </section> 78 79 <!-- /.examples --> 80 81 <section class="links"> 82 83 <!-- <toc-links> --> 84 85 [@stdlib/math/iter/ops/add]: https://www.npmjs.com/package/@stdlib/math/tree/main/iter/ops/add 86 87 [@stdlib/math/iter/ops/divide]: https://www.npmjs.com/package/@stdlib/math/tree/main/iter/ops/divide 88 89 [@stdlib/math/iter/ops/mod]: https://www.npmjs.com/package/@stdlib/math/tree/main/iter/ops/mod 90 91 [@stdlib/math/iter/ops/multiply]: https://www.npmjs.com/package/@stdlib/math/tree/main/iter/ops/multiply 92 93 [@stdlib/math/iter/ops/subtract]: https://www.npmjs.com/package/@stdlib/math/tree/main/iter/ops/subtract 94 95 <!-- </toc-links> --> 96 97 </section> 98 99 <!-- /.links -->