@stdlib/math-iter-ops
v0.2.2
Published
Math operator iterators.
Downloads
36
Readme
Operators
Math operator iterators.
Installation
npm install @stdlib/math-iter-ops
Usage
var ns = require( '@stdlib/math-iter-ops' );
ns
Namespace containing math operator iterators.
var iterators = ns;
// returns {...}
The namespace contains the following functions for creating iterator protocol-compliant iterators:
iterAdd( iter0, ...iterator )
: create an iterator which performs element-wise addition of two or more iterators.iterDivide( iter0, ...iterator )
: create an iterator which performs element-wise division of two or more iterators.iterMod( iter0, ...iterator )
: create an iterator which performs an element-wise modulo operation of two or more iterators.iterMultiply( iter0, ...iterator )
: create an iterator which performs element-wise multiplication of two or more iterators.iterSubtract( iter0, ...iterator )
: create an iterator which performs element-wise subtraction of two or more iterators.
Examples
var objectKeys = require( '@stdlib/utils-keys' );
var ns = require( '@stdlib/math-iter-ops' );
console.log( objectKeys( ns ) );
Notice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
Community
License
See LICENSE.
Copyright
Copyright © 2016-2024. The Stdlib Authors.