From 8eedef9abe7e94a0ea1e6d609a07a3adffd811cf Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Fri, 19 Apr 2024 02:05:45 +0000 Subject: [PATCH] Update artifacts --- blas/base/drot/coverage.ndjson | 1 + blas/base/drot/drot.js.html | 346 ++++++++++++++++++++++++++ blas/base/drot/drot.native.js.html | 259 +++++++++++++++++++ blas/base/drot/index.html | 206 +++++++++++++++ blas/base/drot/index.js.html | 301 ++++++++++++++++++++++ blas/base/drot/main.js.html | 190 ++++++++++++++ blas/base/drot/native.js.html | 190 ++++++++++++++ blas/base/drot/ndarray.js.html | 301 ++++++++++++++++++++++ blas/base/drot/ndarray.native.js.html | 298 ++++++++++++++++++++++ 9 files changed, 2092 insertions(+) create mode 100644 blas/base/drot/coverage.ndjson create mode 100644 blas/base/drot/drot.js.html create mode 100644 blas/base/drot/drot.native.js.html create mode 100644 blas/base/drot/index.html create mode 100644 blas/base/drot/index.js.html create mode 100644 blas/base/drot/main.js.html create mode 100644 blas/base/drot/native.js.html create mode 100644 blas/base/drot/ndarray.js.html create mode 100644 blas/base/drot/ndarray.native.js.html diff --git a/blas/base/drot/coverage.ndjson b/blas/base/drot/coverage.ndjson new file mode 100644 index 000000000..62a6781fb --- /dev/null +++ b/blas/base/drot/coverage.ndjson @@ -0,0 +1 @@ +[430,430,100,31,31,100,4,4,100,430,430,100,"3f1caa37909030a50ec54f75dc444edea1aad950","2024-04-18 19:03:26 -0700"] diff --git a/blas/base/drot/drot.js.html b/blas/base/drot/drot.js.html new file mode 100644 index 000000000..09af70cf7 --- /dev/null +++ b/blas/base/drot/drot.js.html @@ -0,0 +1,346 @@ + + + + + + Code coverage report for blas/base/drot/lib/drot.js + + + + + + + + + +
+
+

All files / blas/base/drot/lib drot.js

+
+ +
+ 100% + Statements + 87/87 +
+ + +
+ 100% + Branches + 16/16 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 100% + Lines + 87/87 +
+ + +
+

