@stdlib/utils-map2-right 0.1.0 → 0.2.0

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-2023 The Stdlib Authors.
1
+ Copyright (c) 2016-2024 The Stdlib Authors.
package/README.md CHANGED
@@ -317,6 +317,13 @@ console.log( z.data );
317
317
 
318
318
  <section class="related">
319
319
 
320
+ * * *
321
+
322
+ ## See Also
323
+
324
+ - <span class="package-name">[`@stdlib/utils-map-right`][@stdlib/utils/map-right]</span><span class="delimiter">: </span><span class="description">apply a function to each element in an array and assign the result to an element in an output array, iterating from right to left.</span>
325
+ - <span class="package-name">[`@stdlib/utils-map2`][@stdlib/utils/map2]</span><span class="delimiter">: </span><span class="description">apply a function to elements in two input arrays and assign the results to an output array.</span>
326
+
320
327
  </section>
321
328
 
322
329
  <!-- /.related -->
@@ -347,7 +354,7 @@ See [LICENSE][stdlib-license].
347
354
 
348
355
  ## Copyright
349
356
 
350
- Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
357
+ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
351
358
 
352
359
  </section>
353
360
 
@@ -360,8 +367,8 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
360
367
  [npm-image]: http://img.shields.io/npm/v/@stdlib/utils-map2-right.svg
361
368
  [npm-url]: https://npmjs.org/package/@stdlib/utils-map2-right
362
369
 
363
- [test-image]: https://github.com/stdlib-js/utils-map2-right/actions/workflows/test.yml/badge.svg?branch=v0.1.0
364
- [test-url]: https://github.com/stdlib-js/utils-map2-right/actions/workflows/test.yml?query=branch:v0.1.0
370
+ [test-image]: https://github.com/stdlib-js/utils-map2-right/actions/workflows/test.yml/badge.svg?branch=v0.2.0
371
+ [test-url]: https://github.com/stdlib-js/utils-map2-right/actions/workflows/test.yml?query=branch:v0.2.0
365
372
 
366
373
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/utils-map2-right/main.svg
367
374
  [coverage-url]: https://codecov.io/github/stdlib-js/utils-map2-right?branch=main
