@stdlib/math-strided-special-abs-by 0.0.2 → 0.0.6
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 +47 -4
- package/docs/types/index.d.ts +2 -2
- package/package.json +2 -2
- package/CHANGELOG.md +0 -5
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
|
# absBy
|
|
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 [absolute value][@stdlib/math/base/special/abs] 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.
|
|
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`][@stdlib/math/strided/special/abs]</span><span class="delimiter">: </span><span class="description">compute the absolute value for each element in a strided array.</span>
|
|
252
|
+
- <span class="package-name">[`@stdlib/math/strided/special/abs2-by`][@stdlib/math/strided/special/abs2-by]</span><span class="delimiter">: </span><span class="description">compute the squared absolute value of each element retrieved from an input strided array via a callback function.</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
|
|
|
@@ -251,6 +268,10 @@ This package is part of [stdlib][stdlib], a standard library for JavaScript and
|
|
|
251
268
|
|
|
252
269
|
For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib].
|
|
253
270
|
|
|
271
|
+
#### Community
|
|
272
|
+
|
|
273
|
+
[![Chat][chat-image]][chat-url]
|
|
274
|
+
|
|
254
275
|
---
|
|
255
276
|
|
|
256
277
|
## License
|
|
@@ -260,7 +281,7 @@ See [LICENSE][stdlib-license].
|
|
|
260
281
|
|
|
261
282
|
## Copyright
|
|
262
283
|
|
|
263
|
-
Copyright © 2016-
|
|
284
|
+
Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors].
|
|
264
285
|
|
|
265
286
|
</section>
|
|
266
287
|
|
|
@@ -279,9 +300,23 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
279
300
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-strided-special-abs-by/main.svg
|
|
280
301
|
[coverage-url]: https://codecov.io/github/stdlib-js/math-strided-special-abs-by?branch=main
|
|
281
302
|
|
|
282
|
-
|
|
303
|
+
<!--
|
|
304
|
+
|
|
305
|
+
[dependencies-image]: https://img.shields.io/david/stdlib-js/math-strided-special-abs-by.svg
|
|
283
306
|
[dependencies-url]: https://david-dm.org/stdlib-js/math-strided-special-abs-by/main
|
|
284
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-abs-by/tree/deno
|
|
314
|
+
[umd-url]: https://github.com/stdlib-js/math-strided-special-abs-by/tree/umd
|
|
315
|
+
[esm-url]: https://github.com/stdlib-js/math-strided-special-abs-by/tree/esm
|
|
316
|
+
|
|
317
|
+
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
|
|
318
|
+
[chat-url]: https://gitter.im/stdlib-js/stdlib/
|
|
319
|
+
|
|
285
320
|
[stdlib]: https://github.com/stdlib-js/stdlib
|
|
286
321
|
|
|
287
322
|
[stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors
|
|
@@ -292,7 +327,15 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
292
327
|
|
|
293
328
|
[mdn-typed-array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
|
|
294
329
|
|
|
295
|
-
[@stdlib/math/base/special/abs]: https://
|
|
330
|
+
[@stdlib/math/base/special/abs]: https://www.npmjs.com/package/@stdlib/math-base-special-abs
|
|
331
|
+
|
|
332
|
+
<!-- <related-links> -->
|
|
333
|
+
|
|
334
|
+
[@stdlib/math/strided/special/abs]: https://www.npmjs.com/package/@stdlib/math-strided-special-abs
|
|
335
|
+
|
|
336
|
+
[@stdlib/math/strided/special/abs2-by]: https://www.npmjs.com/package/@stdlib/math-strided-special-abs2-by
|
|
337
|
+
|
|
338
|
+
<!-- </related-links> -->
|
|
296
339
|
|
|
297
340
|
</section>
|
|
298
341
|
|
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 `absBy`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/math-strided-special-abs-by",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"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.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"examples": "make examples",
|
|
29
29
|
"benchmark": "make benchmark"
|
|
30
30
|
},
|
|
31
|
-
"homepage": "https://
|
|
31
|
+
"homepage": "https://stdlib.io",
|
|
32
32
|
"repository": {
|
|
33
33
|
"type": "git",
|
|
34
34
|
"url": "git://github.com/stdlib-js/math-strided-special-abs-by.git"
|