+ 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 +882x +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 +23x +23x +23x +23x +23x +23x +23x +6x +6x +17x +23x +4x +12x +12x +12x +12x +4x +4x +13x +23x +8x +23x +5x +5x +23x +7x +23x +6x +6x +23x +32x +32x +32x +32x +32x +32x +13x +23x +2x +2x +2x +2x +2x + 
/**
+* @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';
+ 
+// MAIN //
+ 
+/**
+* Applies a plane rotation.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @param {Float64Array} x - first input array
+* @param {integer} strideX - `x` stride length
+* @param {Float64Array} y - second input array
+* @param {integer} strideY - `y` stride length
+* @param {number} c - cosine of the angle of rotation
+* @param {number} s - sine of the angle of rotation
+* @returns {Float64Array} `y`
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
+* var y = new Float64Array( [ 6.0, 7.0, 8.0, 9.0, 10.0 ] );
+*
+* drot( x.length, x, 1, y, 1, 0.8, 0.6 );
+* // x => <Float64Array>[ ~4.4, ~5.8, 7.2, 8.6, 10.0 ]
+* // y => <Float64Array>[ ~4.2, 4.4, 4.6, 4.8, 5.0 ]
+*/
+function drot( N, x, strideX, y, strideY, c, s ) {
+	var tmp;
+	var ix;
+	var iy;
+	var i;
+ 
+	if ( N <= 0 ) {
+		return y;
+	}
+	// If both strides are equal to `1`...
+	if ( strideX === 1 && strideY === 1 ) {
+		for ( i = 0; i < N; i++ ) {
+			tmp = ( c * x[ i ] ) + ( s * y[ i ] );
+			y[ i ] = ( c * y[ i ] ) - ( s * x[ i ] );
+			x[ i ] = tmp;
+		}
+		return y;
+	}
+	// If both strides are not equal to `1`...
+	if ( strideX < 0 ) {
+		ix = ( 1 - N ) * strideX;
+	} else {
+		ix = 0;
+	}
+	if ( strideY < 0 ) {
+		iy = ( 1 - N ) * strideY;
+	} else {
+		iy = 0;
+	}
+	for ( i = 0; i < N; i++ ) {
+		tmp = ( c * x[ ix ] ) + ( s * y[ iy ] );
+		y[ iy ] = ( c * y[ iy ] ) - ( s * x[ ix ] );
+		x[ ix ] = tmp;
+		ix += strideX;
+		iy += strideY;
+	}
+	return y;
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = drot;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/blas/base/drot/drot.native.js.html b/blas/base/drot/drot.native.js.html new file mode 100644 index 000000000..bb3eb4281 --- /dev/null +++ b/blas/base/drot/drot.native.js.html @@ -0,0 +1,259 @@ + + + + + + Code coverage report for blas/base/drot/lib/drot.native.js + + + + + + + + + +
+
+

All files / blas/base/drot/lib drot.native.js

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

+ 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 +593x +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 +48x +48x +48x +48x +3x +3x +3x +3x +3x + 
/**
+* @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 addon = require( './../src/addon.node' );
+ 
+ 
+// MAIN //
+ 
+/**
+* Applies a plane rotation.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @param {Float64Array} x - input array
+* @param {integer} strideX - `x` stride length
+* @param {Float64Array} y - output array
+* @param {integer} strideY - `y` stride length
+* @param {number} c - cosine of the angle of rotation
+* @param {number} s - sine of the angle of rotation
+* @returns {Float64Array} `y`
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
+* var y = new Float64Array( [ 6.0, 7.0, 8.0, 9.0, 10.0 ] );
+*
+* drot( x.length, x, 1, y, 1, 0.8, 0.6 );
+* // x => <Float64Array>[ ~4.4, ~5.8, 7.2, 8.6, 10.0 ]
+* // y => <Float64Array>[ ~4.2, 4.4, 4.6, 4.8, 5.0 ]
+*/
+function drot( N, x, strideX, y, strideY, c, s ) {
+	addon( N, x, strideX, y, strideY, c, s );
+	return y;
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = drot;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/blas/base/drot/index.html b/blas/base/drot/index.html new file mode 100644 index 000000000..39bbdd038 --- /dev/null +++ b/blas/base/drot/index.html @@ -0,0 +1,206 @@ + + + + + + Code coverage report for blas/base/drot/lib + + + + + + + + + +
+
+

All files blas/base/drot/lib

+
+ +
+ 100% + Statements + 430/430 +
+ + +
+ 100% + Branches + 31/31 +
+ + +
+ 100% + Functions + 4/4 +
+ + +
+ 100% + Lines + 430/430 +
+ + +
+

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

+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileStatementsBranchesFunctionsLines
drot.js +
+
100%87/87100%16/16100%1/1100%87/87
drot.native.js +
+
100%58/58100%2/2100%1/1100%58/58
index.js +
+
100%72/72100%3/3100%0/0100%72/72
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%72/72100%6/6100%1/1100%72/72
ndarray.native.js +
+
100%71/71100%2/2100%1/1100%71/71
+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/blas/base/drot/index.js.html b/blas/base/drot/index.js.html new file mode 100644 index 000000000..e62821103 --- /dev/null +++ b/blas/base/drot/index.js.html @@ -0,0 +1,301 @@ + + + + + + Code coverage report for blas/base/drot/lib/index.js + + + + + + + + + +
+
+

All files / blas/base/drot/lib index.js

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

+ 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 +733x +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 +3x +3x +1x +3x +2x +2x +3x +3x +3x +3x +3x +3x +3x + 
/**
+* @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';
+ 
+/**
+* BLAS level 1 routine to apply a plane rotation.
+*
+* @module @stdlib/blas/base/drot
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+* var drot = require( '@stdlib/blas/base/drot' );
+*
+* var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
+* var y = new Float64Array( [ 6.0, 7.0, 8.0, 9.0, 10.0 ] );
+*
+* drot( x.length, x, 1, y, 1, 0.8, 0.6 );
+* // x => <Float64Array>[ ~4.4, ~5.8, 7.2, 8.6, 10.0 ]
+* // y => <Float64Array>[ ~4.2, 4.4, 4.6, 4.8, 5.0 ]
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+* var drot = require( '@stdlib/blas/base/drot' );
+*
+* var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
+* var y = new Float64Array( [ 6.0, 7.0, 8.0, 9.0, 10.0 ] );
+*
+* drot.ndarray( 4, x, 1, 1, y, 1, 1, 0.8, 0.6 );
+* // x => <Float64Array>[ 1.0, ~5.8, 7.2, 8.6, 10.0 ]
+* // y => <Float64Array>[ 6.0, 4.4, ~4.6, ~4.8, 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 drot;
+var tmp = tryRequire( join( __dirname, './native.js' ) );
+if ( isError( tmp ) ) {
+	drot = main;
+} else {
+	drot = tmp;
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = drot;
+ 
+// exports: { "ndarray": "drot.ndarray" }
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/blas/base/drot/main.js.html b/blas/base/drot/main.js.html new file mode 100644 index 000000000..89dfece0a --- /dev/null +++ b/blas/base/drot/main.js.html @@ -0,0 +1,190 @@ + + + + + + Code coverage report for blas/base/drot/lib/main.js + + + + + + + + + +
+
+

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

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

All files / blas/base/drot/lib ndarray.js

+
+ +
+ 100% + Statements + 72/72 +
+ + +
+ 100% + Branches + 6/6 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 100% + Lines + 72/72 +
+ + +
+

+ 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 +732x +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 +25x +25x +25x +25x +25x +25x +25x +6x +6x +19x +19x +19x +25x +48x +48x +48x +48x +48x +48x +19x +25x +2x +2x +2x +2x +2x + 
/**
+* @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';
+ 
+// MAIN //
+ 
+/**
+* Applies a plane rotation.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @param {Float64Array} x - first input array
+* @param {integer} strideX - `x` stride length
+* @param {NonNegativeInteger} offsetX - starting `x` index
+* @param {Float64Array} y - second input array
+* @param {integer} strideY - `y` stride length
+* @param {NonNegativeInteger} offsetY - starting `y` index
+* @param {number} c - cosine of the angle of rotation
+* @param {number} s - sine of the angle of rotation
+* @returns {Float64Array} `y`
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
+* var y = new Float64Array( [ 6.0, 7.0, 8.0, 9.0, 10.0 ] );
+*
+* drot( 4, x, 1, 1, y, 1, 1, 0.8, 0.6 );
+* // x => <Float64Array>[ 1.0, ~5.8, 7.2, 8.6, 10.0 ]
+* // y => <Float64Array>[ 6.0, 4.4, ~4.6, ~4.8, 5.0 ]
+*/
+function drot( N, x, strideX, offsetX, y, strideY, offsetY, c, s ) {
+	var tmp;
+	var ix;
+	var iy;
+	var i;
+ 
+	if ( N <= 0 ) {
+		return y;
+	}
+	ix = offsetX;
+	iy = offsetY;
+ 
+	for ( i = 0; i < N; i++ ) {
+		tmp = ( c * x[ ix ] ) + ( s * y[ iy ] );
+		y[ iy ] = ( c * y[ iy ] ) - ( s * x[ ix ] );
+		x[ ix ] = tmp;
+		ix += strideX;
+		iy += strideY;
+	}
+	return y;
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = drot;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/blas/base/drot/ndarray.native.js.html b/blas/base/drot/ndarray.native.js.html new file mode 100644 index 000000000..2e8a9bb7c --- /dev/null +++ b/blas/base/drot/ndarray.native.js.html @@ -0,0 +1,298 @@ + + + + + + Code coverage report for blas/base/drot/lib/ndarray.native.js + + + + + + + + + +
+
+

All files / blas/base/drot/lib ndarray.native.js

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

+ 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 +722x +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 +25x +25x +25x +25x +25x +25x +25x +25x +25x +25x +25x +25x +25x +2x +2x +2x +2x +2x + 
/**
+* @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 minViewBufferIndex = require( '@stdlib/strided/base/min-view-buffer-index' );
+var offsetView = require( '@stdlib/strided/base/offset-view' );
+var addon = require( './drot.native.js' );
+ 
+ 
+// MAIN //
+ 
+/**
+* Applies a plane rotation.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @param {Float64Array} x - input array
+* @param {integer} strideX - `x` stride length
+* @param {NonNegativeInteger} offsetX - starting `x` index
+* @param {Float64Array} y - output array
+* @param {integer} strideY - `y` stride length
+* @param {NonNegativeInteger} offsetY - starting `y` index
+* @param {number} c - cosine of the angle of rotation
+* @param {number} s - sine of the angle of rotation
+* @returns {Float64Array} `y`
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
+* var y = new Float64Array( [ 6.0, 7.0, 8.0, 9.0, 10.0 ] );
+*
+* drot( 4, x, 1, 1, y, 1, 1, 0.8, 0.6 );
+* // x => <Float64Array>[ 1.0, ~5.8, 7.2, 8.6, 10.0 ]
+* // y => <Float64Array>[ 6.0, 4.4, ~4.6, ~4.8, 5.0 ]
+*/
+function drot( N, x, strideX, offsetX, y, strideY, offsetY, c, s ) {
+	var viewX;
+	var viewY;
+ 
+	offsetX = minViewBufferIndex( N, strideX, offsetX );
+	offsetY = minViewBufferIndex( N, strideY, offsetY );
+ 
+	viewX = offsetView( x, offsetX );
+	viewY = offsetView( y, offsetY );
+ 
+	addon( N, viewX, strideX, viewY, strideY, c, s );
+	return y;
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = drot;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file