@@ -384,23 +391,34 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
384
391
  [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
385
392
 
386
393
  [deno-url]: https://github.com/stdlib-js/utils-map2-right/tree/deno
394
+ [deno-readme]: https://github.com/stdlib-js/utils-map2-right/blob/deno/README.md
387
395
  [umd-url]: https://github.com/stdlib-js/utils-map2-right/tree/umd
396
+ [umd-readme]: https://github.com/stdlib-js/utils-map2-right/blob/umd/README.md
388
397
  [esm-url]: https://github.com/stdlib-js/utils-map2-right/tree/esm
398
+ [esm-readme]: https://github.com/stdlib-js/utils-map2-right/blob/esm/README.md
389
399
  [branches-url]: https://github.com/stdlib-js/utils-map2-right/blob/main/branches.md
390
400
 
391
401
  [stdlib-license]: https://raw.githubusercontent.com/stdlib-js/utils-map2-right/main/LICENSE
392
402
 
393
- [@stdlib/ndarray/ctor]: https://www.npmjs.com/package/@stdlib/stdlib
403
+ [@stdlib/ndarray/ctor]: https://www.npmjs.com/package/@stdlib/ndarray-ctor
404
+
405
+ [@stdlib/ndarray/base/binary]: https://www.npmjs.com/package/@stdlib/ndarray-base-binary
406
+
407
+ [@stdlib/ndarray/base/broadcast-shapes]: https://www.npmjs.com/package/@stdlib/ndarray-base-broadcast-shapes
408
+
409
+ [@stdlib/ndarray/base/assert/is-contiguous]: https://www.npmjs.com/package/@stdlib/ndarray-base-assert-is-contiguous
410
+
411
+ [@stdlib/array/complex64]: https://www.npmjs.com/package/@stdlib/array-complex64
394
412
 
395
- [@stdlib/ndarray/base/binary]: https://www.npmjs.com/package/@stdlib/stdlib
413
+ [@stdlib/array/complex128]: https://www.npmjs.com/package/@stdlib/array-complex128
396
414
 
397
- [@stdlib/ndarray/base/broadcast-shapes]: https://www.npmjs.com/package/@stdlib/stdlib
415
+ <!-- <related-links> -->
398
416
 
399
- [@stdlib/ndarray/base/assert/is-contiguous]: https://www.npmjs.com/package/@stdlib/stdlib
417
+ [@stdlib/utils/map-right]: https://www.npmjs.com/package/@stdlib/utils-map-right
400
418
 
401
- [@stdlib/array/complex64]: https://www.npmjs.com/package/@stdlib/stdlib
419
+ [@stdlib/utils/map2]: https://www.npmjs.com/package/@stdlib/utils-map2
402
420
 
403
- [@stdlib/array/complex128]: https://www.npmjs.com/package/@stdlib/stdlib
421
+ <!-- </related-links> -->
404
422
 
405
423
  </section>
406
424
 
package/SECURITY.md ADDED
@@ -0,0 +1,5 @@
1
+ # Security
2
+
3
+ > Policy for reporting security vulnerabilities.
4
+
5
+ See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security).
package/dist/index.js CHANGED
@@ -3,9 +3,9 @@ var T=require('@stdlib/ndarray-base-vind2bind/dist'),V="throw";function rr(a,r,e
3
3
  });var I=c(function(gr,Q){
4
4
  function ar(a,r,e,u,v){var s,t,n,i,d,f,o;for(s=a.data,t=r.data,n=e.data,i=a.accessors[0],d=r.accessors[0],f=e.accessors[1],o=s.length-1;o>=0;o--)f(n,o,u.call(v,i(s,o),d(t,o),o,[s,t]))}Q.exports=ar
5
5
  });var Z=c(function(br,Y){
6
- var U=require('@stdlib/assert-is-array-like-object/dist'),W=require('@stdlib/assert-is-ndarray-like/dist'),er=require('@stdlib/assert-is-function/dist'),tr=require('@stdlib/array-base-zeros/dist'),R=require('@stdlib/ndarray-base-ndarraylike2object/dist'),z=require('@stdlib/array-base-arraylike2object/dist'),ir=require('@stdlib/ndarray-zeros/dist'),nr=require('@stdlib/ndarray-base-broadcast-shapes/dist'),X=require('@stdlib/ndarray-base-maybe-broadcast-array/dist'),p=require('@stdlib/error-tools-fmtprodmsg/dist'),sr=F(),ur=I();function or(a,r,e,u){var v,s,t,n,i;if(!er(e))throw new TypeError(p('1VV2H',e));if(v=W(a),s=W(r),v){if(!s)throw new TypeError(p('1VVBI',r));if(i=nr([a.shape,r.shape]),i===null)throw new Error(format('1VV1j'));return n=R(X(a,i)),n.ref=a,a=n,n=R(X(r,i)),n.ref=r,r=n,t=ir(i,{dtype:"generic",order:a.order}),sr(a,r,R(t),e,u),t}if(U(a)){if(s||!U(r))throw new TypeError(p('1VVBK',r));if(r.length!==a.length)throw new RangeError(format('1VVD3'));return t=tr(a.length),ur(z(a),z(r),z(t),e,u),t}throw new TypeError(p('1VVBH',a))}Y.exports=or
6
+ var U=require('@stdlib/assert-is-array-like-object/dist'),W=require('@stdlib/assert-is-ndarray-like/dist'),er=require('@stdlib/assert-is-function/dist'),tr=require('@stdlib/array-base-zeros/dist'),R=require('@stdlib/ndarray-base-ndarraylike2object/dist'),z=require('@stdlib/array-base-arraylike2object/dist'),ir=require('@stdlib/ndarray-zeros/dist'),nr=require('@stdlib/ndarray-base-broadcast-shapes/dist'),X=require('@stdlib/ndarray-base-maybe-broadcast-array/dist'),p=require('@stdlib/error-tools-fmtprodmsg/dist'),sr=F(),ur=I();function or(a,r,e,u){var v,s,t,n,i;if(!er(e))throw new TypeError(p('1VV2H',e));if(v=W(a),s=W(r),v){if(!s)throw new TypeError(p('1VVBI',r));if(i=nr([a.shape,r.shape]),i===null)throw new Error(h('1VV1j'));return n=R(X(a,i)),n.ref=a,a=n,n=R(X(r,i)),n.ref=r,r=n,t=ir(i,{dtype:"generic",order:a.order}),sr(a,r,R(t),e,u),t}if(U(a)){if(s||!U(r))throw new TypeError(p('1VVBK',r));if(r.length!==a.length)throw new RangeError(h('1VVD3'));return t=tr(a.length),ur(z(a),z(r),z(t),e,u),t}throw new TypeError(p('1VVBH',a))}Y.exports=or
7
7
  });var A=c(function(wr,$){
8
- var O=require('@stdlib/assert-is-array-like-object/dist'),L=require('@stdlib/assert-is-ndarray-like/dist'),vr=require('@stdlib/assert-is-function/dist'),S=require('@stdlib/ndarray-base-ndarraylike2object/dist'),C=require('@stdlib/array-base-arraylike2object/dist'),_=require('@stdlib/ndarray-base-maybe-broadcast-array/dist'),dr=require('@stdlib/ndarray-base-assert-is-read-only/dist'),h=require('@stdlib/error-tools-fmtprodmsg/dist'),lr=F(),hr=I();function fr(a,r,e,u,v){var s,t,n,i,d;if(!vr(u))throw new TypeError(h('1VV32',u));if(s=L(a),t=L(r),n=L(e),s){if(!t)throw new TypeError(h('1VVBI',r));if(!n)throw new TypeError(h('1VVBJ',e));if(dr(e))throw new Error(format('1VV1g'));return e=S(e),d=e.shape,i=S(_(a,d)),i.ref=a,a=i,i=S(_(r,d)),i.ref=r,r=i,lr(a,r,e,u,v),e.ref}if(O(a)){if(t||!O(r))throw new TypeError(h('1VVBK',r));if(n||!O(e))throw new TypeError(h('1VVBL',e));if(a.length!==r.length||r.length!==e.length)throw new RangeError(format('1VV1h'));return hr(C(a),C(r),C(e),u,v),e}throw new TypeError(h('1VVBH',a))}$.exports=fr
8
+ var O=require('@stdlib/assert-is-array-like-object/dist'),L=require('@stdlib/assert-is-ndarray-like/dist'),vr=require('@stdlib/assert-is-function/dist'),S=require('@stdlib/ndarray-base-ndarraylike2object/dist'),C=require('@stdlib/array-base-arraylike2object/dist'),_=require('@stdlib/ndarray-base-maybe-broadcast-array/dist'),dr=require('@stdlib/ndarray-base-assert-is-read-only/dist'),h=require('@stdlib/error-tools-fmtprodmsg/dist'),lr=F(),hr=I();function fr(a,r,e,u,v){var s,t,n,i,d;if(!vr(u))throw new TypeError(h('1VV32',u));if(s=L(a),t=L(r),n=L(e),s){if(!t)throw new TypeError(h('1VVBI',r));if(!n)throw new TypeError(h('1VVBJ',e));if(dr(e))throw new Error(h('1VV1g'));return e=S(e),d=e.shape,i=S(_(a,d)),i.ref=a,a=i,i=S(_(r,d)),i.ref=r,r=i,lr(a,r,e,u,v),e.ref}if(O(a)){if(t||!O(r))throw new TypeError(h('1VVBK',r));if(n||!O(e))throw new TypeError(h('1VVBL',e));if(a.length!==r.length||r.length!==e.length)throw new RangeError(h('1VV1h'));return hr(C(a),C(r),C(e),u,v),e}throw new TypeError(h('1VVBH',a))}$.exports=fr
9
9
  });var cr=require('@stdlib/utils-define-nonenumerable-read-only-property/dist'),x=Z(),pr=A();cr(x,"assign",pr);module.exports=x;
