From edc2ae4dee422d5a3a7afc1ded5954726fefb0c6 Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Sun, 14 Jan 2024 07:23:12 +0000 Subject: [PATCH] Update artifacts --- array/base/assert/coverage.ndjson | 1 + array/base/assert/index.html | 10 +- array/base/assert/index.js.html | 35 ++- .../assert/is-complex128array/coverage.ndjson | 1 + .../base/assert/is-complex128array/index.html | 131 +++++++++ .../assert/is-complex128array/index.js.html | 217 +++++++++++++++ .../assert/is-complex128array/main.js.html | 253 ++++++++++++++++++ array/complex128/coverage.ndjson | 1 + array/complex128/from_array.js.html | 2 +- array/complex128/from_iterator.js.html | 2 +- array/complex128/from_iterator_map.js.html | 2 +- array/complex128/index.html | 20 +- array/complex128/index.js.html | 2 +- array/complex128/main.js.html | 63 +---- array/complex64/coverage.ndjson | 1 + array/complex64/from_array.js.html | 2 +- array/complex64/from_iterator.js.html | 2 +- array/complex64/from_iterator_map.js.html | 2 +- array/complex64/index.html | 20 +- array/complex64/index.js.html | 2 +- array/complex64/main.js.html | 61 +---- 21 files changed, 686 insertions(+), 144 deletions(-) create mode 100644 array/base/assert/is-complex128array/coverage.ndjson create mode 100644 array/base/assert/is-complex128array/index.html create mode 100644 array/base/assert/is-complex128array/index.js.html create mode 100644 array/base/assert/is-complex128array/main.js.html diff --git a/array/base/assert/coverage.ndjson b/array/base/assert/coverage.ndjson index 3a58c68c4..6b3daf7ab 100644 --- a/array/base/assert/coverage.ndjson +++ b/array/base/assert/coverage.ndjson @@ -1,2 +1,3 @@ [60,60,100,1,1,100] [69,69,100,1,1,100,0,0,100,69,69,100,"d41b87d71bb2fa7fd318fce3ec93875a65bb8f95","2024-01-13 23:10:50 -0800"] +[78,78,100,1,1,100,0,0,100,78,78,100,"87d21205bb2ed5fcf848836d7659942f34b5fb59","2024-01-13 23:20:22 -0800"] diff --git a/array/base/assert/index.html b/array/base/assert/index.html index 8d5fa30e3..920586dc4 100644 --- a/array/base/assert/index.html +++ b/array/base/assert/index.html @@ -25,7 +25,7 @@

All files array/base/assert/lib

100% Statements - 69/69 + 78/78
@@ -46,7 +46,7 @@

All files array/base/assert/lib

100% Lines - 69/69 + 78/78
@@ -84,13 +84,13 @@

All files array/base/assert/lib

100% - 69/69 + 78/78 100% 1/1 100% 0/0 100% - 69/69 + 78/78 @@ -101,7 +101,7 @@

All files array/base/assert/lib

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

All files / array/base/assert/is-complex128array/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 if a value is a `Complex128Array`.
+*
+* @module @stdlib/array/base/assert/is-complex128array
+*
+* @example
+* var Complex128Array = require( '@stdlib/array/complex128' );
+* var isComplex128Array = require( '@stdlib/array/base/assert/is-complex128array' );
+*
+* var bool = isComplex128Array( new Complex128Array( 10 ) );
+* // returns true
+*
+* bool = isComplex128Array( [] );
+* // returns false
+*/
+ 
+// MODULES //
+ 
+var main = require( './main.js' );
+ 
+ 
+// EXPORTS //
+ 
+module.exports = main;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/array/base/assert/is-complex128array/main.js.html b/array/base/assert/is-complex128array/main.js.html new file mode 100644 index 000000000..006a90351 --- /dev/null +++ b/array/base/assert/is-complex128array/main.js.html @@ -0,0 +1,253 @@ + + + + + + Code coverage report for array/base/assert/is-complex128array/lib/main.js + + + + + + + + + +
+
+

All files / array/base/assert/is-complex128array/lib main.js

+
+ +
+ 100% + Statements + 56/56 +
+ + +
+ 100% + Branches + 5/5 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 100% + Lines + 56/56 +
+ + +
+

+ 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 +571x +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 +18x +18x +18x +18x +18x +18x +2x +18x +18x +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';
+ 
+// VARIABLES //
+ 
+var BYTES_PER_ELEMENT = 16; // 8 bytes per float64 x (1 real + 1 imag component)
+ 
+ 
+// MAIN //
+ 
+/**
+* Returns a boolean indicating if a value is a `Complex128Array`.
+*
+* @param {*} value - value to test
+* @returns {boolean} boolean indicating if a value is a `Complex128Array`
+*
+* @example
+* var Complex128Array = require( '@stdlib/array/complex128' );
+*
+* var bool = isComplex128Array( new Complex128Array( 10 ) );
+* // returns true
+*
+* bool = isComplex128Array( [] );
+* // returns false
+*/
+function isComplex128Array( value ) {
+	// Note: the following is not robust and that is intentional. In this case, we are seeking a lower cost way to reasonably determine whether an input value is a `Complex128Array` in order to avoid walking the prototype chain and resolving constructors, which is necessary for robust identification of cross-realm instances. For more robust validation, see `@stdlib/assert/is-complex128array`.
+	return (
+		typeof value === 'object' &&
+		value !== null &&
+		value.constructor.name === 'Complex128Array' &&
+		value.BYTES_PER_ELEMENT === BYTES_PER_ELEMENT
+	);
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = isComplex128Array;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/array/complex128/coverage.ndjson b/array/complex128/coverage.ndjson index f9fc44722..9cbaf2dce 100644 --- a/array/complex128/coverage.ndjson +++ b/array/complex128/coverage.ndjson @@ -24,3 +24,4 @@ [2475,2480,99.7984,429,434,98.8479,40,40,100,2475,2480,99.7984,"04a648ad097b4103cac51bb7948d1be7631fbd60","2024-01-03 19:49:59 -0800"] [2550,2555,99.8043,434,439,98.861,41,41,100,2550,2555,99.8043,"4b67a4282db2f1ab979d2df37f693285dca390da","2024-01-11 23:59:41 -0800"] [2535,2540,99.8031,432,437,98.8558,40,40,100,2535,2540,99.8031,"d41b87d71bb2fa7fd318fce3ec93875a65bb8f95","2024-01-13 23:10:50 -0800"] +[2520,2525,99.802,430,435,98.8506,39,39,100,2520,2525,99.802,"87d21205bb2ed5fcf848836d7659942f34b5fb59","2024-01-13 23:20:22 -0800"] diff --git a/array/complex128/from_array.js.html b/array/complex128/from_array.js.html index d04b865b7..52c699edc 100644 --- a/array/complex128/from_array.js.html +++ b/array/complex128/from_array.js.html @@ -253,7 +253,7 @@

All files / array/com