From 78d6e9c98de40eff6d72e7681413ed8bc5611ba9 Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Wed, 17 Jan 2024 03:29:09 +0000 Subject: [PATCH] Update artifacts --- complex/base/assert/coverage.ndjson | 1 + complex/base/assert/index.html | 10 +- complex/base/assert/index.js.html | 35 ++- .../assert/is-same-value-zero/coverage.ndjson | 1 + .../base/assert/is-same-value-zero/index.html | 10 +- .../assert/is-same-value-zero/index.js.html | 2 +- .../assert/is-same-value-zero/main.js.html | 13 +- .../is-same-value-zerof/coverage.ndjson | 1 + .../assert/is-same-value-zerof/index.html | 131 +++++++++ .../assert/is-same-value-zerof/index.js.html | 217 ++++++++++++++ .../assert/is-same-value-zerof/main.js.html | 271 ++++++++++++++++++ 11 files changed, 672 insertions(+), 20 deletions(-) create mode 100644 complex/base/assert/is-same-value-zerof/coverage.ndjson create mode 100644 complex/base/assert/is-same-value-zerof/index.html create mode 100644 complex/base/assert/is-same-value-zerof/index.js.html create mode 100644 complex/base/assert/is-same-value-zerof/main.js.html diff --git a/complex/base/assert/coverage.ndjson b/complex/base/assert/coverage.ndjson index 67f4608ba..e3e9db0ec 100644 --- a/complex/base/assert/coverage.ndjson +++ b/complex/base/assert/coverage.ndjson @@ -4,3 +4,4 @@ [87,87,100,1,1,100,0,0,100,87,87,100,"e2a8c3495ec4dc5cc1d7b56535f0e30555519d86","2024-01-16 16:33:59 -0800"] [96,96,100,1,1,100,0,0,100,96,96,100,"bb1ec6e76a828f09c412b7ae32118a530495622f","2024-01-16 18:40:41 -0800"] [105,105,100,1,1,100,0,0,100,105,105,100,"7edde5e9f4126c2d11021323cfbf501219f32c00","2024-01-16 19:18:29 -0800"] +[114,114,100,1,1,100,0,0,100,114,114,100,"5ca21f212ae936776a49b61f4fc8d24c74877d03","2024-01-16 19:26:54 -0800"] diff --git a/complex/base/assert/index.html b/complex/base/assert/index.html index 0549446aa..cc3caee90 100644 --- a/complex/base/assert/index.html +++ b/complex/base/assert/index.html @@ -25,7 +25,7 @@

All files complex/base/assert/lib

100% Statements - 105/105 + 114/114
@@ -46,7 +46,7 @@

All files complex/base/assert/lib

100% Lines - 105/105 + 114/114
@@ -84,13 +84,13 @@

All files complex/base/assert/lib

100% - 105/105 + 114/114 100% 1/1 100% 0/0 100% - 105/105 + 114/114 @@ -101,7 +101,7 @@

All files complex/base/assert/lib

+ + + + + + \ No newline at end of file diff --git a/complex/base/assert/is-same-value-zerof/index.js.html b/complex/base/assert/is-same-value-zerof/index.js.html new file mode 100644 index 000000000..b92d63326 --- /dev/null +++ b/complex/base/assert/is-same-value-zerof/index.js.html @@ -0,0 +1,217 @@ + + + + + + Code coverage report for complex/base/assert/is-same-value-zerof/lib/index.js + + + + + + + + + +
+
+

All files / complex/base/assert/is-same-value-zerof/lib index.js

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

+ 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 +451x +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) 2024 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';
+ 
+/**
+* Test whether two single-precision complex floating-point numbers are the same value.
+*
+* @module @stdlib/complex/base/assert/is-same-value-zerof
+*
+* @example
+* var Complex64 = require( '@stdlib/complex/float32' );
+* var isSameValueZerof = require( '@stdlib/complex/base/assert/is-same-value-zerof' );
+*
+* var z1 = new Complex64( 5.0, 3.0 );
+* var z2 = new Complex64( 5.0, 3.0 );
+*
+* var v = isSameValueZerof( z1, z2 );
+* // returns true
+*/
+ 
+// MODULES //
+ 
+var main = require( './main.js' );
+ 
+ 
+// EXPORTS //
+ 
+module.exports = main;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/complex/base/assert/is-same-value-zerof/main.js.html b/complex/base/assert/is-same-value-zerof/main.js.html new file mode 100644 index 000000000..d9a7131ec --- /dev/null +++ b/complex/base/assert/is-same-value-zerof/main.js.html @@ -0,0 +1,271 @@ + + + + + + Code coverage report for complex/base/assert/is-same-value-zerof/lib/main.js + + + + + + + + + +
+
+

All files / complex/base/assert/is-same-value-zerof/lib main.js

+
+ +
+ 100% + Statements + 62/62 +
+ + +
+ 100% + Branches + 3/3 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 100% + Lines + 62/62 +
+ + +
+

+ 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 +631x +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 +1x +1x +24x +24x +24x +24x +24x +18x +24x +24x +1x +1x +1x +1x +1x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2024 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 isSame = require( '@stdlib/number/float32/base/assert/is-same-value-zero' );
+var reimf = require( '@stdlib/complex/reimf' );
+ 
+ 
+// MAIN //
+ 
+/**
+* Tests whether two single-precision complex floating-point numbers are the same value.
+*
+* ## Notes
+*
+* -   The function implements the SameValueZero Algorithm used by `TypedArray` and `ArrayBuffer` constructors, `Map` and `Set` operations, `String.prototype.includes`, and `Array.prototype.includes` since ES2016.
+* -   In contrast to the strict equality operator `===`, `NaNs` are considered the same value.
+*
+* @param {Complex64} z1 - first complex number
+* @param {Complex64} z2 - second complex number
+* @returns {boolean} result
+*
+* @example
+* var Complex64 = require( '@stdlib/complex/float32' );
+*
+* var z1 = new Complex64( 5.0, 3.0 );
+* var z2 = new Complex64( 5.0, 3.0 );
+*
+* var v = isSameValueZerof( z1, z2 );
+* // returns true
+*/
+function isSameValueZerof( z1, z2 ) {
+	var parts1 = reimf( z1 );
+	var parts2 = reimf( z2 );
+	return (
+		isSame( parts1[ 0 ], parts2[ 0 ] ) &&
+		isSame( parts1[ 1 ], parts2[ 1 ] )
+	);
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = isSameValueZerof;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file