10
10
  /** @license Apache-2.0 */
11
11
  //# sourceMappingURL=index.js.map
@@ -128,9 +128,9 @@ interface Routine {
128
128
  * @returns output array
129
129
  *
130
130
  * @example
131
- * var naryFunction = require( `@stdlib/utils/nary-function` );
132
- * var add = require( `@stdlib/math/base/ops/add` );
133
- * var array = require( `@stdlib/ndarray/array` );
131
+ * var naryFunction = require( '@stdlib/utils-nary-function' );
132
+ * var add = require( '@stdlib/math-base-ops-add' );
133
+ * var array = require( '@stdlib/ndarray-array' );
134
134
  *
135
135
  * var opts = {
136
136
  * 'dtype': 'generic'
@@ -165,8 +165,8 @@ interface Routine {
165
165
  * @returns output array
166
166
  *
167
167
  * @example
168
- * var naryFunction = require( `@stdlib/utils/nary-function` );
169
- * var add = require( `@stdlib/math/base/ops/add` );
168
+ * var naryFunction = require( '@stdlib/utils-nary-function' );
169
+ * var add = require( '@stdlib/math-base-ops-add' );
170
170
  *
171
171
  * var x = [ 1, 2, 3, 4, 5, 6 ];
172
172
  * var y = [ 1, 1, 1, 1, 1, 1 ];
@@ -196,9 +196,9 @@ interface Routine {
196
196
  * @returns output array
197
197
  *
198
198
  * @example
199
- * var naryFunction = require( `@stdlib/utils/nary-function` );
200
- * var add = require( `@stdlib/math/base/ops/add` );
201
- * var array = require( `@stdlib/ndarray/array` );
199
+ * var naryFunction = require( '@stdlib/utils-nary-function' );
200
+ * var add = require( '@stdlib/math-base-ops-add' );
201
+ * var array = require( '@stdlib/ndarray-array' );
202
202
  *
203
203
  * var opts = {
204
204
  * 'dtype': 'generic',
@@ -235,8 +235,8 @@ interface Routine {
235
235
  * @returns output array
236
236
  *
237
237
  * @example
238
- * var naryFunction = require( `@stdlib/utils/nary-function` );
239
- * var add = require( `@stdlib/math/base/ops/add` );
238
+ * var naryFunction = require( '@stdlib/utils-nary-function' );
239
+ * var add = require( '@stdlib/math-base-ops-add' );
240
240
  *
241
241
  * var x = [ 1, 2, 3, 4, 5, 6 ];
242
242
  * var y = [ 1, 1, 1, 1, 1, 1 ];
@@ -269,8 +269,8 @@ interface Routine {
269
269
  * @returns output array
270
270
  *
271
271
  * @example
272
- * var naryFunction = require( `@stdlib/utils/nary-function` );
273
- * var add = require( `@stdlib/math/base/ops/add` );
272
+ * var naryFunction = require( '@stdlib/utils-nary-function' );
273
+ * var add = require( '@stdlib/math-base-ops-add' );
274
274
  *
275
275
  * var x = [ 1, 2, 3, 4, 5, 6 ];
276
276
  * var y = [ 1, 1, 1, 1, 1, 1 ];
@@ -279,9 +279,9 @@ interface Routine {
279
279
  * // returns [ 2, 3, 4, 5, 6, 7 ]
280
280
  *
281
281
  * @example
282
- * var naryFunction = require( `@stdlib/utils/nary-function` );
283
- * var add = require( `@stdlib/math/base/ops/add` );
284
- * var array = require( `@stdlib/ndarray/array` );
282
+ * var naryFunction = require( '@stdlib/utils-nary-function' );
283
+ * var add = require( '@stdlib/math-base-ops-add' );
284
+ * var array = require( '@stdlib/ndarray-array' );
285
285
  *
286
286
  * var opts = {
287
287
  * 'dtype': 'generic'
@@ -296,8 +296,8 @@ interface Routine {
296
296
  * // returns [ 2, 3, 4, 5, 6, 7 ]
297
297
  *
298
298
  * @example
299
- * var naryFunction = require( `@stdlib/utils/nary-function` );
300
- * var add = require( `@stdlib/math/base/ops/add` );
299
+ * var naryFunction = require( '@stdlib/utils-nary-function' );
300
+ * var add = require( '@stdlib/math-base-ops-add' );
301
301
  *
302
302
  * var x = [ 1, 2, 3, 4, 5, 6 ];
303
303
  * var y = [ 1, 1, 1, 1, 1, 1 ];
@@ -309,9 +309,9 @@ interface Routine {
309
309
  * // => [ 2, 3, 4, 5, 6, 7 ]
310
310
  *
311
311
  * @example
312
- * var naryFunction = require( `@stdlib/utils/nary-function` );
313
- * var add = require( `@stdlib/math/base/ops/add` );
314
- * var array = require( `@stdlib/ndarray/array` );
312
+ * var naryFunction = require( '@stdlib/utils-nary-function' );
313
+ * var add = require( '@stdlib/math-base-ops-add' );
314
+ * var array = require( '@stdlib/ndarray-array' );
315
315
  *
316
316
  * var opts = {
317
317
  * 'dtype': 'generic',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/utils-map2-right",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Apply a function to elements in two input arrays while iterating from right to left and assign the results to an output array.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -37,41 +37,42 @@
37
37
  "url": "https://github.com/stdlib-js/stdlib/issues"
38
38
  },
39
39
  "dependencies": {
40
- "@stdlib/array-base-arraylike2object": "^0.1.0",
41
- "@stdlib/array-base-zeros": "^0.1.0",
42
- "@stdlib/assert-is-array-like-object": "^0.1.0",
43
- "@stdlib/assert-is-function": "^0.1.0",
44
- "@stdlib/assert-is-ndarray-like": "^0.1.0",
45
- "@stdlib/ndarray-base-assert-is-read-only": "^0.1.0",
46
- "@stdlib/ndarray-base-broadcast-shapes": "^0.1.0",
47
- "@stdlib/ndarray-base-maybe-broadcast-array": "^0.1.0",
48
- "@stdlib/ndarray-base-ndarraylike2object": "^0.1.0",
49
- "@stdlib/ndarray-base-vind2bind": "^0.1.0",
50
- "@stdlib/ndarray-zeros": "^0.1.0",
51
- "@stdlib/string-format": "^0.1.0",
52
- "@stdlib/types": "^0.1.0",
53
- "@stdlib/utils-define-nonenumerable-read-only-property": "^0.1.0",
54
- "@stdlib/error-tools-fmtprodmsg": "^0.1.0"
40
+ "@stdlib/array-base-arraylike2object": "^0.2.0",
41
+ "@stdlib/array-base-zeros": "^0.2.0",
42
+ "@stdlib/assert-is-array-like-object": "^0.2.0",
43
+ "@stdlib/assert-is-function": "^0.2.0",
44
+ "@stdlib/assert-is-ndarray-like": "^0.2.0",
45
+ "@stdlib/ndarray-base-assert-is-read-only": "^0.2.0",
46
+ "@stdlib/ndarray-base-broadcast-shapes": "^0.2.0",
47
+ "@stdlib/ndarray-base-maybe-broadcast-array": "^0.2.0",
48
+ "@stdlib/ndarray-base-ndarraylike2object": "^0.2.0",
49
+ "@stdlib/ndarray-base-vind2bind": "^0.2.0",
50
+ "@stdlib/ndarray-zeros": "^0.2.0",
51
+ "@stdlib/string-format": "^0.2.0",
52
+ "@stdlib/types": "^0.3.1",
53
+ "@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.0",
54
+ "@stdlib/error-tools-fmtprodmsg": "^0.2.0"
55
55
  },
56
56
  "devDependencies": {
57
- "@stdlib/array-base-filled": "^0.1.0",
57
+ "@stdlib/array-base-filled": "^0.2.0",
58
58
  "@stdlib/array-complex64": "^0.1.0",
59
- "@stdlib/array-filled-by": "^0.0.2",
60
- "@stdlib/array-float64": "^0.1.0",
61
- "@stdlib/assert-is-array": "^0.1.0",
62
- "@stdlib/bench": "^0.1.0",
63
- "@stdlib/complex-imagf": "^0.1.0",
64
- "@stdlib/complex-realf": "^0.1.0",
65
- "@stdlib/math-base-ops-add": "^0.1.0",
66
- "@stdlib/math-base-ops-caddf": "^0.1.0",
67
- "@stdlib/math-base-special-pow": "^0.1.0",
68
- "@stdlib/ndarray-array": "^0.0.9",
59
+ "@stdlib/array-filled-by": "^0.1.0",
60
+ "@stdlib/array-float64": "^0.2.0",
61
+ "@stdlib/assert-is-array": "^0.2.0",
62
+ "@stdlib/complex-imagf": "^0.2.0",
63
+ "@stdlib/complex-realf": "^0.2.0",
64
+ "@stdlib/math-base-ops-add": "^0.2.0",
65
+ "@stdlib/math-base-ops-caddf": "^0.2.0",
66
+ "@stdlib/math-base-special-pow": "^0.2.0",
67
+ "@stdlib/ndarray-array": "^0.1.0",
69
68
  "@stdlib/ndarray-ctor": "^0.1.0",
70
- "@stdlib/random-base-discrete-uniform": "^0.0.6",
71
- "@stdlib/utils-nary-function": "^0.1.0",
69
+ "@stdlib/random-base-discrete-uniform": "^0.1.0",
70
+ "@stdlib/utils-nary-function": "^0.2.0",
72
71
  "tape": "git+https://github.com/kgryte/tape.git#fix/globby",
73
72
  "istanbul": "^0.4.1",
74
- "tap-min": "git+https://github.com/Planeshifter/tap-min.git"
73
+ "tap-min": "git+https://github.com/Planeshifter/tap-min.git",
74
+ "@stdlib/bench-harness": "^0.2.0",
75
+ "@stdlib/bench": "^0.3.1"
75
76
  },
76
77
  "engines": {
77
78
  "node": ">=0.10.0",
package/CITATION.cff DELETED
@@ -1,30 +0,0 @@
1
- cff-version: 1.2.0
2
- title: stdlib
3
- message: >-
4
- If you use this software, please cite it using the
5
- metadata from this file.
6
-
7
- type: software
8
-
9
- authors:
10
- - name: The Stdlib Authors
11
- url: https://github.com/stdlib-js/stdlib/graphs/contributors
12
-
13
- repository-code: https://github.com/stdlib-js/stdlib
14
- url: https://stdlib.io
15
-
16
- abstract: |
17
- Standard library for JavaScript and Node.js.
18
-
19
- keywords:
20
- - JavaScript
21
- - Node.js
22
- - TypeScript
23
- - standard library
24
- - scientific computing
25
- - numerical computing
26
- - statistical computing
27
-
28
- license: Apache-2.0 AND BSL-1.0
29
-
30
- date-released: 2016