From 9df1e8ebbc02d6e2ae3a33a8d988f4524d4230fc Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Mon, 15 Apr 2024 13:01:08 +0000 Subject: [PATCH] Update artifacts --- blas/ext/base/dnannsum/coverage.ndjson | 1 + blas/ext/base/dnannsum/dnannsum.js.html | 247 ++++++++++++++ .../ext/base/dnannsum/dnannsum.native.js.html | 250 ++++++++++++++ blas/ext/base/dnannsum/index.html | 206 ++++++++++++ blas/ext/base/dnannsum/index.js.html | 295 +++++++++++++++++ blas/ext/base/dnannsum/main.js.html | 190 +++++++++++ blas/ext/base/dnannsum/native.js.html | 190 +++++++++++ blas/ext/base/dnannsum/ndarray.js.html | 253 +++++++++++++++ blas/ext/base/dnannsum/ndarray.native.js.html | 307 ++++++++++++++++++ 9 files changed, 1939 insertions(+) create mode 100644 blas/ext/base/dnannsum/coverage.ndjson create mode 100644 blas/ext/base/dnannsum/dnannsum.js.html create mode 100644 blas/ext/base/dnannsum/dnannsum.native.js.html create mode 100644 blas/ext/base/dnannsum/index.html create mode 100644 blas/ext/base/dnannsum/index.js.html create mode 100644 blas/ext/base/dnannsum/main.js.html create mode 100644 blas/ext/base/dnannsum/native.js.html create mode 100644 blas/ext/base/dnannsum/ndarray.js.html create mode 100644 blas/ext/base/dnannsum/ndarray.native.js.html diff --git a/blas/ext/base/dnannsum/coverage.ndjson b/blas/ext/base/dnannsum/coverage.ndjson new file mode 100644 index 000000000..470a81bd7 --- /dev/null +++ b/blas/ext/base/dnannsum/coverage.ndjson @@ -0,0 +1 @@ +[379,379,100,14,14,100,4,4,100,379,379,100,"a65a14a9835be9bbae33c52607c537e761270ea2","2024-04-15 08:57:55 -0400"] diff --git a/blas/ext/base/dnannsum/dnannsum.js.html b/blas/ext/base/dnannsum/dnannsum.js.html new file mode 100644 index 000000000..7ef6aeabf --- /dev/null +++ b/blas/ext/base/dnannsum/dnannsum.js.html @@ -0,0 +1,247 @@ + + + + + + Code coverage report for blas/ext/base/dnannsum/lib/dnannsum.js + + + + + + + + + +
+
+

