From 166f2837af40083e25dde10ce7d63c83e21b6afb Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 25 Dec 2023 02:49:47 +0000 Subject: [PATCH] Update artifacts --- math/base/special/log1pexp/coverage.ndjson | 1 + math/base/special/log1pexp/index.html | 146 +++++++++++ math/base/special/log1pexp/index.js.html | 223 ++++++++++++++++ math/base/special/log1pexp/main.js.html | 289 +++++++++++++++++++++ math/base/special/log1pexp/native.js.html | 247 ++++++++++++++++++ 5 files changed, 906 insertions(+) create mode 100644 math/base/special/log1pexp/coverage.ndjson create mode 100644 math/base/special/log1pexp/index.html create mode 100644 math/base/special/log1pexp/index.js.html create mode 100644 math/base/special/log1pexp/main.js.html create mode 100644 math/base/special/log1pexp/native.js.html diff --git a/math/base/special/log1pexp/coverage.ndjson b/math/base/special/log1pexp/coverage.ndjson new file mode 100644 index 000000000..6e79622b1 --- /dev/null +++ b/math/base/special/log1pexp/coverage.ndjson @@ -0,0 +1 @@ +[168,168,100,13,13,100,2,2,100,168,168,100,"504795ca2b3eb120db344e51b27493b3da696ebf","2023-12-24 18:47:51 -0800"] diff --git a/math/base/special/log1pexp/index.html b/math/base/special/log1pexp/index.html new file mode 100644 index 000000000..07763dcbc --- /dev/null +++ b/math/base/special/log1pexp/index.html @@ -0,0 +1,146 @@ + + + + + + Code coverage report for math/base/special/log1pexp/lib + + + + + + + + + +
+
+

All files math/base/special/log1pexp/lib

+
+ +
+ 100% + Statements + 168/168 +
+ + +
+ 100% + Branches + 13/13 +
+ + +
+ 100% + Functions + 2/2 +
+ + +
+ 100% + Lines + 168/168 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileStatementsBranchesFunctionsLines
index.js +
+
100%46/46100%1/1100%0/0100%46/46
main.js +
+
100%68/68100%10/10100%1/1100%68/68
native.js +
+
100%54/54100%2/2100%1/1100%54/54
+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/math/base/special/log1pexp/index.js.html b/math/base/special/log1pexp/index.js.html new file mode 100644 index 000000000..57f7234ef --- /dev/null +++ b/math/base/special/log1pexp/index.js.html @@ -0,0 +1,223 @@ + + + + + + Code coverage report for math/base/special/log1pexp/lib/index.js + + + + + + + + + +
+
+

All files / math/base/special/log1pexp/lib index.js

+
+ +
+ 100% + Statements + 46/46 +
+ + +
+ 100% + Branches + 1/1 +
+ + +
+ 100% + Functions + 0/0 +
+ + +
+ 100% + Lines + 46/46 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
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 +41 +42 +43 +44 +45 +46 +471x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2018 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+ 
+'use strict';
+ 
+/**
+* Evaluate the natural logarithm of \\( 1 + exp(x) \\).
+*
+* @module @stdlib/math/base/special/log1pexp
+*
+* @example
+* var log1pexp = require( '@stdlib/math/base/special/log1pexp' );
+*
+* var v = log1pexp( 1.1 );
+* // returns ~1.387
+*
+* v = log1pexp( 100.0 );
+* // returns 100.0
+*
+* v = log1pexp( NaN );
+* // returns NaN
+*/
+ 
+// MODULES //
+ 
+var log1pexp = require( './main.js' );
+ 
+ 
+// EXPORTS //
+ 
+module.exports = log1pexp;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/math/base/special/log1pexp/main.js.html b/math/base/special/log1pexp/main.js.html new file mode 100644 index 000000000..bfd1bc983 --- /dev/null +++ b/math/base/special/log1pexp/main.js.html @@ -0,0 +1,289 @@ + + + + + + Code coverage report for math/base/special/log1pexp/lib/main.js + + + + + + + + + +
+
+

All files / math/base/special/log1pexp/lib main.js

+
+ +
+ 100% + Statements + 68/68 +
+ + +
+ 100% + Branches + 10/10 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 100% + Lines + 68/68 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
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 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +67 +68 +691x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +22002x +22002x +1x +1x +22002x +7301x +7301x +22002x +5500x +5500x +22002x +1530x +1530x +7670x +7670x +22002x +1x +1x +1x +1x +1x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2018 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+ 
+'use strict';
+ 
+// MODULES //
+ 
+var isnan = require( '@stdlib/math/base/assert/is-nan' );
+var log1p = require( '@stdlib/math/base/special/log1p' );
+var exp = require( '@stdlib/math/base/special/exp' );
+ 
+ 
+// MAIN //
+ 
+/**
+* Computes the natural logarithm of \\( 1 + \exp(x) \\).
+*
+* @param {number} x - input value
+* @returns {number} function value
+*
+* @example
+* var v = log1pexp( 1.1 );
+* // returns ~1.387
+*
+* @example
+* var v = log1pexp( 100.0 );
+* // returns 100.0
+*
+* @example
+* var v = log1pexp( NaN );
+* // returns NaN
+*/
+function log1pexp( x ) {
+	if ( isnan( x ) ) {
+		return NaN;
+	}
+	if ( x <= -37.0 ) {
+		return exp( x );
+	}
+	if ( x <= 18.0 ) {
+		return log1p( exp( x ) );
+	}
+	if ( x <= 33.3 ) {
+		return x + exp( -x );
+	}
+	// Case: x > 33.3
+	return x;
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = log1pexp;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/math/base/special/log1pexp/native.js.html b/math/base/special/log1pexp/native.js.html new file mode 100644 index 000000000..80a94594c --- /dev/null +++ b/math/base/special/log1pexp/native.js.html @@ -0,0 +1,247 @@ + + + + + + Code coverage report for math/base/special/log1pexp/lib/native.js + + + + + + + + + +
+
+

All files / math/base/special/log1pexp/lib native.js

+
+ +
+ 100% + Statements + 54/54 +
+ + +
+ 100% + Branches + 2/2 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 100% + Lines + 54/54 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
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 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +551x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +22002x +22002x +22002x +1x +1x +1x +1x +1x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2022 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+ 
+'use strict';
+ 
+// MODULES //
+ 
+var addon = require( './../src/addon.node' );
+ 
+ 
+// MAIN //
+ 
+/**
+* Computes the natural logarithm of \\( 1 + \exp(x) \\).
+*
+* @private
+* @param {number} x - input value
+* @returns {number} function value
+*
+* @example
+* var v = log1pexp( 1.1 );
+* // returns ~1.387
+*
+* @example
+* var v = log1pexp( 100.0 );
+* // returns 100.0
+*
+* @example
+* var v = log1pexp( NaN );
+* // returns NaN
+*/
+function log1pexp( x ) {
+	return addon( x );
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = log1pexp;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file