@stdlib/strided-base 0.0.6 → 0.0.7

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.
package/NOTICE CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2021 The Stdlib Authors.
1
+ Copyright (c) 2016-2022 The Stdlib Authors.
package/README.md CHANGED
@@ -20,7 +20,7 @@ limitations under the License.
20
20
 
21
21
  # Base
22
22
 
23
- [![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] [![dependencies][dependencies-image]][dependencies-url]
23
+ [![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
24
24
 
25
25
  > Base strided.
26
26
 
@@ -57,17 +57,28 @@ The following functions are currently exported:
57
57
 
58
58
  <div class="namespace-toc">
59
59
 
60
+ - <span class="signature">[`binaryAddonDispatch( addon, fallback )`][@stdlib/strided/base/binary-addon-dispatch]</span><span class="delimiter">: </span><span class="description">dispatch to a native add-on applying a binary function to two input strided arrays.</span>
60
61
  - <span class="signature">[`binary( arrays, shape, strides, fcn )`][@stdlib/strided/base/binary]</span><span class="delimiter">: </span><span class="description">apply a binary callback to strided input array elements and assign results to elements in a strided output array.</span>
61
- - <span class="signature">[`dmap( N, x, strideX, y, strideY, fcn )`][@stdlib/strided/base/dmap]</span><span class="delimiter">: </span><span class="description">apply a unary function accepting and returning double-precision floating-point numbers to each element in a double-precision floating-point strided input array and assign each result to an element in a double-precision floating-point strided output array.</span>
62
- - <span class="signature">[`dmskmap( N, x, strideX, mask, strideMask, y, strideY, fcn )`][@stdlib/strided/base/dmskmap]</span><span class="delimiter">: </span><span class="description">apply a unary function accepting and returning double-precision floating-point numbers to each element in a double-precision floating-point strided input array according to a corresponding element in a strided mask array and assign each result to an element in a double-precision floating-point strided output array.</span>
63
- - <span class="signature">[`mapBy( N, x, strideX, y, strideY, fcn, clbk[, thisArg] )`][@stdlib/strided/base/map-by]</span><span class="delimiter">: </span><span class="description">apply a unary function to each element retrieved from a strided input array according to a callback function and assign each result to an element in a strided output array.</span>
62
+ - <span class="signature">[`dmap( N, x, strideX, y, strideY, fcn )`][@stdlib/strided/base/dmap]</span><span class="delimiter">: </span><span class="description">apply a unary function to a double-precision floating-point strided input array and assign results to a double-precision floating-point strided output array.</span>
63
+ - <span class="signature">[`dmap2( N, x, strideX, y, strideY, z, strideZ, fcn )`][@stdlib/strided/base/dmap2]</span><span class="delimiter">: </span><span class="description">apply a binary function to double-precision floating-point strided input arrays and assign results to a double-precision floating-point strided output array.</span>
64
+ - <span class="signature">[`dmskmap( N, x, strideX, mask, strideMask, y, strideY, fcn )`][@stdlib/strided/base/dmskmap]</span><span class="delimiter">: </span><span class="description">apply a unary function to a double-precision floating-point strided input array according to a strided mask array and assign results to a double-precision floating-point strided output array.</span>
65
+ - <span class="signature">[`dmskmap2( N, x, strideX, y, strideY, mask, strideMask, z, strideZ, fcn )`][@stdlib/strided/base/dmskmap2]</span><span class="delimiter">: </span><span class="description">apply a binary function to double-precision floating-point strided input arrays according to a strided mask array and assign results to a double-precision floating-point strided output array.</span>
66
+ - <span class="signature">[`dtypeEnum2Str( dtype )`][@stdlib/strided/base/dtype-enum2str]</span><span class="delimiter">: </span><span class="description">return the data type string associated with a strided array data type enumeration constant.</span>
67
+ - <span class="signature">[`dtypeResolveEnum( dtype )`][@stdlib/strided/base/dtype-resolve-enum]</span><span class="delimiter">: </span><span class="description">return the enumeration constant associated with a supported strided array data type value.</span>
68
+ - <span class="signature">[`dtypeStr2Enum( dtype )`][@stdlib/strided/base/dtype-str2enum]</span><span class="delimiter">: </span><span class="description">return the enumeration constant associated with a strided array data type string.</span>
69
+ - <span class="signature">[`mapBy( N, x, strideX, y, strideY, fcn, clbk[, thisArg] )`][@stdlib/strided/base/map-by]</span><span class="delimiter">: </span><span class="description">apply a unary function to each element retrieved from a strided input array according to a callback function and assign results to a strided output array.</span>
70
+ - <span class="signature">[`mapBy2( N, x, strideX, y, strideY, z, strideZ, fcn, clbk[, thisArg] )`][@stdlib/strided/base/map-by2]</span><span class="delimiter">: </span><span class="description">apply a binary function to each pair of elements retrieved from strided input arrays according to a callback function and assign results to a strided output array.</span>
71
+ - <span class="signature">[`metaDataProps( meta, dtypes, obj, bool )`][@stdlib/strided/base/meta-data-props]</span><span class="delimiter">: </span><span class="description">define non-enumerable read-only properties which expose strided array function meta data.</span>
64
72
  - <span class="signature">[`mskunary( arrays, shape, strides, fcn )`][@stdlib/strided/base/mskunary]</span><span class="delimiter">: </span><span class="description">apply a unary callback to elements in a strided input array according to elements in a strided mask array and assign results to elements in a strided output array.</span>
65
73
  - <span class="signature">[`nullary( arrays, shape, strides, fcn )`][@stdlib/strided/base/nullary]</span><span class="delimiter">: </span><span class="description">apply a nullary callback and assign results to elements in a strided output array.</span>
66
74
  - <span class="signature">[`quaternary( arrays, shape, strides, fcn )`][@stdlib/strided/base/quaternary]</span><span class="delimiter">: </span><span class="description">apply a quaternary callback to strided input array elements and assign results to elements in a strided output array.</span>
67
75
  - <span class="signature">[`quinary( arrays, shape, strides, fcn )`][@stdlib/strided/base/quinary]</span><span class="delimiter">: </span><span class="description">apply a quinary callback to strided input array elements and assign results to elements in a strided output array.</span>
68
- - <span class="signature">[`smap( N, x, strideX, y, strideY, fcn )`][@stdlib/strided/base/smap]</span><span class="delimiter">: </span><span class="description">apply a unary function accepting and returning single-precision floating-point numbers to each element in a single-precision floating-point strided input array and assign each result to an element in a single-precision floating-point strided output array.</span>
69
- - <span class="signature">[`smskmap( N, x, strideX, mask, strideMask, y, strideY, fcn )`][@stdlib/strided/base/smskmap]</span><span class="delimiter">: </span><span class="description">apply a unary function accepting and returning single-precision floating-point numbers to each element in a single-precision floating-point strided input array according to a corresponding element in a strided mask array and assign each result to an element in a single-precision floating-point strided output array.</span>
76
+ - <span class="signature">[`smap( N, x, strideX, y, strideY, fcn )`][@stdlib/strided/base/smap]</span><span class="delimiter">: </span><span class="description">apply a unary function to a single-precision floating-point strided input array and assign results to a single-precision floating-point strided output array.</span>
77
+ - <span class="signature">[`smap2( N, x, strideX, y, strideY, z, strideZ, fcn )`][@stdlib/strided/base/smap2]</span><span class="delimiter">: </span><span class="description">apply a binary function to single-precision floating-point strided input arrays and assign results to a single-precision floating-point strided output array.</span>
78
+ - <span class="signature">[`smskmap( N, x, strideX, mask, strideMask, y, strideY, fcn )`][@stdlib/strided/base/smskmap]</span><span class="delimiter">: </span><span class="description">apply a unary function to a single-precision floating-point strided input array according to a strided mask array and assign results to a single-precision floating-point strided output array.</span>
79
+ - <span class="signature">[`smskmap2( N, x, strideX, y, strideY, mask, strideMask, z, strideZ, fcn )`][@stdlib/strided/base/smskmap2]</span><span class="delimiter">: </span><span class="description">apply a binary function to single-precision floating-point strided input arrays according to a strided mask array and assign results to a single-precision floating-point strided output array.</span>
70
80
  - <span class="signature">[`ternary( arrays, shape, strides, fcn )`][@stdlib/strided/base/ternary]</span><span class="delimiter">: </span><span class="description">apply a ternary callback to strided input array elements and assign results to elements in a strided output array.</span>
81
+ - <span class="signature">[`unaryAddonDispatch( addon, fallback )`][@stdlib/strided/base/unary-addon-dispatch]</span><span class="delimiter">: </span><span class="description">dispatch to a native add-on applying a unary function to an input strided array.</span>
71
82
  - <span class="signature">[`unary( arrays, shape, strides, fcn )`][@stdlib/strided/base/unary]</span><span class="delimiter">: </span><span class="description">apply a unary callback to elements in a strided input array and assign results to elements in a strided output array.</span>
72
83
 
73
84
  </div>
@@ -97,6 +108,16 @@ console.log( objectKeys( ns ) );
97
108
 
98
109
  <!-- /.examples -->
99
110
 
111
+ <!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
112
+
113
+ <section class="related">
114
+
115
+ </section>
116
+
117
+ <!-- /.related -->
118
+
119
+ <!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
120
+
100
121
 
101
122
  <section class="main-repo" >
102
123
 
@@ -121,7 +142,7 @@ See [LICENSE][stdlib-license].
121
142
 
122
143
  ## Copyright
123
144
 
124
- Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
145
+ Copyright &copy; 2016-2022. The Stdlib [Authors][stdlib-authors].
125
146
 
126
147
  </section>
127
148
 
@@ -140,9 +161,20 @@ Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
140
161
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/strided-base/main.svg
141
162
  [coverage-url]: https://codecov.io/github/stdlib-js/strided-base?branch=main
142
163
 
164
+ <!--
165
+
143
166
  [dependencies-image]: https://img.shields.io/david/stdlib-js/strided-base.svg
144
167
  [dependencies-url]: https://david-dm.org/stdlib-js/strided-base/main
145
168
 
169
+ -->
170
+
171
+ [umd]: https://github.com/umdjs/umd
172
+ [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
173
+
174
+ [deno-url]: https://github.com/stdlib-js/strided-base/tree/deno
175
+ [umd-url]: https://github.com/stdlib-js/strided-base/tree/umd
176
+ [esm-url]: https://github.com/stdlib-js/strided-base/tree/esm
177
+
146
178
  [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
147
179
  [chat-url]: https://gitter.im/stdlib-js/stdlib/
148
180
 
@@ -154,14 +186,30 @@ Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
154
186
 
155
187
  <!-- <toc-links> -->
156
188
 
189
+ [@stdlib/strided/base/binary-addon-dispatch]: https://www.npmjs.com/package/@stdlib/strided-base-binary-addon-dispatch
190
+
157
191
  [@stdlib/strided/base/binary]: https://www.npmjs.com/package/@stdlib/strided-base-binary
158
192
 
159
193
  [@stdlib/strided/base/dmap]: https://www.npmjs.com/package/@stdlib/strided-base-dmap
160
194
 
195
+ [@stdlib/strided/base/dmap2]: https://www.npmjs.com/package/@stdlib/strided-base-dmap2
196
+
161
197
  [@stdlib/strided/base/dmskmap]: https://www.npmjs.com/package/@stdlib/strided-base-dmskmap
162
198
 
199
+ [@stdlib/strided/base/dmskmap2]: https://www.npmjs.com/package/@stdlib/strided-base-dmskmap2
200
+
201
+ [@stdlib/strided/base/dtype-enum2str]: https://www.npmjs.com/package/@stdlib/strided-base-dtype-enum2str
202
+
203
+ [@stdlib/strided/base/dtype-resolve-enum]: https://www.npmjs.com/package/@stdlib/strided-base-dtype-resolve-enum
204
+
205
+ [@stdlib/strided/base/dtype-str2enum]: https://www.npmjs.com/package/@stdlib/strided-base-dtype-str2enum
206
+
163
207
  [@stdlib/strided/base/map-by]: https://www.npmjs.com/package/@stdlib/strided-base-map-by
164
208
 
209
+ [@stdlib/strided/base/map-by2]: https://www.npmjs.com/package/@stdlib/strided-base-map-by2
210
+
211
+ [@stdlib/strided/base/meta-data-props]: https://www.npmjs.com/package/@stdlib/strided-base-meta-data-props
212
+
165
213
  [@stdlib/strided/base/mskunary]: https://www.npmjs.com/package/@stdlib/strided-base-mskunary
166
214
 
167
215
  [@stdlib/strided/base/nullary]: https://www.npmjs.com/package/@stdlib/strided-base-nullary
@@ -172,10 +220,16 @@ Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
172
220
 
173
221
  [@stdlib/strided/base/smap]: https://www.npmjs.com/package/@stdlib/strided-base-smap
174
222
 
223
+ [@stdlib/strided/base/smap2]: https://www.npmjs.com/package/@stdlib/strided-base-smap2
224
+
175
225
  [@stdlib/strided/base/smskmap]: https://www.npmjs.com/package/@stdlib/strided-base-smskmap
176
226
 
227
+ [@stdlib/strided/base/smskmap2]: https://www.npmjs.com/package/@stdlib/strided-base-smskmap2
228
+
177
229
  [@stdlib/strided/base/ternary]: https://www.npmjs.com/package/@stdlib/strided-base-ternary
178
230
 
231
+ [@stdlib/strided/base/unary-addon-dispatch]: https://www.npmjs.com/package/@stdlib/strided-base-unary-addon-dispatch
232
+
179
233
  [@stdlib/strided/base/unary]: https://www.npmjs.com/package/@stdlib/strided-base-unary
180
234
 
181
235
  <!-- </toc-links> -->
@@ -22,17 +22,28 @@
22
22
  /* tslint:disable:max-file-line-count */
23
23
 
24
24
  import binary = require( '@stdlib/strided-base-binary' );
25
+ import binaryAddonDispatch = require( '@stdlib/strided-base-binary-addon-dispatch' );
25
26
  import dmap = require( '@stdlib/strided-base-dmap' );
27
+ import dmap2 = require( '@stdlib/strided-base-dmap2' );
26
28
  import dmskmap = require( '@stdlib/strided-base-dmskmap' );
29
+ import dmskmap2 = require( '@stdlib/strided-base-dmskmap2' );
30
+ import dtypeEnum2Str = require( '@stdlib/strided-base-dtype-enum2str' );
31
+ import dtypeResolveEnum = require( '@stdlib/strided-base-dtype-resolve-enum' );
32
+ import dtypeStr2Enum = require( '@stdlib/strided-base-dtype-str2enum' );
27
33
  import mapBy = require( '@stdlib/strided-base-map-by' );
34
+ import mapBy2 = require( '@stdlib/strided-base-map-by2' );
35
+ import metaDataProps = require( '@stdlib/strided-base-meta-data-props' );
28
36
  import mskunary = require( '@stdlib/strided-base-mskunary' );
29
37
  import nullary = require( '@stdlib/strided-base-nullary' );
30
38
  import quaternary = require( '@stdlib/strided-base-quaternary' );
31
39
  import quinary = require( '@stdlib/strided-base-quinary' );
32
40
  import smap = require( '@stdlib/strided-base-smap' );
41
+ import smap2 = require( '@stdlib/strided-base-smap2' );
33
42
  import smskmap = require( '@stdlib/strided-base-smskmap' );
43
+ import smskmap2 = require( '@stdlib/strided-base-smskmap2' );
34
44
  import ternary = require( '@stdlib/strided-base-ternary' );
35
45
  import unary = require( '@stdlib/strided-base-unary' );
46
+ import unaryAddonDispatch = require( '@stdlib/strided-base-unary-addon-dispatch' );
36
47
 
37
48
  /**
38
49
  * Interface describing the `base` namespace.
@@ -88,7 +99,50 @@ interface Namespace {
88
99
  binary: typeof binary;
89
100
 
90
101
  /**
91
- * Applies a unary function accepting and returning double-precision floating-point numbers to each element in a double-precision floating-point strided input array and assigns each result to an element in a double-precision floating-point strided output array.
102
+ * Returns a function which dispatches to a native add-on applying a unary function to two input strided arrays.
103
+ *
104
+ * @param addon - add-on function
105
+ * @param fallback - fallback function
106
+ * @returns dispatch function
107
+ *
108
+ * @example
109
+ * function addon( N, dtypeX, x, strideX, dtypeY, y, strideY, dtypeZ, z, strideZ ) {
110
+ * // Call into native add-on...
111
+ * }
112
+ *
113
+ * function fallback( N, dtypeX, x, strideX, dtypeY, y, strideY, dtypeZ, z, strideZ ) {
114
+ * // Fallback JavaScript implementation...
115
+ * }
116
+ *
117
+ * // Create a ns.binaryAddonDispatch function:
118
+ * var f = ns.binaryAddonDispatch( addon, fallback );
119
+ *
120
+ * // ...
121
+ *
122
+ * // Invoke the ns.binaryAddonDispatch function with strided array arguments:
123
+ * f( 2, 'generic', [ 1, 2 ], 1, 'generic', [ 3, 4 ], 1, 'generic', [ 0, 0 ], 1 );
124
+ *
125
+ * @example
126
+ * function addon( N, dtypeX, x, strideX, dtypeY, y, strideY, dtypeZ, z, strideZ ) {
127
+ * // Call into native add-on...
128
+ * }
129
+ *
130
+ * function fallback( N, dtypeX, x, strideX, offsetX, dtypeY, y, strideY, offsetY, dtypeZ, z, strideZ, offsetZ ) {
131
+ * // Fallback JavaScript implementation...
132
+ * }
133
+ *
134
+ * // Create a ns.binaryAddonDispatch function:
135
+ * var f = ns.binaryAddonDispatch.ndarray( addon, fallback );
136
+ *
137
+ * // ...
138
+ *
139
+ * // Invoke the ns.binaryAddonDispatch function with strided array arguments:
140
+ * f( 2, 'generic', [ 1, 2 ], 1, 0, 'generic', [ 3, 4 ], 1, 0, 'generic', [ 0, 0 ], 1, 0 );
141
+ */
142
+ binaryAddonDispatch: typeof binaryAddonDispatch;
143
+
144
+ /**
145
+ * Applies a unary function to a double-precision floating-point strided input array and assigns results to a double-precision floating-point strided output array.
92
146
  *
93
147
  * @param N - number of indexed elements
94
148
  * @param x - input array
@@ -127,7 +181,44 @@ interface Namespace {
127
181
  dmap: typeof dmap;
128
182
 
129
183
  /**
130
- * Applies a unary function accepting and returning double-precision floating-point numbers to each element in a double-precision floating-point strided input array according to a corresponding element in a strided mask array and assigns each result to an element in a double-precision floating-point strided output array.
184
+ * Applies a binary function to double-precision floating-point strided input arrays and assigns results to a double-precision floating-point strided output array.
185
+ *
186
+ * @param N - number of indexed elements
187
+ * @param x - input array
188
+ * @param strideX - `x` stride length
189
+ * @param y - input array
190
+ * @param strideY - `y` stride length
191
+ * @param z - destination array
192
+ * @param strideZ - `z` stride length
193
+ * @param fcn - binary function to apply
194
+ * @returns `z`
195
+ *
196
+ * @example
197
+ * var Float64Array = require( `@stdlib/array/float64` );
198
+ * var add = require( `@stdlib/math/base/ops/add` );
199
+ *
200
+ * var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
201
+ * var y = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
202
+ * var z = new Float64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0 ] );
203
+ *
204
+ * ns.dmap2( x.length, x, 1, y, 1, z, 1, add );
205
+ * // z => <Float64Array>[ 2.0, 4.0, 6.0, 8.0, 10.0 ]
206
+ *
207
+ * @example
208
+ * var Float64Array = require( `@stdlib/array/float64` );
209
+ * var add = require( `@stdlib/math/base/ops/add` );
210
+ *
211
+ * var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
212
+ * var y = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
213
+ * var z = new Float64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0 ] );
214
+ *
215
+ * ns.dmap2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, 0, add );
216
+ * // z => <Float64Array>[ 2.0, 4.0, 6.0, 8.0, 10.0 ]
217
+ */
218
+ dmap2: typeof dmap2;
219
+
220
+ /**
221
+ * Applies a unary function to a double-precision floating-point strided input array according to a strided mask array and assigns results to a double-precision floating-point strided output array.
131
222
  *
132
223
  * @param N - number of indexed elements
133
224
  * @param x - input array
@@ -172,7 +263,99 @@ interface Namespace {
172
263
  dmskmap: typeof dmskmap;
173
264
 
174
265
  /**
175
- * Applies a unary function to each element retrieved from a strided input array according to a callback function and assigns each result to an element in a strided output array.
266
+ * Applies a binary function to double-precision floating-point strided input arrays according to a strided mask array and assigns results to a double-precision floating-point strided output array
267
+ *
268
+ * @param N - number of indexed elements
269
+ * @param x - input array
270
+ * @param strideX - `x` stride length
271
+ * @param y - input array
272
+ * @param strideY - `y` stride length
273
+ * @param mask - mask array
274
+ * @param strideMask - `mask` stride length
275
+ * @param z - destination array
276
+ * @param strideZ - `z` stride length
277
+ * @param fcn - binary function to apply
278
+ * @returns `z`
279
+ *
280
+ * @example
281
+ * var Float64Array = require( `@stdlib/array/float64` );
282
+ * var Uint8Array = require( `@stdlib/array/uint8` );
283
+ * var add = require( `@stdlib/math/base/ops/add` );
284
+ *
285
+ * var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
286
+ * var y = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
287
+ * var z = new Float64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0 ] );
288
+ * var m = new Uint8Array( [ 0, 0, 1, 0, 0 ] );
289
+ *
290
+ * ns.dmskmap2( x.length, x, 1, m, 1, y, 1, add );
291
+ * // z => <Float64Array>[ 2.0, 4.0, 0.0, 8.0, 10.0 ]
292
+ *
293
+ * @example
294
+ * var Float64Array = require( `@stdlib/array/float64` );
295
+ * var Uint8Array = require( `@stdlib/array/uint8` );
296
+ * var add = require( `@stdlib/math/base/ops/add` );
297
+ *
298
+ * var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
299
+ * var y = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
300
+ * var z = new Float64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0 ] );
301
+ * var m = new Uint8Array( [ 0, 0, 1, 0, 0 ] );
302
+ *
303
+ * ns.dmskmap2.ndarray( x.length, x, 1, 0, y, 1, 0, m, 1, 0, z, 1, 0, add );
304
+ * // z => <Float64Array>[ 2.0, 4.0, 0.0, 8.0, 10.0 ]
305
+ */
306
+ dmskmap2: typeof dmskmap2;
307
+
308
+ /**
309
+ * Returns the data type string associated with a strided array data type enumeration constant.
310
+ *
311
+ * @param dtype - data type enumeration constant
312
+ * @returns data type string
313
+ *
314
+ * @example
315
+ * var str2enum = require( `@stdlib/strided/base/dtype-str2enum` );
316
+ *
317
+ * var v = str2enum( 'float64' );
318
+ * // returns <number>
319
+ *
320
+ * var dt = ns.dtypeEnum2Str( v );
321
+ * // returns 'float64'
322
+ */
323
+ dtypeEnum2Str: typeof dtypeEnum2Str;
324
+
325
+ /**
326
+ * Returns the enumeration constant associated with a strided array data type value.
327
+ *
328
+ * ## Notes
329
+ *
330
+ * - Downstream consumers of this function should **not** rely on specific integer values (e.g., `INT8 == 0`). Instead, the function should be used in an opaque manner.
331
+ *
332
+ * @param dtype - data type value
333
+ * @returns enumeration constant
334
+ *
335
+ * @example
336
+ * var v = ns.dtypeResolveEnum( 'float64' );
337
+ * // returns <number>
338
+ */
339
+ dtypeResolveEnum: typeof dtypeResolveEnum;
340
+
341
+ /**
342
+ * Returns the enumeration constant associated with a strided array data type string.
343
+ *
344
+ * ## Notes
345
+ *
346
+ * - Downstream consumers of this function should **not** rely on specific integer values (e.g., `INT8 == 0`). Instead, the function should be used in an opaque manner.
347
+ *
348
+ * @param dtype - data type string
349
+ * @returns enumeration constant
350
+ *
351
+ * @example
352
+ * var v = ns.dtypeStr2Enum( 'float64' );
353
+ * // returns <number>
354
+ */
355
+ dtypeStr2Enum: typeof dtypeStr2Enum;
356
+
357
+ /**
358
+ * Applies a unary function to each element retrieved from a strided input array according to a callback function and assigns results to a strided output array.
176
359
  *
177
360
  * @param N - number of indexed elements
178
361
  * @param x - input array
@@ -212,6 +395,86 @@ interface Namespace {
212
395
  */
213
396
  mapBy: typeof mapBy;
214
397
 
398
+ /**
399
+ * Applies a binary function to each pair of elements retrieved from strided input arrays according to a callback function and assigns results to a strided output array
400
+ *
401
+ * @param N - number of indexed elements
402
+ * @param x - input array
403
+ * @param strideX - `x` stride length
404
+ * @param y - input array
405
+ * @param strideY - `y` stride length
406
+ * @param z - destination array
407
+ * @param strideZ - `z` stride length
408
+ * @param fcn - binary function to apply to callback return values
409
+ * @param clbk - callback function which returns an array-like object containing two values
410
+ * @param thisArg - callback execution context
411
+ * @returns `z`
412
+ *
413
+ * @example
414
+ * var add = require( `@stdlib/math/base/ops/add` );
415
+ *
416
+ * function accessor( v1, v2 ) {
417
+ * return [ v1*2.0, v2*2.0 ];
418
+ * }
419
+ *
420
+ * var x = [ 1.0, -2.0, 3.0, -4.0, 5.0 ];
421
+ * var y = [ 1.0, 2.0, 3.0, 4.0, 5.0 ];
422
+ * var z = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
423
+ *
424
+ * ns.mapBy2( x.length, x, 1, y, 1, z, 1, add, accessor );
425
+ * // z => [ 4.0, 0.0, 12.0, 0.0, 20.0 ]
426
+ *
427
+ * @example
428
+ * var add = require( `@stdlib/math/base/ops/add` );
429
+ *
430
+ * function accessor( v1, v2 ) {
431
+ * return [ v1*2.0, v2*2.0 ];
432
+ * }
433
+ *
434
+ * var x = [ 1.0, -2.0, 3.0, -4.0, 5.0 ];
435
+ * var y = [ 1.0, 2.0, 3.0, 4.0, 5.0 ];
436
+ * var z = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
437
+ *
438
+ * ns.mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, 0, add, accessor );
439
+ * // z => [ 4.0, 0.0, 12.0, 0.0, 20.0 ]
440
+ */
441
+ mapBy2: typeof mapBy2;
442
+
443
+ /**
444
+ * Defines non-enumerable read-only properties which expose strided array function meta data.
445
+ *
446
+ * @param meta - function meta data
447
+ * @param meta.nargs - total number of arguments (excluding offsets)
448
+ * @param meta.nin - total number of input arrays
449
+ * @param meta.nout - total number of output arrays
450
+ * @param dtypes - list of strided array data types
451
+ * @param obj - object on which to define properties
452
+ * @param bool - boolean indicating whether the provided object should describe an "ndarray" function interface
453
+ * @returns object on which properties were defined
454
+ *
455
+ * @example
456
+ * // Define strided array function meta data:
457
+ * var meta = {
458
+ * 'nargs': 7,
459
+ * 'nin': 1,
460
+ * 'nout': 1
461
+ * };
462
+ *
463
+ * // Define the list of strided array data types:
464
+ * var dtypes = [
465
+ * 'float64', 'float64',
466
+ * 'float32', 'float32',
467
+ * 'generic', 'generic'
468
+ * ];
469
+ *
470
+ * // Define an object/function on which to set the properties:
471
+ * var obj = {};
472
+ *
473
+ * // Set the properties:
474
+ * ns.metaDataProps( meta, dtypes, obj, false );
475
+ */
476
+ metaDataProps: typeof metaDataProps;
477
+
215
478
  /**
216
479
  * Applies a unary callback to elements in a strided input array according to elements in a strided mask array and assigns results to elements in a strided output array.
217
480
  *
@@ -417,7 +680,7 @@ interface Namespace {
417
680
  quinary: typeof quinary;
418
681
 
419
682
  /**
420
- * Applies a unary function accepting and returning single-precision floating-point numbers to each element in a single-precision floating-point strided input array and assigns each result to an element in a single-precision floating-point strided output array.
683
+ * Applies a unary function to a single-precision floating-point strided input array and assigns results to a single-precision floating-point strided output array.
421
684
  *
422
685
  * @param N - number of indexed elements
423
686
  * @param x - input array
@@ -456,7 +719,44 @@ interface Namespace {
456
719
  smap: typeof smap;
457
720
 
458
721
  /**
459
- * Applies a unary function accepting and returning single-precision floating-point numbers to each element in a single-precision floating-point strided input array according to a corresponding element in a strided mask array and assigns each result to an element in a single-precision floating-point strided output array.
722
+ * Applies a binary function to single-precision floating-point strided input arrays and assigns results to a single-precision floating-point strided output array.
723
+ *
724
+ * @param N - number of indexed elements
725
+ * @param x - input array
726
+ * @param strideX - `x` stride length
727
+ * @param y - input array
728
+ * @param strideY - `y` stride length
729
+ * @param z - destination array
730
+ * @param strideZ - `z` stride length
731
+ * @param fcn - binary function to apply
732
+ * @returns `z`
733
+ *
734
+ * @example
735
+ * var Float32Array = require( `@stdlib/array/float32` );
736
+ * var addf = require( `@stdlib/math/base/ops/addf` );
737
+ *
738
+ * var x = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
739
+ * var y = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
740
+ * var z = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0 ] );
741
+ *
742
+ * ns.smap2( x.length, x, 1, y, 1, z, 1, addf );
743
+ * // z => <Float32Array>[ 2.0, 4.0, 6.0, 8.0, 10.0 ]
744
+ *
745
+ * @example
746
+ * var Float32Array = require( `@stdlib/array/float32` );
747
+ * var addf = require( `@stdlib/math/base/ops/addf` );
748
+ *
749
+ * var x = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
750
+ * var y = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
751
+ * var z = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0 ] );
752
+ *
753
+ * ns.smap2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, 0, addf );
754
+ * // z => <Float32Array>[ 2.0, 4.0, 6.0, 8.0, 10.0 ]
755
+ */
756
+ smap2: typeof smap2;
757
+
758
+ /**
759
+ * Applies a unary function to a single-precision floating-point strided input array according to a strided mask array and assigns results to a single-precision floating-point strided output array.
460
760
  *
461
761
  * @param N - number of indexed elements
462
762
  * @param x - input array
@@ -500,6 +800,49 @@ interface Namespace {
500
800
  */
501
801
  smskmap: typeof smskmap;
502
802
 
803
+ /**
804
+ * Applies a binary function to single-precision floating-point strided input arrays according to a strided mask array and assigns results to a single-precision floating-point strided output array
805
+ *
806
+ * @param N - number of indexed elements
807
+ * @param x - input array
808
+ * @param strideX - `x` stride length
809
+ * @param y - input array
810
+ * @param strideY - `y` stride length
811
+ * @param mask - mask array
812
+ * @param strideMask - `mask` stride length
813
+ * @param z - destination array
814
+ * @param strideZ - `z` stride length
815
+ * @param fcn - binary function to apply
816
+ * @returns `z`
817
+ *
818
+ * @example
819
+ * var Float32Array = require( `@stdlib/array/float32` );
820
+ * var Uint8Array = require( `@stdlib/array/uint8` );
821
+ * var addf = require( `@stdlib/math/base/ops/addf` );
822
+ *
823
+ * var x = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
824
+ * var y = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
825
+ * var z = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0 ] );
826
+ * var m = new Uint8Array( [ 0, 0, 1, 0, 0 ] );
827
+ *
828
+ * ns.smskmap2( x.length, x, 1, m, 1, y, 1, addf );
829
+ * // z => <Float32Array>[ 2.0, 4.0, 0.0, 8.0, 10.0 ]
830
+ *
831
+ * @example
832
+ * var Float32Array = require( `@stdlib/array/float32` );
833
+ * var Uint8Array = require( `@stdlib/array/uint8` );
834
+ * var addf = require( `@stdlib/math/base/ops/addf` );
835
+ *
836
+ * var x = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
837
+ * var y = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
838
+ * var z = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0 ] );
839
+ * var m = new Uint8Array( [ 0, 0, 1, 0, 0 ] );
840
+ *
841
+ * ns.smskmap2.ndarray( x.length, x, 1, 0, y, 1, 0, m, 1, 0, z, 1, 0, addf );
842
+ * // z => <Float32Array>[ 2.0, 4.0, 0.0, 8.0, 10.0 ]
843
+ */
844
+ smskmap2: typeof smskmap2;
845
+
503
846
  /**
504
847
  * Applies a ternary callback to strided input array elements and assigns results to elements in a strided output array.
505
848
  *
@@ -597,6 +940,49 @@ interface Namespace {
597
940
  * // => <Float64Array>[ 10.0, 20.0, 30.0, 40.0, 50.0 ]
598
941
  */
599
942
  unary: typeof unary;
943
+
944
+ /**
945
+ * Returns a function which dispatches to a native add-on applying a unary function to an input strided array.
946
+ *
947
+ * @param addon - add-on function
948
+ * @param fallback - fallback function
949
+ * @returns dispatch function
950
+ *
951
+ * @example
952
+ * function addon( N, dtypeX, x, strideX, dtypeY, y, strideY ) {
953
+ * // Call into native add-on...
954
+ * }
955
+ *
956
+ * function fallback( N, dtypeX, x, strideX, dtypeY, y, strideY ) {
957
+ * // Fallback JavaScript implementation...
958
+ * }
959
+ *
960
+ * // Create a ns.unaryAddonDispatch function:
961
+ * var f = ns.unaryAddonDispatch( addon, fallback );
962
+ *
963
+ * // ...
964
+ *
965
+ * // Invoke the ns.unaryAddonDispatch function with strided array arguments:
966
+ * f( 2, 'generic', [ 1, 2 ], 1, 'generic', [ 0, 0 ], 1 );
967
+ *
968
+ * @example
969
+ * function addon( N, dtypeX, x, strideX, dtypeY, y, strideY ) {
970
+ * // Call into native add-on...
971
+ * }
972
+ *
973
+ * function fallback( N, dtypeX, x, strideX, offsetX, dtypeY, y, strideY, offsetY ) {
974
+ * // Fallback JavaScript implementation...
975
+ * }
976
+ *
977
+ * // Create a ns.unaryAddonDispatch function:
978
+ * var f = ns.unaryAddonDispatch.ndarray( addon, fallback );
979
+ *
980
+ * // ...
981
+ *
982
+ * // Invoke the ns.unaryAddonDispatch function with strided array arguments:
983
+ * f( 2, 'generic', [ 1, 2 ], 1, 0, 'generic', [ 0, 0 ], 1, 0 );
984
+ */
985
+ unaryAddonDispatch: typeof unaryAddonDispatch;
600
986
  }
601
987
 
602
988
  /**
package/lib/index.js CHANGED
@@ -45,6 +45,42 @@ var ns = {};
45
45
  */
46
46
  setReadOnly( ns, 'binary', require( '@stdlib/strided-base-binary' ) );
47
47
 
48
+ /**
49
+ * @name binaryAddonDispatch
50
+ * @memberof ns
51
+ * @readonly
52
+ * @type {Function}
53
+ * @see {@link module:@stdlib/strided/base/binary-addon-dispatch}
54
+ */
55
+ setReadOnly( ns, 'binaryAddonDispatch', require( '@stdlib/strided-base-binary-addon-dispatch' ) );
56
+
57
+ /**
58
+ * @name binaryDtypeSignatures
59
+ * @memberof ns
60
+ * @readonly
61
+ * @type {Function}
62
+ * @see {@link module:@stdlib/strided/base/binary-dtype-signatures}
63
+ */
64
+ setReadOnly( ns, 'binaryDtypeSignatures', require( '@stdlib/strided-base-binary-dtype-signatures' ) );
65
+
66
+ /**
67
+ * @name binarySignatureCallbacks
68
+ * @memberof ns
69
+ * @readonly
70
+ * @type {Function}
71
+ * @see {@link module:@stdlib/strided/base/binary-signature-callbacks}
72
+ */
73
+ setReadOnly( ns, 'binarySignatureCallbacks', require( '@stdlib/strided-base-binary-signature-callbacks' ) );
74
+
75
+ /**
76
+ * @name cmap
77
+ * @memberof ns
78
+ * @readonly
79
+ * @type {Function}
80
+ * @see {@link module:@stdlib/strided/base/cmap}
81
+ */
82
+ setReadOnly( ns, 'cmap', require( '@stdlib/strided-base-cmap' ) );
83
+
48
84
  /**
49
85
  * @name dmap
50
86
  * @memberof ns
@@ -54,6 +90,15 @@ setReadOnly( ns, 'binary', require( '@stdlib/strided-base-binary' ) );
54
90
  */
55
91
  setReadOnly( ns, 'dmap', require( '@stdlib/strided-base-dmap' ) );
56
92
 
93
+ /**
94
+ * @name dmap2
95
+ * @memberof ns
96
+ * @readonly
97
+ * @type {Function}
98
+ * @see {@link module:@stdlib/strided/base/dmap2}
99
+ */
100
+ setReadOnly( ns, 'dmap2', require( '@stdlib/strided-base-dmap2' ) );
101
+
57
102
  /**
58
103
  * @name dmskmap
59
104
  * @memberof ns
@@ -63,6 +108,51 @@ setReadOnly( ns, 'dmap', require( '@stdlib/strided-base-dmap' ) );
63
108
  */
64
109
  setReadOnly( ns, 'dmskmap', require( '@stdlib/strided-base-dmskmap' ) );
65
110
 
111
+ /**
112
+ * @name dmskmap2
113
+ * @memberof ns
114
+ * @readonly
115
+ * @type {Function}
116
+ * @see {@link module:@stdlib/strided/base/dmskmap2}
117
+ */
118
+ setReadOnly( ns, 'dmskmap2', require( '@stdlib/strided-base-dmskmap2' ) );
119
+
120
+ /**
121
+ * @name dtypeEnum2Str
122
+ * @memberof ns
123
+ * @readonly
124
+ * @type {Function}
125
+ * @see {@link module:@stdlib/strided/base/dtype-enum2str}
126
+ */
127
+ setReadOnly( ns, 'dtypeEnum2Str', require( '@stdlib/strided-base-dtype-enum2str' ) );
128
+
129
+ /**
130
+ * @name dtypeResolveEnum
131
+ * @memberof ns
132
+ * @readonly
133
+ * @type {Function}
134
+ * @see {@link module:@stdlib/strided/base/dtype-resolve-enum}
135
+ */
136
+ setReadOnly( ns, 'dtypeResolveEnum', require( '@stdlib/strided-base-dtype-resolve-enum' ) );
137
+
138
+ /**
139
+ * @name dtypeResolveStr
140
+ * @memberof ns
141
+ * @readonly
142
+ * @type {Function}
143
+ * @see {@link module:@stdlib/strided/base/dtype-resolve-str}
144
+ */
145
+ setReadOnly( ns, 'dtypeResolveStr', require( '@stdlib/strided-base-dtype-resolve-str' ) );
146
+
147
+ /**
148
+ * @name dtypeStr2Enum
149
+ * @memberof ns
150
+ * @readonly
151
+ * @type {Function}
152
+ * @see {@link module:@stdlib/strided/base/dtype-str2enum}
153
+ */
154
+ setReadOnly( ns, 'dtypeStr2Enum', require( '@stdlib/strided-base-dtype-str2enum' ) );
155
+
66
156
  /**
67
157
  * @name mapBy
68
158
  * @memberof ns
@@ -72,6 +162,42 @@ setReadOnly( ns, 'dmskmap', require( '@stdlib/strided-base-dmskmap' ) );
72
162
  */
73
163
  setReadOnly( ns, 'mapBy', require( '@stdlib/strided-base-map-by' ) );
74
164
 
165
+ /**
166
+ * @name mapBy2
167
+ * @memberof ns
168
+ * @readonly
169
+ * @type {Function}
170
+ * @see {@link module:@stdlib/strided/base/map-by2}
171
+ */
172
+ setReadOnly( ns, 'mapBy2', require( '@stdlib/strided-base-map-by2' ) );
173
+
174
+ /**
175
+ * @name maxViewBufferIndex
176
+ * @memberof ns
177
+ * @readonly
178
+ * @type {Function}
179
+ * @see {@link module:@stdlib/strided/base/max-view-buffer-index}
180
+ */
181
+ setReadOnly( ns, 'maxViewBufferIndex', require( '@stdlib/strided-base-max-view-buffer-index' ) );
182
+
183
+ /**
184
+ * @name metaDataProps
185
+ * @memberof ns
186
+ * @readonly
187
+ * @type {Function}
188
+ * @see {@link module:@stdlib/strided/base/meta-data-props}
189
+ */
190
+ setReadOnly( ns, 'metaDataProps', require( '@stdlib/strided-base-meta-data-props' ) );
191
+
192
+ /**
193
+ * @name minViewBufferIndex
194
+ * @memberof ns
195
+ * @readonly
196
+ * @type {Function}
197
+ * @see {@link module:@stdlib/strided/base/min-view-buffer-index}
198
+ */
199
+ setReadOnly( ns, 'minViewBufferIndex', require( '@stdlib/strided-base-min-view-buffer-index' ) );
200
+
75
201
  /**
76
202
  * @name mskunary
77
203
  * @memberof ns
@@ -90,6 +216,15 @@ setReadOnly( ns, 'mskunary', require( '@stdlib/strided-base-mskunary' ) );
90
216
  */
91
217
  setReadOnly( ns, 'nullary', require( '@stdlib/strided-base-nullary' ) );
92
218
 
219
+ /**
220
+ * @name offsetView
221
+ * @memberof ns
222
+ * @readonly
223
+ * @type {Function}
224
+ * @see {@link module:@stdlib/strided/base/offset-view}
225
+ */
226
+ setReadOnly( ns, 'offsetView', require( '@stdlib/strided-base-offset-view' ) );
227
+
93
228
  /**
94
229
  * @name quaternary
95
230
  * @memberof ns
@@ -108,6 +243,24 @@ setReadOnly( ns, 'quaternary', require( '@stdlib/strided-base-quaternary' ) );
108
243
  */
109
244
  setReadOnly( ns, 'quinary', require( '@stdlib/strided-base-quinary' ) );
110
245
 
246
+ /**
247
+ * @name reinterpretComplex64
248
+ * @memberof ns
249
+ * @readonly
250
+ * @type {Function}
251
+ * @see {@link module:@stdlib/strided/base/reinterpret-complex64}
252
+ */
253
+ setReadOnly( ns, 'reinterpretComplex64', require( '@stdlib/strided-base-reinterpret-complex64' ) );
254
+
255
+ /**
256
+ * @name reinterpretComplex128
257
+ * @memberof ns
258
+ * @readonly
259
+ * @type {Function}
260
+ * @see {@link module:@stdlib/strided/base/reinterpret-complex128}
261
+ */
262
+ setReadOnly( ns, 'reinterpretComplex128', require( '@stdlib/strided-base-reinterpret-complex128' ) );
263
+
111
264
  /**
112
265
  * @name smap
113
266
  * @memberof ns
@@ -117,6 +270,15 @@ setReadOnly( ns, 'quinary', require( '@stdlib/strided-base-quinary' ) );
117
270
  */
118
271
  setReadOnly( ns, 'smap', require( '@stdlib/strided-base-smap' ) );
119
272
 
273
+ /**
274
+ * @name smap2
275
+ * @memberof ns
276
+ * @readonly
277
+ * @type {Function}
278
+ * @see {@link module:@stdlib/strided/base/smap2}
279
+ */
280
+ setReadOnly( ns, 'smap2', require( '@stdlib/strided-base-smap2' ) );
281
+
120
282
  /**
121
283
  * @name smskmap
122
284
  * @memberof ns
@@ -126,6 +288,15 @@ setReadOnly( ns, 'smap', require( '@stdlib/strided-base-smap' ) );
126
288
  */
127
289
  setReadOnly( ns, 'smskmap', require( '@stdlib/strided-base-smskmap' ) );
128
290
 
291
+ /**
292
+ * @name smskmap2
293
+ * @memberof ns
294
+ * @readonly
295
+ * @type {Function}
296
+ * @see {@link module:@stdlib/strided/base/smskmap2}
297
+ */
298
+ setReadOnly( ns, 'smskmap2', require( '@stdlib/strided-base-smskmap2' ) );
299
+
129
300
  /**
130
301
  * @name ternary
131
302
  * @memberof ns
@@ -144,6 +315,24 @@ setReadOnly( ns, 'ternary', require( '@stdlib/strided-base-ternary' ) );
144
315
  */
145
316
  setReadOnly( ns, 'unary', require( '@stdlib/strided-base-unary' ) );
146
317
 
318
+ /**
319
+ * @name unaryAddonDispatch
320
+ * @memberof ns
321
+ * @readonly
322
+ * @type {Function}
323
+ * @see {@link module:@stdlib/strided/base/unary-addon-dispatch}
324
+ */
325
+ setReadOnly( ns, 'unaryAddonDispatch', require( '@stdlib/strided-base-unary-addon-dispatch' ) );
326
+
327
+ /**
328
+ * @name zmap
329
+ * @memberof ns
330
+ * @readonly
331
+ * @type {Function}
332
+ * @see {@link module:@stdlib/strided/base/zmap}
333
+ */
334
+ setReadOnly( ns, 'zmap', require( '@stdlib/strided-base-zmap' ) );
335
+
147
336
 
148
337
  // EXPORTS //
149
338
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/strided-base",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "Base strided.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -37,42 +37,116 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@stdlib/strided-base-binary": "^0.0.x",
40
+ "@stdlib/strided-base-binary-addon-dispatch": "^0.0.x",
41
+ "@stdlib/strided-base-binary-dtype-signatures": "^0.0.x",
42
+ "@stdlib/strided-base-binary-signature-callbacks": "^0.0.x",
43
+ "@stdlib/strided-base-cmap": "^0.0.x",
40
44
  "@stdlib/strided-base-dmap": "^0.0.x",
45
+ "@stdlib/strided-base-dmap2": "^0.0.x",
41
46
  "@stdlib/strided-base-dmskmap": "^0.0.x",
47
+ "@stdlib/strided-base-dmskmap2": "^0.0.x",
48
+ "@stdlib/strided-base-dtype-enum2str": "^0.0.x",
49
+ "@stdlib/strided-base-dtype-resolve-enum": "^0.0.x",
50
+ "@stdlib/strided-base-dtype-resolve-str": "^0.0.x",
51
+ "@stdlib/strided-base-dtype-str2enum": "^0.0.x",
42
52
  "@stdlib/strided-base-map-by": "^0.0.x",
53
+ "@stdlib/strided-base-map-by2": "^0.0.x",
54
+ "@stdlib/strided-base-max-view-buffer-index": "^0.0.x",
55
+ "@stdlib/strided-base-meta-data-props": "^0.0.x",
56
+ "@stdlib/strided-base-min-view-buffer-index": "^0.0.x",
43
57
  "@stdlib/strided-base-mskunary": "^0.0.x",
44
58
  "@stdlib/strided-base-nullary": "^0.0.x",
59
+ "@stdlib/strided-base-offset-view": "^0.0.x",
45
60
  "@stdlib/strided-base-quaternary": "^0.0.x",
46
61
  "@stdlib/strided-base-quinary": "^0.0.x",
62
+ "@stdlib/strided-base-reinterpret-complex128": "^0.0.x",
63
+ "@stdlib/strided-base-reinterpret-complex64": "^0.0.x",
47
64
  "@stdlib/strided-base-smap": "^0.0.x",
65
+ "@stdlib/strided-base-smap2": "^0.0.x",
48
66
  "@stdlib/strided-base-smskmap": "^0.0.x",
67
+ "@stdlib/strided-base-smskmap2": "^0.0.x",
49
68
  "@stdlib/strided-base-ternary": "^0.0.x",
50
69
  "@stdlib/strided-base-unary": "^0.0.x",
70
+ "@stdlib/strided-base-unary-addon-dispatch": "^0.0.x",
71
+ "@stdlib/strided-base-zmap": "^0.0.x",
51
72
  "@stdlib/utils-define-read-only-property": "^0.0.x"
52
73
  },
53
74
  "devDependencies": {
75
+ "@stdlib/array-buffer": "^0.0.x",
76
+ "@stdlib/array-complex128": "^0.0.x",
77
+ "@stdlib/array-complex64": "^0.0.x",
54
78
  "@stdlib/array-filled": "^0.0.x",
79
+ "@stdlib/array-filled-by": "^0.0.x",
55
80
  "@stdlib/array-float32": "^0.0.x",
56
81
  "@stdlib/array-float64": "^0.0.x",
57
82
  "@stdlib/array-uint8": "^0.0.x",
83
+ "@stdlib/assert-has-own-property": "^0.0.x",
84
+ "@stdlib/assert-is-array": "^0.0.x",
58
85
  "@stdlib/assert-is-browser": "^0.0.x",
86
+ "@stdlib/assert-is-complex128": "^0.0.x",
87
+ "@stdlib/assert-is-complex64": "^0.0.x",
88
+ "@stdlib/assert-is-complex64array": "^0.0.x",
89
+ "@stdlib/assert-is-float32array": "^0.0.x",
90
+ "@stdlib/assert-is-float64array": "^0.0.x",
91
+ "@stdlib/assert-is-function": "^0.0.x",
92
+ "@stdlib/assert-is-function-array": "^0.0.x",
93
+ "@stdlib/assert-is-integer": "^0.0.x",
94
+ "@stdlib/assert-is-integer-array": "^0.0.x",
95
+ "@stdlib/assert-is-nonnegative-integer": "^0.0.x",
96
+ "@stdlib/assert-is-string": "^0.0.x",
97
+ "@stdlib/assert-is-string-array": "^0.0.x",
98
+ "@stdlib/assert-is-typed-array": "^0.0.x",
99
+ "@stdlib/assert-is-typed-array-like": "^0.0.x",
100
+ "@stdlib/assert-is-uint8array": "^0.0.x",
59
101
  "@stdlib/bench": "^0.0.x",
60
- "@stdlib/blas-ext-base-gfill-by": "^0.0.x",
102
+ "@stdlib/complex-base-wrap-function": "^0.0.x",
103
+ "@stdlib/complex-float32": "^0.0.x",
104
+ "@stdlib/complex-float64": "^0.0.x",
105
+ "@stdlib/complex-imag": "^0.0.x",
106
+ "@stdlib/complex-real": "^0.0.x",
107
+ "@stdlib/fs-read-dir": "^0.0.x",
108
+ "@stdlib/fs-read-file": "^0.0.x",
109
+ "@stdlib/fs-read-json": "^0.0.x",
110
+ "@stdlib/fs-unlink": "^0.0.x",
111
+ "@stdlib/fs-write-file": "^0.0.x",
61
112
  "@stdlib/math-base-assert-is-nan": "^0.0.x",
62
113
  "@stdlib/math-base-assert-is-nanf": "^0.0.x",
114
+ "@stdlib/math-base-ops-add": "^0.0.x",
115
+ "@stdlib/math-base-ops-addf": "^0.0.x",
116
+ "@stdlib/math-base-ops-cadd": "^0.0.x",
117
+ "@stdlib/math-base-ops-caddf": "^0.0.x",
63
118
  "@stdlib/math-base-special-abs": "^0.0.x",
64
119
  "@stdlib/math-base-special-absf": "^0.0.x",
120
+ "@stdlib/math-base-special-cidentity": "^0.0.x",
121
+ "@stdlib/math-base-special-cidentityf": "^0.0.x",
65
122
  "@stdlib/math-base-special-floor": "^0.0.x",
66
123
  "@stdlib/math-base-special-identity": "^0.0.x",
67
124
  "@stdlib/math-base-special-identityf": "^0.0.x",
68
125
  "@stdlib/math-base-special-pow": "^0.0.x",
69
126
  "@stdlib/math-base-special-round": "^0.0.x",
127
+ "@stdlib/ndarray-base-bytes-per-element": "^0.0.x",
128
+ "@stdlib/ndarray-base-char2dtype": "^0.0.x",
129
+ "@stdlib/ndarray-base-dtype-char": "^0.0.x",
130
+ "@stdlib/ndarray-base-dtype-desc": "^0.0.x",
131
+ "@stdlib/ndarray-base-dtype2c": "^0.0.x",
132
+ "@stdlib/ndarray-base-dtypes2signatures": "^0.0.x",
133
+ "@stdlib/ndarray-promotion-rules": "^0.0.x",
134
+ "@stdlib/ndarray-safe-casts": "^0.0.x",
70
135
  "@stdlib/random-base-bernoulli": "^0.0.x",
71
136
  "@stdlib/random-base-discrete-uniform": "^0.0.x",
72
137
  "@stdlib/random-base-randu": "^0.0.x",
138
+ "@stdlib/random-base-uniform": "^0.0.x",
139
+ "@stdlib/strided-dtypes": "^0.0.x",
140
+ "@stdlib/string-replace": "^0.0.x",
141
+ "@stdlib/string-substring-after": "^0.0.x",
142
+ "@stdlib/string-substring-before": "^0.0.x",
143
+ "@stdlib/string-uppercase": "^0.0.x",
73
144
  "@stdlib/utils-constant-function": "^0.0.x",
145
+ "@stdlib/utils-define-nonenumerable-read-only-accessor": "^0.0.x",
74
146
  "@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.x",
75
147
  "@stdlib/utils-keys": "^0.0.x",
148
+ "@stdlib/utils-noop": "^0.0.x",
149
+ "@stdlib/utils-object-inverse": "^0.0.x",
76
150
  "tape": "git+https://github.com/kgryte/tape.git#fix/globby",
77
151
  "istanbul": "^0.4.1",
78
152
  "tap-spec": "5.x.x"