From cae3f491530718802c51cc17340a0447a4d3f20c Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Sun, 3 Mar 2024 20:25:18 +0000 Subject: [PATCH] Update artifacts --- blas/ext/base/dfill/coverage.ndjson | 1 + blas/ext/base/dfill/dfill.js.html | 364 +++++++++++++++++++++ blas/ext/base/dfill/dfill.native.js.html | 244 ++++++++++++++ blas/ext/base/dfill/index.html | 206 ++++++++++++ blas/ext/base/dfill/index.js.html | 289 ++++++++++++++++ blas/ext/base/dfill/main.js.html | 190 +++++++++++ blas/ext/base/dfill/native.js.html | 190 +++++++++++ blas/ext/base/dfill/ndarray.js.html | 364 +++++++++++++++++++++ blas/ext/base/dfill/ndarray.native.js.html | 268 +++++++++++++++ 9 files changed, 2116 insertions(+) create mode 100644 blas/ext/base/dfill/coverage.ndjson create mode 100644 blas/ext/base/dfill/dfill.js.html create mode 100644 blas/ext/base/dfill/dfill.native.js.html create mode 100644 blas/ext/base/dfill/index.html create mode 100644 blas/ext/base/dfill/index.js.html create mode 100644 blas/ext/base/dfill/main.js.html create mode 100644 blas/ext/base/dfill/native.js.html create mode 100644 blas/ext/base/dfill/ndarray.js.html create mode 100644 blas/ext/base/dfill/ndarray.native.js.html diff --git a/blas/ext/base/dfill/coverage.ndjson b/blas/ext/base/dfill/coverage.ndjson new file mode 100644 index 0000000000..782732f671 --- /dev/null +++ b/blas/ext/base/dfill/coverage.ndjson @@ -0,0 +1 @@ +[438,438,100,40,40,100,4,4,100,438,438,100,"2675d586a0877f212edf6231b529fdc9047cd694","2024-03-03 12:23:27 -0800"] diff --git a/blas/ext/base/dfill/dfill.js.html b/blas/ext/base/dfill/dfill.js.html new file mode 100644 index 0000000000..c9c37c932a --- /dev/null +++ b/blas/ext/base/dfill/dfill.js.html @@ -0,0 +1,364 @@ + + + + +
++ 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 +75 +76 +77 +78 +79 +80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +90 +91 +92 +93 +94 | 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 +10x +10x +10x +10x +10x +10x +2x +2x +8x +10x +5x +5x +5x +5x +3x +11x +11x +3x +5x +2x +2x +5x +43x +43x +43x +43x +43x +43x +43x +43x +43x +3x +3x +10x +1x +10x +2x +2x +10x +9x +9x +9x +3x +10x +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'; + +// VARIABLES // + +var M = 8; + + +// MAIN // + +/** +* Fills a double-precision floating-point strided array with a specified scalar constant. +* +* @param {PositiveInteger} N - number of indexed elements +* @param {number} alpha - scalar +* @param {Float64Array} x - input array +* @param {integer} stride - index increment +* @returns {Float64Array} input array +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* +* var x = new Float64Array( [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0, -1.0, -3.0 ] ); +* +* dfill( x.length, 5.0, x, 1 ); +* // x => <Float64Array>[ 5.0, 5.0, 5.0, 5.0, 5.0, 5.0, 5.0, 5.0 ] +*/ +function dfill( N, alpha, x, stride ) { + var ix; + var i; + var m; + + if ( N <= 0 ) { + return x; + } + // Use loop unrolling if the stride is equal to `1`... + if ( stride === 1 ) { + m = N % M; + + // If we have a remainder, run a clean-up loop... + if ( m > 0 ) { + for ( i = 0; i < m; i++ ) { + x[ i ] = alpha; + } + } + if ( N < M ) { + return x; + } + for ( i = m; i < N; i += M ) { + x[ i ] = alpha; + x[ i+1 ] = alpha; + x[ i+2 ] = alpha; + x[ i+3 ] = alpha; + x[ i+4 ] = alpha; + x[ i+5 ] = alpha; + x[ i+6 ] = alpha; + x[ i+7 ] = alpha; + } + return x; + } + if ( stride < 0 ) { + ix = (1-N) * stride; + } else { + ix = 0; + } + for ( i = 0; i < N; i++ ) { + x[ ix ] = alpha; + ix += stride; + } + return x; +} + + +// EXPORTS // + +module.exports = dfill; + |
+ 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 | 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 +20x +20x +20x +20x +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 // + +/** +* Fills a double-precision floating-point strided array with a specified scalar constant. +* +* @param {PositiveInteger} N - number of indexed elements +* @param {number} alpha - scalar +* @param {Float64Array} x - input array +* @param {integer} stride - index increment +* @returns {Float64Array} input array +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* +* var x = new Float64Array( [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0, -1.0, -3.0 ] ); +* +* dfill( x.length, 5.0, x, 1 ); +* // x => <Float64Array>[ 5.0, 5.0, 5.0, 5.0, 5.0, 5.0, 5.0, 5.0 ] +*/ +function dfill( N, alpha, x, stride ) { + addon( N, alpha, x, stride ); + return x; +} + + +// EXPORTS // + +module.exports = dfill; + |
+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +
+ +File | ++ | Statements | ++ | Branches | ++ | Functions | ++ | Lines | ++ |
---|---|---|---|---|---|---|---|---|---|
dfill.js | +
+
+ |
+ 100% | +93/93 | +100% | +17/17 | +100% | +1/1 | +100% | +93/93 | +
dfill.native.js | +
+
+ |
+ 100% | +53/53 | +100% | +2/2 | +100% | +1/1 | +100% | +53/53 | +
index.js | +
+
+ |
+ 100% | +68/68 | +100% | +3/3 | +100% | +0/0 | +100% | +68/68 | +
main.js | +
+
+ |
+ 100% | +35/35 | +100% | +1/1 | +100% | +0/0 | +100% | +35/35 | +
native.js | +
+
+ |
+ 100% | +35/35 | +100% | +1/1 | +100% | +0/0 | +100% | +35/35 | +
ndarray.js | +
+
+ |
+ 100% | +93/93 | +100% | +14/14 | +100% | +1/1 | +100% | +93/93 | +
ndarray.native.js | +
+
+ |
+ 100% | +61/61 | +100% | +2/2 | +100% | +1/1 | +100% | +61/61 | +
+ 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 | 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'; + +/** +* Fill a double-precision floating-point strided array with a specified scalar constant. +* +* @module @stdlib/blas/ext/base/dfill +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* var dfill = require( '@stdlib/blas/ext/base/dfill' ); +* +* var x = new Float64Array( [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0, -1.0, -3.0 ] ); +* +* dfill( x.length, 5.0, x, 1 ); +* // x => <Float64Array>[ 5.0, 5.0, 5.0, 5.0, 5.0, 5.0, 5.0, 5.0 ] +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* var dfill = require( '@stdlib/blas/ext/base/dfill' ); +* +* var x = new Float64Array( [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0, -1.0, -3.0 ] ); +* +* dfill.ndarray( x.length, 5.0, x, 1, 0 ); +* // x => <Float64Array>[ 5.0, 5.0, 5.0, 5.0, 5.0, 5.0, 5.0, 5.0 ] +*/ + +// 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 dfill; +var tmp = tryRequire( join( __dirname, './native.js' ) ); +if ( isError( tmp ) ) { + dfill = main; +} else { + dfill = tmp; +} + + +// EXPORTS // + +module.exports = dfill; + +// exports: { "ndarray": "dfill.ndarray" } + |
+ 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 | 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) 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 dfill = require( './dfill.js' ); +var ndarray = require( './ndarray.js' ); + + +// MAIN // + +setReadOnly( dfill, 'ndarray', ndarray ); + + +// EXPORTS // + +module.exports = dfill; + |
+ 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 | 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) 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 dfill = require( './dfill.native.js' ); +var ndarray = require( './ndarray.native.js' ); + + +// MAIN // + +setReadOnly( dfill, 'ndarray', ndarray ); + + +// EXPORTS // + +module.exports = dfill; + |
+ 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 +75 +76 +77 +78 +79 +80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +90 +91 +92 +93 +94 | 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 +10x +10x +10x +10x +10x +10x +2x +2x +8x +8x +8x +10x +5x +5x +5x +5x +3x +11x +11x +11x +3x +5x +2x +2x +5x +43x +43x +43x +43x +43x +43x +43x +43x +43x +43x +3x +3x +10x +9x +9x +9x +3x +10x +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'; + +// VARIABLES // + +var M = 8; + + +// MAIN // + +/** +* Fills a double-precision floating-point strided array with a specified scalar constant. +* +* @param {PositiveInteger} N - number of indexed elements +* @param {number} alpha - scalar +* @param {Float64Array} x - input array +* @param {integer} stride - index increment +* @param {NonNegativeInteger} offset - starting index +* @returns {Float64Array} input array +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* +* var x = new Float64Array( [ 1.0, -2.0, 3.0, -4.0, 5.0, -6.0 ] ); +* +* dfill( 3, 5.0, x, 1, x.length-3 ); +* // x => <Float64Array>[ 1.0, -2.0, 3.0, 5.0, 5.0, 5.0 ] +*/ +function dfill( N, alpha, x, stride, offset ) { + var ix; + var m; + var i; + + if ( N <= 0 ) { + return x; + } + ix = offset; + + // Use loop unrolling if the stride is equal to `1`... + if ( stride === 1 ) { + m = N % M; + + // If we have a remainder, run a clean-up loop... + if ( m > 0 ) { + for ( i = 0; i < m; i++ ) { + x[ ix ] = alpha; + ix += stride; + } + } + if ( N < M ) { + return x; + } + for ( i = m; i < N; i += M ) { + x[ ix ] = alpha; + x[ ix+1 ] = alpha; + x[ ix+2 ] = alpha; + x[ ix+3 ] = alpha; + x[ ix+4 ] = alpha; + x[ ix+5 ] = alpha; + x[ ix+6 ] = alpha; + x[ ix+7 ] = alpha; + ix += M; + } + return x; + } + for ( i = 0; i < N; i++ ) { + x[ ix ] = alpha; + ix += stride; + } + return x; +} + + +// EXPORTS // + +module.exports = dfill; + |
+ 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 | 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 +10x +10x +10x +10x +10x +10x +10x +10x +10x +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( './dfill.native.js' ); + + +// MAIN // + +/** +* Fills a double-precision floating-point strided array with a specified scalar constant. +* +* @param {PositiveInteger} N - number of indexed elements +* @param {number} alpha - scalar +* @param {Float64Array} x - input array +* @param {integer} stride - index increment +* @param {NonNegativeInteger} offset - starting index +* @returns {Float64Array} input array +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* +* var x = new Float64Array( [ 1.0, -2.0, 3.0, -4.0, 5.0, -6.0 ] ); +* +* dfill( 3, 5.0, x, 1, x.length-3 ); +* // x => <Float64Array>[ 1.0, -2.0, 3.0, 5.0, 5.0, 5.0 ] +*/ +function dfill( N, alpha, x, stride, offset ) { + var view; + + offset = minViewBufferIndex( N, stride, offset ); + view = offsetView( x, offset ); + + addon( N, alpha, view, stride ); + return x; +} + + +// EXPORTS // + +module.exports = dfill; + |