@stdlib/math-strided-special-abs2-by 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 +1 -1
- package/README.md +38 -2
- package/docs/types/index.d.ts +2 -2
- package/package.json +1 -1
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2022 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ limitations under the License.
|
|
|
22
22
|
|
|
23
23
|
# abs2By
|
|
24
24
|
|
|
25
|
-
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] [![dependencies][dependencies-image]][dependencies-url]
|
|
25
|
+
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
|
|
26
26
|
|
|
27
27
|
> Compute the [squared absolute value][@stdlib/math/base/special/abs2] of each element retrieved from an input strided array via a callback function.
|
|
28
28
|
|
|
@@ -240,6 +240,23 @@ console.log( y );
|
|
|
240
240
|
|
|
241
241
|
<!-- /.examples -->
|
|
242
242
|
|
|
243
|
+
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
|
|
244
|
+
|
|
245
|
+
<section class="related">
|
|
246
|
+
|
|
247
|
+
* * *
|
|
248
|
+
|
|
249
|
+
## See Also
|
|
250
|
+
|
|
251
|
+
- <span class="package-name">[`@stdlib/math/strided/special/abs-by`][@stdlib/math/strided/special/abs-by]</span><span class="delimiter">: </span><span class="description">compute the absolute value of each element retrieved from a strided input array via a callback function and assign each result to an element in a strided output array.</span>
|
|
252
|
+
- <span class="package-name">[`@stdlib/math/strided/special/abs2`][@stdlib/math/strided/special/abs2]</span><span class="delimiter">: </span><span class="description">compute the squared absolute value for each element in a strided array.</span>
|
|
253
|
+
|
|
254
|
+
</section>
|
|
255
|
+
|
|
256
|
+
<!-- /.related -->
|
|
257
|
+
|
|
258
|
+
<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
|
|
259
|
+
|
|
243
260
|
|
|
244
261
|
<section class="main-repo" >
|
|
245
262
|
|
|
@@ -264,7 +281,7 @@ See [LICENSE][stdlib-license].
|
|
|
264
281
|
|
|
265
282
|
## Copyright
|
|
266
283
|
|
|
267
|
-
Copyright © 2016-
|
|
284
|
+
Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors].
|
|
268
285
|
|
|
269
286
|
</section>
|
|
270
287
|
|
|
@@ -283,9 +300,20 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
283
300
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-strided-special-abs2-by/main.svg
|
|
284
301
|
[coverage-url]: https://codecov.io/github/stdlib-js/math-strided-special-abs2-by?branch=main
|
|
285
302
|
|
|
303
|
+
<!--
|
|
304
|
+
|
|
286
305
|
[dependencies-image]: https://img.shields.io/david/stdlib-js/math-strided-special-abs2-by.svg
|
|
287
306
|
[dependencies-url]: https://david-dm.org/stdlib-js/math-strided-special-abs2-by/main
|
|
288
307
|
|
|
308
|
+
-->
|
|
309
|
+
|
|
310
|
+
[umd]: https://github.com/umdjs/umd
|
|
311
|
+
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
312
|
+
|
|
313
|
+
[deno-url]: https://github.com/stdlib-js/math-strided-special-abs2-by/tree/deno
|
|
314
|
+
[umd-url]: https://github.com/stdlib-js/math-strided-special-abs2-by/tree/umd
|
|
315
|
+
[esm-url]: https://github.com/stdlib-js/math-strided-special-abs2-by/tree/esm
|
|
316
|
+
|
|
289
317
|
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
|
|
290
318
|
[chat-url]: https://gitter.im/stdlib-js/stdlib/
|
|
291
319
|
|
|
@@ -301,6 +329,14 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
301
329
|
|
|
302
330
|
[@stdlib/math/base/special/abs2]: https://www.npmjs.com/package/@stdlib/math-base-special-abs2
|
|
303
331
|
|
|
332
|
+
<!-- <related-links> -->
|
|
333
|
+
|
|
334
|
+
[@stdlib/math/strided/special/abs-by]: https://www.npmjs.com/package/@stdlib/math-strided-special-abs-by
|
|
335
|
+
|
|
336
|
+
[@stdlib/math/strided/special/abs2]: https://www.npmjs.com/package/@stdlib/math-strided-special-abs2
|
|
337
|
+
|
|
338
|
+
<!-- </related-links> -->
|
|
339
|
+
|
|
304
340
|
</section>
|
|
305
341
|
|
|
306
342
|
<!-- /.links -->
|
package/docs/types/index.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ type Binary = ( value: any, idx: number ) => number | void;
|
|
|
54
54
|
* @param xi - strided index (offsetX + idx*strideX)
|
|
55
55
|
* @returns accessed value
|
|
56
56
|
*/
|
|
57
|
-
type
|
|
57
|
+
type Ternary = ( value: any, idx: number, xi: number ) => number | void;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* Returns an accessed value.
|
|
@@ -103,7 +103,7 @@ type Senary = ( value: any, idx: number, xi: number, yi: number, x: Collection,
|
|
|
103
103
|
* @param y - output array
|
|
104
104
|
* @returns accessed value
|
|
105
105
|
*/
|
|
106
|
-
type Callback = Nullary | Unary | Binary |
|
|
106
|
+
type Callback = Nullary | Unary | Binary | Ternary | Quaternary | Quinary | Senary; // tslint-disable-line max-line-length
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* Interface describing `abs2By`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/math-strided-special-abs2-by",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "Compute the squared absolute value of each element retrieved from an input strided array via a callback function.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|