@stdlib/math-base-special-absf 0.2.2 → 0.2.3
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 +12 -14
- package/include/stdlib/math/base/special/absf.h +0 -3
- package/manifest.json +90 -70
- package/package.json +3 -4
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2026 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -102,17 +102,15 @@ v = absf( NaN );
|
|
|
102
102
|
<!-- eslint no-undef: "error" -->
|
|
103
103
|
|
|
104
104
|
```javascript
|
|
105
|
-
var
|
|
106
|
-
var
|
|
105
|
+
var discreteUniform = require( '@stdlib/random-array-discrete-uniform' );
|
|
106
|
+
var logEachMap = require( '@stdlib/console-log-each-map' );
|
|
107
107
|
var absf = require( '@stdlib/math-base-special-absf' );
|
|
108
108
|
|
|
109
|
-
var
|
|
110
|
-
|
|
109
|
+
var x = discreteUniform( 100, -50, 50, {
|
|
110
|
+
'dtype': 'float32'
|
|
111
|
+
});
|
|
111
112
|
|
|
112
|
-
|
|
113
|
-
rand = round( randu() * 100.0 ) - 50.0;
|
|
114
|
-
console.log( 'absf(%d) = %d', rand, absf( rand ) );
|
|
115
|
-
}
|
|
113
|
+
logEachMap( 'absf(%d) = %d', x, absf );
|
|
116
114
|
```
|
|
117
115
|
|
|
118
116
|
</section>
|
|
@@ -147,7 +145,7 @@ for ( i = 0; i < 100; i++ ) {
|
|
|
147
145
|
|
|
148
146
|
#### stdlib_base_absf( x )
|
|
149
147
|
|
|
150
|
-
Computes the
|
|
148
|
+
Computes the absolute value of a single-precision floating-point number.
|
|
151
149
|
|
|
152
150
|
```c
|
|
153
151
|
float y = stdlib_base_absf( -5.0f );
|
|
@@ -246,7 +244,7 @@ See [LICENSE][stdlib-license].
|
|
|
246
244
|
|
|
247
245
|
## Copyright
|
|
248
246
|
|
|
249
|
-
Copyright © 2016-
|
|
247
|
+
Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors].
|
|
250
248
|
|
|
251
249
|
</section>
|
|
252
250
|
|
|
@@ -259,8 +257,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
259
257
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/math-base-special-absf.svg
|
|
260
258
|
[npm-url]: https://npmjs.org/package/@stdlib/math-base-special-absf
|
|
261
259
|
|
|
262
|
-
[test-image]: https://github.com/stdlib-js/math-base-special-absf/actions/workflows/test.yml/badge.svg?branch=v0.2.
|
|
263
|
-
[test-url]: https://github.com/stdlib-js/math-base-special-absf/actions/workflows/test.yml?query=branch:v0.2.
|
|
260
|
+
[test-image]: https://github.com/stdlib-js/math-base-special-absf/actions/workflows/test.yml/badge.svg?branch=v0.2.3
|
|
261
|
+
[test-url]: https://github.com/stdlib-js/math-base-special-absf/actions/workflows/test.yml?query=branch:v0.2.3
|
|
264
262
|
|
|
265
263
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-base-special-absf/main.svg
|
|
266
264
|
[coverage-url]: https://codecov.io/github/stdlib-js/math-base-special-absf?branch=main
|
|
@@ -272,8 +270,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
272
270
|
|
|
273
271
|
-->
|
|
274
272
|
|
|
275
|
-
[chat-image]: https://img.shields.io/
|
|
276
|
-
[chat-url]: https://
|
|
273
|
+
[chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg
|
|
274
|
+
[chat-url]: https://stdlib.zulipchat.com
|
|
277
275
|
|
|
278
276
|
[stdlib]: https://github.com/stdlib-js/stdlib
|
|
279
277
|
|
package/manifest.json
CHANGED
|
@@ -1,75 +1,95 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
2
|
+
"options": {
|
|
3
|
+
"task": "build",
|
|
4
|
+
"wasm": false
|
|
5
|
+
},
|
|
6
|
+
"fields": [
|
|
7
|
+
{
|
|
8
|
+
"field": "src",
|
|
9
|
+
"resolve": true,
|
|
10
|
+
"relative": true
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"field": "include",
|
|
14
|
+
"resolve": true,
|
|
15
|
+
"relative": true
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"field": "libraries",
|
|
19
|
+
"resolve": false,
|
|
20
|
+
"relative": false
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"field": "libpath",
|
|
24
|
+
"resolve": true,
|
|
25
|
+
"relative": false
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"confs": [
|
|
29
|
+
{
|
|
30
|
+
"task": "build",
|
|
31
|
+
"wasm": false,
|
|
32
|
+
"src": [
|
|
33
|
+
"./src/main.c"
|
|
34
|
+
],
|
|
35
|
+
"include": [
|
|
36
|
+
"./include"
|
|
37
|
+
],
|
|
38
|
+
"libraries": [],
|
|
39
|
+
"libpath": [],
|
|
40
|
+
"dependencies": [
|
|
41
|
+
"@stdlib/math-base-napi-unary",
|
|
42
|
+
"@stdlib/constants-float32-abs-mask",
|
|
41
43
|
"@stdlib/number-float32-base-to-word"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"task": "benchmark",
|
|
48
|
+
"wasm": false,
|
|
49
|
+
"src": [
|
|
50
|
+
"./src/main.c"
|
|
51
|
+
],
|
|
52
|
+
"include": [
|
|
53
|
+
"./include"
|
|
54
|
+
],
|
|
55
|
+
"libraries": [],
|
|
56
|
+
"libpath": [],
|
|
57
|
+
"dependencies": [
|
|
58
|
+
"@stdlib/constants-float32-abs-mask",
|
|
56
59
|
"@stdlib/number-float32-base-to-word"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"task": "examples",
|
|
64
|
+
"wasm": false,
|
|
65
|
+
"src": [
|
|
66
|
+
"./src/main.c"
|
|
67
|
+
],
|
|
68
|
+
"include": [
|
|
69
|
+
"./include"
|
|
70
|
+
],
|
|
71
|
+
"libraries": [],
|
|
72
|
+
"libpath": [],
|
|
73
|
+
"dependencies": [
|
|
74
|
+
"@stdlib/constants-float32-abs-mask",
|
|
71
75
|
"@stdlib/number-float32-base-to-word"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"task": "build",
|
|
80
|
+
"wasm": true,
|
|
81
|
+
"src": [
|
|
82
|
+
"./src/main.c"
|
|
83
|
+
],
|
|
84
|
+
"include": [
|
|
85
|
+
"./include"
|
|
86
|
+
],
|
|
87
|
+
"libraries": [],
|
|
88
|
+
"libpath": [],
|
|
89
|
+
"dependencies": [
|
|
90
|
+
"@stdlib/constants-float32-abs-mask",
|
|
91
|
+
"@stdlib/number-float32-base-to-word"
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
]
|
|
75
95
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/math-base-special-absf",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Compute the absolute value of a single-precision floating-point number.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@stdlib/constants-float32-abs-mask": "^0.2.2",
|
|
37
|
-
"@stdlib/math-base-napi-unary": "^0.2.
|
|
37
|
+
"@stdlib/math-base-napi-unary": "^0.2.6",
|
|
38
38
|
"@stdlib/number-float32-base-to-word": "^0.2.2",
|
|
39
|
-
"@stdlib/utils-library-manifest": "^0.2.
|
|
39
|
+
"@stdlib/utils-library-manifest": "^0.2.3"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {},
|
|
42
42
|
"engines": {
|
|
@@ -70,7 +70,6 @@
|
|
|
70
70
|
"float",
|
|
71
71
|
"single-precision"
|
|
72
72
|
],
|
|
73
|
-
"__stdlib__": {},
|
|
74
73
|
"funding": {
|
|
75
74
|
"type": "opencollective",
|
|
76
75
|
"url": "https://opencollective.com/stdlib"
|