All files / blas/ext/base/dnannsum/lib dnannsum.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 +552x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +15x +15x +15x +2x +2x +2x +2x +2x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2020 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 dnannsumkbn = require( '@stdlib/blas/ext/base/dnannsumkbn' );
+ 
+ 
+// MAIN //
+ 
+/**
+* Computes the sum of double-precision floating-point strided array elements, ignoring `NaN` values.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @param {Float64Array} x - input array
+* @param {integer} strideX - `x` stride length
+* @param {Float64Array} out - output array
+* @param {integer} strideOut - `out` stride length
+* @returns {Float64Array} output array
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var x = new Float64Array( [ 1.0, -2.0, NaN, 2.0 ] );
+* var out = new Float64Array( 2 );
+*
+* var v = dnannsum( x.length, x, 1, out, 1 );
+* // returns <Float64Array>[ 1.0, 3 ]
+*/
+function dnannsum( N, x, strideX, out, strideOut ) {
+	return dnannsumkbn( N, x, strideX, out, strideOut );
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = dnannsum;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/blas/ext/base/dnannsum/dnannsum.native.js.html b/blas/ext/base/dnannsum/dnannsum.native.js.html new file mode 100644 index 000000000..15d86f9a9 --- /dev/null +++ b/blas/ext/base/dnannsum/dnannsum.native.js.html @@ -0,0 +1,250 @@ + + + + + + Code coverage report for blas/ext/base/dnannsum/lib/dnannsum.native.js + + + + + + + + + +
+
+

All files / blas/ext/base/dnannsum/lib dnannsum.native.js

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

+ 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 +563x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +30x +30x +30x +30x +3x +3x +3x +3x +3x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2020 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 sum of double-precision floating-point strided array elements, ignoring `NaN` values.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @param {Float64Array} x - input array
+* @param {integer} strideX - `x` stride length
+* @param {Float64Array} out - output array
+* @param {integer} strideOut - `out` stride length
+* @returns {Float64Array} output array
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var x = new Float64Array( [ 1.0, -2.0, NaN, 2.0 ] );
+* var out = new Float64Array( 2 );
+*
+* var v = dnannsum( x.length, x, 1, out, 1 );
+* // returns <Float64Array>[ 1.0, 3 ]
+*/
+function dnannsum( N, x, strideX, out, strideOut ) {
+	addon( N, x, strideX, out, strideOut );
+	return out;
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = dnannsum;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/blas/ext/base/dnannsum/index.html b/blas/ext/base/dnannsum/index.html new file mode 100644 index 000000000..66332e4f0 --- /dev/null +++ b/blas/ext/base/dnannsum/index.html @@ -0,0 +1,206 @@ + + + + + + Code coverage report for blas/ext/base/dnannsum/lib + + + + + + + + + +
+
+

All files blas/ext/base/dnannsum/lib

+
+ +
+ 100% + Statements + 379/379 +
+ + +
+ 100% + Branches + 14/14 +
+ + +
+ 100% + Functions + 4/4 +
+ + +
+ 100% + Lines + 379/379 +
+ + +
+

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

+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileStatementsBranchesFunctionsLines
dnannsum.js +
+
100%54/54100%2/2100%1/1100%54/54
dnannsum.native.js +
+
100%55/55100%2/2100%1/1100%55/55
index.js +
+
100%70/70100%3/3100%0/0100%70/70
main.js +
+
100%35/35100%1/1100%0/0100%35/35
native.js +
+
100%35/35100%1/1100%0/0100%35/35
ndarray.js +
+
100%56/56100%2/2100%1/1100%56/56
ndarray.native.js +
+
100%74/74100%3/3100%1/1100%74/74
+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/blas/ext/base/dnannsum/index.js.html b/blas/ext/base/dnannsum/index.js.html new file mode 100644 index 000000000..94234e355 --- /dev/null +++ b/blas/ext/base/dnannsum/index.js.html @@ -0,0 +1,295 @@ + + + + + + Code coverage report for blas/ext/base/dnannsum/lib/index.js + + + + + + + + + +
+
+

All files / blas/ext/base/dnannsum/lib index.js

+
+ +
+ 100% + Statements + 70/70 +
+ + +
+ 100% + Branches + 3/3 +
+ + +
+ 100% + Functions + 0/0 +
+ + +
+ 100% + Lines + 70/70 +
+ + +
+

+ 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 +69 +70 +713x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +1x +3x +2x +2x +3x +3x +3x +3x +3x +3x +3x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2020 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';
+ 
+/**
+* Compute the sum of double-precision floating-point strided array elements, ignoring `NaN` values.
+*
+* @module @stdlib/blas/ext/base/dnannsum
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+* var dnannsum = require( '@stdlib/blas/ext/base/dnannsum' );
+*
+* var x = new Float64Array( [ 1.0, -2.0, NaN, 2.0 ] );
+* var out = new Float64Array( 2 );
+*
+* var v = dnannsum( x.length, x, 1, out, 1 );
+* // returns <Float64Array>[ 1.0, 3 ]
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+* var dnannsum = require( '@stdlib/blas/ext/base/dnannsum' );
+*
+* var x = new Float64Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0, NaN, NaN ] );
+* var out = new Float64Array( 2 );
+*
+* var v = dnannsum.ndarray( 5, x, 2, 1, out, 1, 0 );
+* // returns <Float64Array>[ 5.0, 4 ]
+*/
+ 
+// MODULES //
+ 
+var join = require( 'path' ).join;
+var tryRequire = require( '@stdlib/utils/try-require' );
+var isError = require( '@stdlib/assert/is-error' );
+var main = require( './main.js' );
+ 
+ 
+// MAIN //
+ 
+var dnannsum;
+var tmp = tryRequire( join( __dirname, './native.js' ) );
+if ( isError( tmp ) ) {
+	dnannsum = main;
+} else {
+	dnannsum = tmp;
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = dnannsum;
+ 
+// exports: { "ndarray": "dnannsum.ndarray" }
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/blas/ext/base/dnannsum/main.js.html b/blas/ext/base/dnannsum/main.js.html new file mode 100644 index 000000000..6783a8bcb --- /dev/null +++ b/blas/ext/base/dnannsum/main.js.html @@ -0,0 +1,190 @@ + + + + + + Code coverage report for blas/ext/base/dnannsum/lib/main.js + + + + + + + + + +
+
+

All files / blas/ext/base/dnannsum/lib main.js

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

+ 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 +361x +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) 2020 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 setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
+var dnannsum = require( './dnannsum.js' );
+var ndarray = require( './ndarray.js' );
+ 
+ 
+// MAIN //
+ 
+setReadOnly( dnannsum, 'ndarray', ndarray );
+ 
+ 
+// EXPORTS //
+ 
+module.exports = dnannsum;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/blas/ext/base/dnannsum/native.js.html b/blas/ext/base/dnannsum/native.js.html new file mode 100644 index 000000000..b77bcfff3 --- /dev/null +++ b/blas/ext/base/dnannsum/native.js.html @@ -0,0 +1,190 @@ + + + + + + Code coverage report for blas/ext/base/dnannsum/lib/native.js + + + + + + + + + +
+
+

All files / blas/ext/base/dnannsum/lib native.js

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

+ 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 +361x +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) 2020 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 setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
+var dnannsum = require( './dnannsum.native.js' );
+var ndarray = require( './ndarray.native.js' );
+ 
+ 
+// MAIN //
+ 
+setReadOnly( dnannsum, 'ndarray', ndarray );
+ 
+ 
+// EXPORTS //
+ 
+module.exports = dnannsum;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/blas/ext/base/dnannsum/ndarray.js.html b/blas/ext/base/dnannsum/ndarray.js.html new file mode 100644 index 000000000..28198bf1c --- /dev/null +++ b/blas/ext/base/dnannsum/ndarray.js.html @@ -0,0 +1,253 @@ + + + + + + Code coverage report for blas/ext/base/dnannsum/lib/ndarray.js + + + + + + + + + +
+
+

All files / blas/ext/base/dnannsum/lib ndarray.js

+
+ +
+ 100% + Statements + 56/56 +
+ + +
+ 100% + Branches + 2/2 +
+ + +
+ 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 +572x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +15x +15x +15x +2x +2x +2x +2x +2x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2020 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 dnannsumkbn = require( '@stdlib/blas/ext/base/dnannsumkbn' ).ndarray;
+ 
+ 
+// MAIN //
+ 
+/**
+* Computes the sum of double-precision floating-point strided array elements, ignoring `NaN` values.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @param {Float64Array} x - input array
+* @param {integer} strideX - `x` stride length
+* @param {NonNegativeInteger} offsetX - `x` starting index
+* @param {Float64Array} out - output array
+* @param {integer} strideOut - `out` stride length
+* @param {NonNegativeInteger} offsetOut - `out` starting index
+* @returns {Float64Array} output array
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var x = new Float64Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0, NaN, NaN ] );
+* var out = new Float64Array( 2 );
+*
+* var v = dnannsum( 5, x, 2, 1, out, 1, 0 );
+* // returns <Float64Array>[ 5.0, 4 ]
+*/
+function dnannsum( N, x, strideX, offsetX, out, strideOut, offsetOut ) {
+	return dnannsumkbn( N, x, strideX, offsetX, out, strideOut, offsetOut );
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = dnannsum;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/blas/ext/base/dnannsum/ndarray.native.js.html b/blas/ext/base/dnannsum/ndarray.native.js.html new file mode 100644 index 000000000..d704bffeb --- /dev/null +++ b/blas/ext/base/dnannsum/ndarray.native.js.html @@ -0,0 +1,307 @@ + + + + + + Code coverage report for blas/ext/base/dnannsum/lib/ndarray.native.js + + + + + + + + + +
+
+

All files / blas/ext/base/dnannsum/lib ndarray.native.js

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

+ 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 +69 +70 +71 +72 +73 +74 +752x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +15x +15x +15x +15x +15x +15x +1x +1x +15x +15x +15x +15x +15x +15x +15x +15x +2x +2x +2x +2x +2x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2020 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 minViewBufferIndex = require( '@stdlib/strided/base/min-view-buffer-index' );
+var offsetView = require( '@stdlib/strided/base/offset-view' );
+var addon = require( './dnannsum.native.js' );
+ 
+ 
+// MAIN //
+ 
+/**
+* Computes the sum of double-precision floating-point strided array elements, ignoring `NaN` values.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @param {Float64Array} x - input array
+* @param {integer} strideX - `x` stride length
+* @param {NonNegativeInteger} offsetX - `x` starting index
+* @param {Float64Array} out - output array
+* @param {integer} strideOut - `out` stride length
+* @param {NonNegativeInteger} offsetOut - `out` starting index
+* @returns {Float64Array} output array
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+* var floor = require( '@stdlib/math/base/special/floor' );
+*
+* var x = new Float64Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0, NaN, NaN ] );
+* var out = new Float64Array( 2 );
+*
+* var N = floor( x.length / 2 );
+*
+* var v = dnannsum( N, x, 2, 1, out, 1, 0 );
+* // returns <Float64Array>[ 5.0, 4 ]
+*/
+function dnannsum( N, x, strideX, offsetX, out, strideOut, offsetOut ) {
+	var viewOut;
+	var viewX;
+ 
+	offsetX = minViewBufferIndex( N, strideX, offsetX );
+	if ( strideOut < 0 ) {
+		offsetOut += strideOut;
+	}
+ 
+	viewX = offsetView( x, offsetX );
+	viewOut = offsetView( out, offsetOut );
+ 
+	addon( N, viewX, strideX, viewOut, strideOut );
+ 
+	return out;
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = dnannsum;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file