@stdlib/math-base-special-absf
Advanced tools
@@ -19,5 +19,2 @@ /** | ||
| /** | ||
| * Header file containing function declarations. | ||
| */ | ||
| #ifndef STDLIB_MATH_BASE_SPECIAL_ABSF_H | ||
@@ -24,0 +21,0 @@ #define STDLIB_MATH_BASE_SPECIAL_ABSF_H |
+90
-70
| { | ||
| "options": { | ||
| "task": "build" | ||
| }, | ||
| "fields": [ | ||
| { | ||
| "field": "src", | ||
| "resolve": true, | ||
| "relative": true | ||
| }, | ||
| { | ||
| "field": "include", | ||
| "resolve": true, | ||
| "relative": true | ||
| }, | ||
| { | ||
| "field": "libraries", | ||
| "resolve": false, | ||
| "relative": false | ||
| }, | ||
| { | ||
| "field": "libpath", | ||
| "resolve": true, | ||
| "relative": false | ||
| } | ||
| ], | ||
| "confs": [ | ||
| { | ||
| "task": "build", | ||
| "src": [ | ||
| "./src/main.c" | ||
| ], | ||
| "include": [ | ||
| "./include" | ||
| ], | ||
| "libraries": [], | ||
| "libpath": [], | ||
| "dependencies": [ | ||
| "@stdlib/math-base-napi-unary", | ||
| "@stdlib/constants-float32-abs-mask", | ||
| "options": { | ||
| "task": "build", | ||
| "wasm": false | ||
| }, | ||
| "fields": [ | ||
| { | ||
| "field": "src", | ||
| "resolve": true, | ||
| "relative": true | ||
| }, | ||
| { | ||
| "field": "include", | ||
| "resolve": true, | ||
| "relative": true | ||
| }, | ||
| { | ||
| "field": "libraries", | ||
| "resolve": false, | ||
| "relative": false | ||
| }, | ||
| { | ||
| "field": "libpath", | ||
| "resolve": true, | ||
| "relative": false | ||
| } | ||
| ], | ||
| "confs": [ | ||
| { | ||
| "task": "build", | ||
| "wasm": false, | ||
| "src": [ | ||
| "./src/main.c" | ||
| ], | ||
| "include": [ | ||
| "./include" | ||
| ], | ||
| "libraries": [], | ||
| "libpath": [], | ||
| "dependencies": [ | ||
| "@stdlib/math-base-napi-unary", | ||
| "@stdlib/constants-float32-abs-mask", | ||
| "@stdlib/number-float32-base-to-word" | ||
| ] | ||
| }, | ||
| { | ||
| "task": "benchmark", | ||
| "src": [ | ||
| "./src/main.c" | ||
| ], | ||
| "include": [ | ||
| "./include" | ||
| ], | ||
| "libraries": [], | ||
| "libpath": [], | ||
| "dependencies": [ | ||
| "@stdlib/constants-float32-abs-mask", | ||
| ] | ||
| }, | ||
| { | ||
| "task": "benchmark", | ||
| "wasm": false, | ||
| "src": [ | ||
| "./src/main.c" | ||
| ], | ||
| "include": [ | ||
| "./include" | ||
| ], | ||
| "libraries": [], | ||
| "libpath": [], | ||
| "dependencies": [ | ||
| "@stdlib/constants-float32-abs-mask", | ||
| "@stdlib/number-float32-base-to-word" | ||
| ] | ||
| }, | ||
| { | ||
| "task": "examples", | ||
| "src": [ | ||
| "./src/main.c" | ||
| ], | ||
| "include": [ | ||
| "./include" | ||
| ], | ||
| "libraries": [], | ||
| "libpath": [], | ||
| "dependencies": [ | ||
| "@stdlib/constants-float32-abs-mask", | ||
| ] | ||
| }, | ||
| { | ||
| "task": "examples", | ||
| "wasm": false, | ||
| "src": [ | ||
| "./src/main.c" | ||
| ], | ||
| "include": [ | ||
| "./include" | ||
| ], | ||
| "libraries": [], | ||
| "libpath": [], | ||
| "dependencies": [ | ||
| "@stdlib/constants-float32-abs-mask", | ||
| "@stdlib/number-float32-base-to-word" | ||
| ] | ||
| } | ||
| ] | ||
| ] | ||
| }, | ||
| { | ||
| "task": "build", | ||
| "wasm": true, | ||
| "src": [ | ||
| "./src/main.c" | ||
| ], | ||
| "include": [ | ||
| "./include" | ||
| ], | ||
| "libraries": [], | ||
| "libpath": [], | ||
| "dependencies": [ | ||
| "@stdlib/constants-float32-abs-mask", | ||
| "@stdlib/number-float32-base-to-word" | ||
| ] | ||
| } | ||
| ] | ||
| } |
+1
-1
@@ -1,1 +0,1 @@ | ||
| Copyright (c) 2016-2024 The Stdlib Authors. | ||
| Copyright (c) 2016-2026 The Stdlib Authors. |
+3
-4
| { | ||
| "name": "@stdlib/math-base-special-absf", | ||
| "version": "0.2.2", | ||
| "version": "0.2.3", | ||
| "description": "Compute the absolute value of a single-precision floating-point number.", | ||
@@ -37,5 +37,5 @@ "license": "Apache-2.0", | ||
| "@stdlib/constants-float32-abs-mask": "^0.2.2", | ||
| "@stdlib/math-base-napi-unary": "^0.2.3", | ||
| "@stdlib/math-base-napi-unary": "^0.2.6", | ||
| "@stdlib/number-float32-base-to-word": "^0.2.2", | ||
| "@stdlib/utils-library-manifest": "^0.2.2" | ||
| "@stdlib/utils-library-manifest": "^0.2.3" | ||
| }, | ||
@@ -74,3 +74,2 @@ "devDependencies": {}, | ||
| ], | ||
| "__stdlib__": {}, | ||
| "funding": { | ||
@@ -77,0 +76,0 @@ "type": "opencollective", |
+12
-14
@@ -105,13 +105,11 @@ <!-- | ||
| ```javascript | ||
| var randu = require( '@stdlib/random-base-randu' ); | ||
| var round = require( '@stdlib/math-base-special-round' ); | ||
| var discreteUniform = require( '@stdlib/random-array-discrete-uniform' ); | ||
| var logEachMap = require( '@stdlib/console-log-each-map' ); | ||
| var absf = require( '@stdlib/math-base-special-absf' ); | ||
| var rand; | ||
| var i; | ||
| var x = discreteUniform( 100, -50, 50, { | ||
| 'dtype': 'float32' | ||
| }); | ||
| for ( i = 0; i < 100; i++ ) { | ||
| rand = round( randu() * 100.0 ) - 50.0; | ||
| console.log( 'absf(%d) = %d', rand, absf( rand ) ); | ||
| } | ||
| logEachMap( 'absf(%d) = %d', x, absf ); | ||
| ``` | ||
@@ -151,3 +149,3 @@ | ||
| Computes the squared absolute value of a single-precision floating-point number. | ||
| Computes the absolute value of a single-precision floating-point number. | ||
@@ -251,3 +249,3 @@ ```c | ||
| Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. | ||
| Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors]. | ||
@@ -265,4 +263,4 @@ </section> | ||
| [test-image]: https://github.com/stdlib-js/math-base-special-absf/actions/workflows/test.yml/badge.svg?branch=v0.2.2 | ||
| [test-url]: https://github.com/stdlib-js/math-base-special-absf/actions/workflows/test.yml?query=branch:v0.2.2 | ||
| [test-image]: https://github.com/stdlib-js/math-base-special-absf/actions/workflows/test.yml/badge.svg?branch=v0.2.3 | ||
| [test-url]: https://github.com/stdlib-js/math-base-special-absf/actions/workflows/test.yml?query=branch:v0.2.3 | ||
@@ -279,4 +277,4 @@ [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-base-special-absf/main.svg | ||
| [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg | ||
| [chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im | ||
| [chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg | ||
| [chat-url]: https://stdlib.zulipchat.com | ||
@@ -283,0 +281,0 @@ [stdlib]: https://github.com/stdlib-js/stdlib |
41746
1.14%357
5.93%308
-0.65%- Removed