From 03c3b4bf872d0ff3e0cab2028cf4b5d9ae3c3a92 Mon Sep 17 00:00:00 2001
From: Ricky Reusser <572717+rreusser@users.noreply.github.com>
Date: Mon, 13 Jan 2025 14:40:13 -0800
Subject: [PATCH 1/8] feat: add blas/base/zdscal
Add a function to scale a double precision complex vector by a double
precision floating point number.
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
- task: lint_filenames
status: passed
- task: lint_editorconfig
status: passed
- task: lint_markdown
status: passed
- task: lint_package_json
status: passed
- task: lint_repl_help
status: passed
- task: lint_javascript_src
status: passed
- task: lint_javascript_cli
status: na
- task: lint_javascript_examples
status: passed
- task: lint_javascript_tests
status: passed
- task: lint_javascript_benchmarks
status: passed
- task: lint_python
status: na
- task: lint_r
status: na
- task: lint_c_src
status: passed
- task: lint_c_examples
status: passed
- task: lint_c_benchmarks
status: passed
- task: lint_c_tests_fixtures
status: na
- task: lint_shell
status: na
- task: lint_typescript_declarations
status: passed
- task: lint_typescript_tests
status: passed
- task: lint_license_headers
status: passed
---
---
.../@stdlib/blas/base/zdscal/README.md | 339 ++++++++++++++
.../blas/base/zdscal/benchmark/benchmark.js | 109 +++++
.../base/zdscal/benchmark/benchmark.native.js | 114 +++++
.../zdscal/benchmark/benchmark.ndarray.js | 109 +++++
.../benchmark/benchmark.ndarray.native.js | 113 +++++
.../blas/base/zdscal/benchmark/c/Makefile | 146 ++++++
.../zdscal/benchmark/c/benchmark.length.c | 153 ++++++
.../base/zdscal/benchmark/fortran/Makefile | 141 ++++++
.../benchmark/fortran/benchmark.length.f | 222 +++++++++
.../@stdlib/blas/base/zdscal/binding.gyp | 265 +++++++++++
.../@stdlib/blas/base/zdscal/docs/repl.txt | 122 +++++
.../blas/base/zdscal/docs/types/index.d.ts | 142 ++++++
.../blas/base/zdscal/docs/types/test.ts | 202 ++++++++
.../blas/base/zdscal/examples/c/Makefile | 146 ++++++
.../blas/base/zdscal/examples/c/example.c | 43 ++
.../blas/base/zdscal/examples/index.js | 38 ++
.../@stdlib/blas/base/zdscal/include.gypi | 70 +++
.../zdscal/include/stdlib/blas/base/zdscal.h | 44 ++
.../include/stdlib/blas/base/zdscal_cblas.h | 44 ++
.../include/stdlib/blas/base/zdscal_fortran.h | 43 ++
.../@stdlib/blas/base/zdscal/lib/index.js | 90 ++++
.../@stdlib/blas/base/zdscal/lib/main.js | 35 ++
.../@stdlib/blas/base/zdscal/lib/native.js | 35 ++
.../@stdlib/blas/base/zdscal/lib/ndarray.js | 82 ++++
.../blas/base/zdscal/lib/ndarray.native.js | 71 +++
.../@stdlib/blas/base/zdscal/lib/zdscal.js | 93 ++++
.../blas/base/zdscal/lib/zdscal.native.js | 66 +++
.../@stdlib/blas/base/zdscal/manifest.json | 436 ++++++++++++++++++
.../@stdlib/blas/base/zdscal/package.json | 80 ++++
.../@stdlib/blas/base/zdscal/src/Makefile | 70 +++
.../@stdlib/blas/base/zdscal/src/addon.c | 44 ++
.../@stdlib/blas/base/zdscal/src/zdscal.c | 48 ++
.../@stdlib/blas/base/zdscal/src/zdscal.f | 85 ++++
.../blas/base/zdscal/src/zdscal_cblas.c | 34 ++
.../@stdlib/blas/base/zdscal/src/zdscal_f.c | 34 ++
.../@stdlib/blas/base/zdscal/test/test.js | 82 ++++
.../blas/base/zdscal/test/test.ndarray.js | 318 +++++++++++++
.../base/zdscal/test/test.ndarray.native.js | 327 +++++++++++++
.../blas/base/zdscal/test/test.zdscal.js | 253 ++++++++++
.../base/zdscal/test/test.zdscal.native.js | 262 +++++++++++
40 files changed, 5150 insertions(+)
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/README.md
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.js
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.native.js
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.ndarray.js
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.ndarray.native.js
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/benchmark/c/Makefile
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/benchmark/c/benchmark.length.c
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/benchmark/fortran/Makefile
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/benchmark/fortran/benchmark.length.f
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/binding.gyp
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/docs/repl.txt
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/docs/types/index.d.ts
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/docs/types/test.ts
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/examples/c/Makefile
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/examples/c/example.c
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/examples/index.js
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/include.gypi
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/include/stdlib/blas/base/zdscal.h
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/include/stdlib/blas/base/zdscal_cblas.h
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/include/stdlib/blas/base/zdscal_fortran.h
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/lib/index.js
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/lib/main.js
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/lib/native.js
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/lib/ndarray.js
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/lib/ndarray.native.js
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/lib/zdscal.js
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/lib/zdscal.native.js
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/manifest.json
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/package.json
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/src/Makefile
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/src/addon.c
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal.c
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal.f
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal_cblas.c
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal_f.c
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/test/test.js
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/test/test.ndarray.js
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/test/test.ndarray.native.js
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/test/test.zdscal.js
create mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/test/test.zdscal.native.js
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/README.md b/lib/node_modules/@stdlib/blas/base/zdscal/README.md
new file mode 100644
index 000000000000..de127b3925b5
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/README.md
@@ -0,0 +1,339 @@
+
+
+# zdscal
+
+> Scales a double-precision complex floating-point vector by a double-precision floating-point constant.
+
+
+
+## Usage
+
+```javascript
+var zdscal = require( '@stdlib/blas/base/zdscal' );
+```
+
+#### zdscal( N, da, zx, strideX )
+
+Scales values from `zx` by `da`.
+
+```javascript
+var Complex128Array = require( '@stdlib/array/complex128' );
+var real = require( '@stdlib/complex/float64/real' );
+var imag = require( '@stdlib/complex/float64/imag' );
+
+var zx = new Complex128Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] );
+var da = 2.0;
+
+zdscal( 3, da, zx, 1 );
+
+var z = zx.get( 0 );
+// returns
+
+var re = real( z );
+// returns 2.0
+
+var im = imag( z );
+// returns 2.0
+```
+
+The function has the following parameters:
+
+- **N**: number of indexed elements.
+- **da**: scalar constant.
+- **zx**: input [`Complex128Array`][@stdlib/array/complex128].
+- **strideX**: index increment for `zx`.
+
+The `N` and stride parameters determine how values from `zx` are scaled by `da`. For example, to scale every other value in `zx` by `da`,
+
+```javascript
+var Complex128Array = require( '@stdlib/array/complex128' );
+var real = require( '@stdlib/complex/float64/real' );
+var imag = require( '@stdlib/complex/float64/imag' );
+
+var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+var da = 2.0;
+
+zdscal( 2, da, zx, 2 );
+
+var z = zx.get( 2 );
+// returns
+
+var re = real( z );
+// returns 10.0
+
+var im = imag( z );
+// returns 12.0
+```
+
+Note that indexing is relative to the first index. To introduce an offset, use [`typed array`][mdn-typed-array] views.
+
+
+
+```javascript
+var Complex128Array = require( '@stdlib/array/complex128' );
+var real = require( '@stdlib/complex/float64/real' );
+var imag = require( '@stdlib/complex/float64/imag' );
+
+// Initial array:
+var zx0 = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+// Define a scalar constant:
+var da = 2.0;
+
+// Create an offset view:
+var zx1 = new Complex128Array( zx0.buffer, zx0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
+
+// Scales every other value from `zx1` by `da`...
+zdscal( 3, da, zx1, 1 );
+
+var z = zx0.get( 1 );
+// returns
+
+var re = real( z );
+// returns 6.0
+
+var im = imag( z );
+// returns 8.0
+```
+
+#### zdscal.ndarray( N, da, zx, strideX, offsetX )
+
+Scales values from `zx` by `da` using alternative indexing semantics.
+
+```javascript
+var Complex128Array = require( '@stdlib/array/complex128' );
+var real = require( '@stdlib/complex/float64/real' );
+var imag = require( '@stdlib/complex/float64/imag' );
+
+var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+var da = 2.0;
+
+zdscal.ndarray( 3, da, zx, 1, 0 );
+
+var z = zx.get( 0 );
+// returns
+
+var re = real( z );
+// returns 2.0
+
+var im = imag( z );
+// returns 4.0
+```
+
+The function has the following additional parameters:
+
+- **offsetX**: starting index for `zx`.
+
+While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameter supports indexing semantics based on a starting index. For example, to scale every other value in the input strided array starting from the second element,
+
+```javascript
+var Complex128Array = require( '@stdlib/array/complex128' );
+var real = require( '@stdlib/complex/float64/real' );
+var imag = require( '@stdlib/complex/float64/imag' );
+
+var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+var da = 2.0;
+
+zdscal.ndarray( 2, da, zx, 2, 1 );
+
+var z = zx.get( 3 );
+// returns
+
+var re = real( z );
+// returns 14.0
+
+var im = imag( z );
+// returns 16.0
+```
+
+
+
+
+
+
+
+## Notes
+
+- If `N <= 0` or `strideX <= 0` , both functions return `zx` unchanged.
+- `zdscal()` corresponds to the [BLAS][blas] level 1 function [`zdscal`][zdscal].
+
+
+
+
+
+
+
+## Examples
+
+
+
+```javascript
+var discreteUniform = require( '@stdlib/random/base/discrete-uniform' );
+var filledarrayBy = require( '@stdlib/array/filled-by' );
+var Complex128 = require( '@stdlib/complex/float64/ctor' );
+var zdscal = require( '@stdlib/blas/base/zdscal' );
+
+function rand() {
+ return new Complex128( discreteUniform( 0, 10 ), discreteUniform( -5, 5 ) );
+}
+
+var zx = filledarrayBy( 10, 'complex128', rand );
+console.log( zx.toString() );
+
+var da = 2.0;
+console.log( da );
+
+// Scales elements from `zx` by `da`:
+zdscal( zx.length, da, zx, 1 );
+console.log( zx.get( zx.length-1 ).toString() );
+```
+
+
+
+
+
+
+
+* * *
+
+
+
+## C APIs
+
+
+
+
+
+
+
+
+
+
+
+### Usage
+
+```c
+#include "stdlib/blas/base/zdscal.h"
+```
+
+#### c_zdscal( N, da, \*ZX, strideX )
+
+Scales values from `ZX` by `da`.
+
+```c
+#include "stdlib/complex/float64/ctor.h"
+
+double zx[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
+const stdlib_complex128_t da = stdlib_complex128( 2.0, 2.0 );
+
+c_zdscal( 4, da, (void *)zx, 1 );
+```
+
+The function accepts the following arguments:
+
+- **N**: `[in] CBLAS_INT` number of indexed elements.
+- **da**: `[in] stdlib_complex128_t` scalar constant.
+- **ZX**: `[inout] void*` input array.
+- **strideX**: `[in] CBLAS_INT` index increment for `ZX`.
+
+```c
+void c_zdscal( const CBLAS_INT N, const stdlib_complex128_t da, void *ZX, const CBLAS_INT strideX );
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+### Examples
+
+```c
+#include "stdlib/blas/base/zdscal.h"
+#include "stdlib/complex/float64/ctor.h"
+#include
+
+int main( void ) {
+ // Create a strided array of interleaved real and imaginary components:
+ double zx[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
+
+ // Create a complex scalar:
+ const stdlib_complex128_t ca = stdlib_complex128( 2.0, 2.0 );
+
+ // Specify the number of elements:
+ const int N = 4;
+
+ // Specify stride length:
+ const int strideX = 1;
+
+ // Scale the elements of the array:
+ c_zdscal( N, da, (void *)zx, strideX );
+
+ // Print the result:
+ for ( int i = 0; i < N; i++ ) {
+ printf( "zx[ %i ] = %f + %fj\n", i, zx[ i*2 ], zx[ (i*2)+1 ] );
+ }
+}
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+[blas]: http://www.netlib.org/blas
+
+[zdscal]: https://www.netlib.org/lapack/explore-html/d2/de8/group__scal_ga40d50a435a5fcf16cf41fa80d746819f.html#ga40d50a435a5fcf16cf41fa80d746819f
+
+[mdn-typed-array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
+
+[@stdlib/array/complex128]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/complex128
+
+
+
+
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.js
new file mode 100644
index 000000000000..31af1be19e43
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.js
@@ -0,0 +1,109 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 bench = require( '@stdlib/bench' );
+var uniform = require( '@stdlib/random/array/uniform' );
+var isnan = require( '@stdlib/math/base/assert/is-nan' );
+var pow = require( '@stdlib/math/base/special/pow' );
+var Complex128Array = require( '@stdlib/array/complex128' );
+var pkg = require( './../package.json' ).name;
+var zdscal = require( './../lib/zdscal.js' );
+
+
+// VARIABLES //
+
+var options = {
+ 'dtype': 'float64'
+};
+
+
+// FUNCTIONS //
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {PositiveInteger} len - array length
+* @returns {Function} benchmark function
+*/
+function createBenchmark( len ) {
+ var zxbuf;
+ var da;
+ var zx;
+
+ zxbuf = uniform( len*2, -100.0, 100.0, options );
+ zx = new Complex128Array( zxbuf.buffer );
+ da = 2.0;
+
+ return benchmark;
+
+ /**
+ * Benchmark function.
+ *
+ * @private
+ * @param {Benchmark} b - benchmark instance
+ */
+ function benchmark( b ) {
+ var i;
+
+ b.tic();
+ for ( i = 0; i < b.iterations; i++ ) {
+ zdscal( zx.length, da, zx, 1 );
+ if ( isnan( zxbuf[ i%(len*2) ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ }
+ b.toc();
+ if ( isnan( zxbuf[ i%(len*2) ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ b.pass( 'benchmark finished' );
+ b.end();
+ }
+}
+
+
+// MAIN //
+
+/**
+* Main execution sequence.
+*
+* @private
+*/
+function main() {
+ var len;
+ var min;
+ var max;
+ var f;
+ var i;
+
+ min = 1; // 10^min
+ max = 6; // 10^max
+
+ for ( i = min; i <= max; i++ ) {
+ len = pow( 10, i );
+ f = createBenchmark( len );
+ bench( pkg+':len='+len, f );
+ }
+}
+
+main();
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.native.js
new file mode 100644
index 000000000000..6ccd1da5dece
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.native.js
@@ -0,0 +1,114 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 resolve = require( 'path' ).resolve;
+var bench = require( '@stdlib/bench' );
+var uniform = require( '@stdlib/random/array/uniform' );
+var isnan = require( '@stdlib/math/base/assert/is-nan' );
+var pow = require( '@stdlib/math/base/special/pow' );
+var Complex128Array = require( '@stdlib/array/complex128' );
+var tryRequire = require( '@stdlib/utils/try-require' );
+var pkg = require( './../package.json' ).name;
+
+
+// VARIABLES //
+
+var zdscal = tryRequire( resolve( __dirname, './../lib/zdscal.native.js' ) );
+var opts = {
+ 'skip': ( zdscal instanceof Error )
+};
+var options = {
+ 'dtype': 'float64'
+};
+
+
+// FUNCTIONS //
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {PositiveInteger} len - array length
+* @returns {Function} benchmark function
+*/
+function createBenchmark( len ) {
+ var zxbuf;
+ var da;
+ var zx;
+
+ zxbuf = uniform( len*2, -100.0, 100.0, options );
+ zx = new Complex128Array( zxbuf.buffer );
+ da = 2.0;
+
+ return benchmark;
+
+ /**
+ * Benchmark function.
+ *
+ * @private
+ * @param {Benchmark} b - benchmark instance
+ */
+ function benchmark( b ) {
+ var i;
+
+ b.tic();
+ for ( i = 0; i < b.iterations; i++ ) {
+ zdscal( zx.length, da, zx, 1 );
+ if ( isnan( zxbuf[ i%(len*2) ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ }
+ b.toc();
+ if ( isnan( zxbuf[ i%(len*2) ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ b.pass( 'benchmark finished' );
+ b.end();
+ }
+}
+
+
+// MAIN //
+
+/**
+* Main execution sequence.
+*
+* @private
+*/
+function main() {
+ var len;
+ var min;
+ var max;
+ var f;
+ var i;
+
+ min = 1; // 10^min
+ max = 6; // 10^max
+
+ for ( i = min; i <= max; i++ ) {
+ len = pow( 10, i );
+ f = createBenchmark( len );
+ bench( pkg+'::native:len='+len, opts, f );
+ }
+}
+
+main();
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.ndarray.js
new file mode 100644
index 000000000000..2f1640001394
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.ndarray.js
@@ -0,0 +1,109 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 bench = require( '@stdlib/bench' );
+var uniform = require( '@stdlib/random/array/uniform' );
+var isnan = require( '@stdlib/math/base/assert/is-nan' );
+var pow = require( '@stdlib/math/base/special/pow' );
+var Complex128Array = require( '@stdlib/array/complex128' );
+var pkg = require( './../package.json' ).name;
+var zdscal = require( './../lib/ndarray.js' );
+
+
+// VARIABLES //
+
+var options = {
+ 'dtype': 'float64'
+};
+
+
+// FUNCTIONS //
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {PositiveInteger} len - array length
+* @returns {Function} benchmark function
+*/
+function createBenchmark( len ) {
+ var zxbuf;
+ var da;
+ var zx;
+
+ zxbuf = uniform( len*2, -100.0, 100.0, options );
+ zx = new Complex128Array( zxbuf.buffer );
+ da = 2.0;
+
+ return benchmark;
+
+ /**
+ * Benchmark function.
+ *
+ * @private
+ * @param {Benchmark} b - benchmark instance
+ */
+ function benchmark( b ) {
+ var i;
+
+ b.tic();
+ for ( i = 0; i < b.iterations; i++ ) {
+ zdscal( zx.length, da, zx, 1, 0 );
+ if ( isnan( zxbuf[ i%(len*2) ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ }
+ b.toc();
+ if ( isnan( zxbuf[ i%(len*2) ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ b.pass( 'benchmark finished' );
+ b.end();
+ }
+}
+
+
+// MAIN //
+
+/**
+* Main execution sequence.
+*
+* @private
+*/
+function main() {
+ var len;
+ var min;
+ var max;
+ var f;
+ var i;
+
+ min = 1; // 10^min
+ max = 6; // 10^max
+
+ for ( i = min; i <= max; i++ ) {
+ len = pow( 10, i );
+ f = createBenchmark( len );
+ bench( pkg+':ndarray:len='+len, f );
+ }
+}
+
+main();
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.ndarray.native.js
new file mode 100644
index 000000000000..cb7628352495
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.ndarray.native.js
@@ -0,0 +1,113 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 resolve = require( 'path' ).resolve;
+var bench = require( '@stdlib/bench' );
+var uniform = require( '@stdlib/random/array/uniform' );
+var isnan = require( '@stdlib/math/base/assert/is-nan' );
+var pow = require( '@stdlib/math/base/special/pow' );
+var Complex128Array = require( '@stdlib/array/complex128' );
+var tryRequire = require( '@stdlib/utils/try-require' );
+var pkg = require( './../package.json' ).name;
+
+
+// VARIABLES //
+
+var zdscal = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) );
+var opts = {
+ 'skip': ( zdscal instanceof Error )
+};
+var options = {
+ 'dtype': 'float64'
+};
+
+
+// FUNCTIONS //
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {PositiveInteger} len - array length
+* @returns {Function} benchmark function
+*/
+function createBenchmark( len ) {
+ var zxbuf;
+ var da;
+ var zx;
+
+ zxbuf = uniform( len*2, -100.0, 100.0, options );
+ zx = new Complex128Array( zxbuf.buffer );
+
+ return benchmark;
+
+ /**
+ * Benchmark function.
+ *
+ * @private
+ * @param {Benchmark} b - benchmark instance
+ */
+ function benchmark( b ) {
+ var i;
+
+ b.tic();
+ for ( i = 0; i < b.iterations; i++ ) {
+ zdscal( zx.length, da, zx, 1, 0 );
+ if ( isnan( zxbuf[ i%(len*2) ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ }
+ b.toc();
+ if ( isnan( zxbuf[ i%(len*2) ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ b.pass( 'benchmark finished' );
+ b.end();
+ }
+}
+
+
+// MAIN //
+
+/**
+* Main execution sequence.
+*
+* @private
+*/
+function main() {
+ var len;
+ var min;
+ var max;
+ var f;
+ var i;
+
+ min = 1; // 10^min
+ max = 6; // 10^max
+
+ for ( i = min; i <= max; i++ ) {
+ len = pow( 10, i );
+ f = createBenchmark( len );
+ bench( pkg+'::native:ndarray:len='+len, opts, f );
+ }
+}
+
+main();
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/c/Makefile b/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/c/Makefile
new file mode 100644
index 000000000000..cce2c865d7ad
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/c/Makefile
@@ -0,0 +1,146 @@
+#/
+# @license Apache-2.0
+#
+# Copyright (c) 2025 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.
+#/
+
+# VARIABLES #
+
+ifndef VERBOSE
+ QUIET := @
+else
+ QUIET :=
+endif
+
+# Determine the OS ([1][1], [2][2]).
+#
+# [1]: https://en.wikipedia.org/wiki/Uname#Examples
+# [2]: http://stackoverflow.com/a/27776822/2225624
+OS ?= $(shell uname)
+ifneq (, $(findstring MINGW,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring MSYS,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring CYGWIN,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring Windows_NT,$(OS)))
+ OS := WINNT
+endif
+endif
+endif
+endif
+
+# Define the program used for compiling C source files:
+ifdef C_COMPILER
+ CC := $(C_COMPILER)
+else
+ CC := gcc
+endif
+
+# Define the command-line options when compiling C files:
+CFLAGS ?= \
+ -std=c99 \
+ -O3 \
+ -Wall \
+ -pedantic
+
+# Determine whether to generate position independent code ([1][1], [2][2]).
+#
+# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options
+# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option
+ifeq ($(OS), WINNT)
+ fPIC ?=
+else
+ fPIC ?= -fPIC
+endif
+
+# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`):
+INCLUDE ?=
+
+# List of source files:
+SOURCE_FILES ?=
+
+# List of libraries (e.g., `-lopenblas -lpthread`):
+LIBRARIES ?=
+
+# List of library paths (e.g., `-L /foo/bar -L /beep/boop`):
+LIBPATH ?=
+
+# List of C targets:
+c_targets := benchmark.length.out
+
+
+# RULES #
+
+#/
+# Compiles source files.
+#
+# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`)
+# @param {string} [CFLAGS] - C compiler options
+# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
+# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`)
+# @param {string} [SOURCE_FILES] - list of source files
+# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`)
+# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`)
+#
+# @example
+# make
+#
+# @example
+# make all
+#/
+all: $(c_targets)
+
+.PHONY: all
+
+#/
+# Compiles C source files.
+#
+# @private
+# @param {string} CC - C compiler (e.g., `gcc`)
+# @param {string} CFLAGS - C compiler options
+# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
+# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`)
+# @param {string} SOURCE_FILES - list of source files
+# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`)
+# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`)
+#/
+$(c_targets): %.out: %.c
+ $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES)
+
+#/
+# Runs compiled benchmarks.
+#
+# @example
+# make run
+#/
+run: $(c_targets)
+ $(QUIET) ./$<
+
+.PHONY: run
+
+#/
+# Removes generated files.
+#
+# @example
+# make clean
+#/
+clean:
+ $(QUIET) -rm -f *.o *.out
+
+.PHONY: clean
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/c/benchmark.length.c
new file mode 100644
index 000000000000..7ff051891997
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/c/benchmark.length.c
@@ -0,0 +1,153 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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.
+*/
+
+#include "stdlib/blas/base/zdscal.h"
+#include "stdlib/complex/float64/ctor.h"
+#include
+#include
+#include
+#include
+#include
+
+#define NAME "zdscal"
+#define ITERATIONS 10000000
+#define REPEATS 3
+#define MIN 1
+#define MAX 6
+
+/**
+* Prints the TAP version.
+*/
+static void print_version( void ) {
+ printf( "TAP version 13\n" );
+}
+
+/**
+* Prints the TAP summary.
+*
+* @param total total number of tests
+* @param passing total number of passing tests
+*/
+static void print_summary( int total, int passing ) {
+ printf( "#\n" );
+ printf( "1..%d\n", total ); // TAP plan
+ printf( "# total %d\n", total );
+ printf( "# pass %d\n", passing );
+ printf( "#\n" );
+ printf( "# ok\n" );
+}
+
+/**
+* Prints benchmarks results.
+*
+* @param iterations number of iterations
+* @param elapsed elapsed time in seconds
+*/
+static void print_results( int iterations, double elapsed ) {
+ double rate = (double)iterations / elapsed;
+ printf( " ---\n" );
+ printf( " iterations: %d\n", iterations );
+ printf( " elapsed: %0.9f\n", elapsed );
+ printf( " rate: %0.9f\n", rate );
+ printf( " ...\n" );
+}
+
+/**
+* Returns a clock time.
+*
+* @return clock time
+*/
+static double tic( void ) {
+ struct timeval now;
+ gettimeofday( &now, NULL );
+ return (double)now.tv_sec + (double)now.tv_usec/1.0e6;
+}
+
+/**
+* Generates a random number on the interval [0,1).
+*
+* @return random number
+*/
+static double rand_double( void ) {
+ int r = rand();
+ return (double)r / ( (double)RAND_MAX + 1.0 );
+}
+
+/**
+* Runs a benchmark.
+*
+* @param iterations number of iterations
+* @param len array length
+* @return elapsed time in seconds
+*/
+static double benchmark( int iterations, int len ) {
+ double da;
+ double zx[ len*2 ];
+ double elapsed;
+ double t;
+ int i;
+
+ da = 2.0;
+ for ( i = 0; i < len*2; i+=2 ) {
+ zx[ i ] = ( rand_double()*2.0 ) - 1.0;
+ zx[ i+1 ] = ( rand_double()*2.0 ) - 1.0;
+ }
+ t = tic();
+ for ( i = 0; i < iterations; i++ ) {
+ c_zdscal( len, da, (void *)zx, 1 );
+ if ( zx[ 0 ] != zx[ 0 ] ) {
+ printf( "should not return NaN\n" );
+ break;
+ }
+ }
+ elapsed = tic() - t;
+ if ( zx[ 0 ] != zx[ 0 ] ) {
+ printf( "should not return NaN\n" );
+ }
+ return elapsed;
+}
+
+/**
+* Main execution sequence.
+*/
+int main( void ) {
+ double elapsed;
+ int count;
+ int iter;
+ int len;
+ int i;
+ int j;
+
+ // Use the current time to seed the random number generator:
+ srand( time( NULL ) );
+
+ print_version();
+ count = 0;
+ for ( i = MIN; i <= MAX; i++ ) {
+ len = pow( 10, i );
+ iter = ITERATIONS / pow( 10, i-1 );
+ for ( j = 0; j < REPEATS; j++ ) {
+ count += 1;
+ printf( "# c::%s:len=%d\n", NAME, len );
+ elapsed = benchmark( iter, len );
+ print_results( iter, elapsed );
+ printf( "ok %d benchmark finished\n", count );
+ }
+ }
+ print_summary( count, count );
+}
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/fortran/Makefile b/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/fortran/Makefile
new file mode 100644
index 000000000000..7b2a53414298
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/fortran/Makefile
@@ -0,0 +1,141 @@
+#/
+# @license Apache-2.0
+#
+# Copyright (c) 2025 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.
+#/
+
+# VARIABLES #
+
+ifndef VERBOSE
+ QUIET := @
+else
+ QUIET :=
+endif
+
+# Determine the OS ([1][1], [2][2]).
+#
+# [1]: https://en.wikipedia.org/wiki/Uname#Examples
+# [2]: http://stackoverflow.com/a/27776822/2225624
+OS ?= $(shell uname)
+ifneq (, $(findstring MINGW,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring MSYS,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring CYGWIN,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring Windows_NT,$(OS)))
+ OS := WINNT
+endif
+endif
+endif
+endif
+
+# Define the program used for compiling Fortran source files:
+ifdef FORTRAN_COMPILER
+ FC := $(FORTRAN_COMPILER)
+else
+ FC := gfortran
+endif
+
+# Define the command-line options when compiling Fortran files:
+FFLAGS ?= \
+ -std=f95 \
+ -ffree-form \
+ -O3 \
+ -Wall \
+ -Wextra \
+ -Wno-compare-reals \
+ -Wimplicit-interface \
+ -fno-underscoring \
+ -pedantic
+
+# Determine whether to generate position independent code ([1][1], [2][2]).
+#
+# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options
+# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option
+ifeq ($(OS), WINNT)
+ fPIC ?=
+else
+ fPIC ?= -fPIC
+endif
+
+# List of includes (e.g., `-I /foo/bar -I /beep/boop`):
+INCLUDE ?=
+
+# List of Fortran source files:
+SOURCE_FILES ?= ../../src/zdscal.f
+
+# List of Fortran targets:
+f_targets := benchmark.length.out
+
+
+# RULES #
+
+#/
+# Compiles Fortran source files.
+#
+# @param {string} SOURCE_FILES - list of Fortran source files
+# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop`)
+# @param {string} [FORTRAN_COMPILER] - Fortran compiler
+# @param {string} [FFLAGS] - Fortran compiler flags
+# @param {(string|void)} [fPIC] - compiler flag indicating whether to generate position independent code
+#
+# @example
+# make
+#
+# @example
+# make all
+#/
+all: $(f_targets)
+
+.PHONY: all
+
+#/
+# Compiles Fortran source files.
+#
+# @private
+# @param {string} SOURCE_FILES - list of Fortran source files
+# @param {(string|void)} INCLUDE - list of includes (e.g., `-I /foo/bar -I /beep/boop`)
+# @param {string} FC - Fortran compiler
+# @param {string} FFLAGS - Fortran compiler flags
+# @param {(string|void)} fPIC - compiler flag indicating whether to generate position independent code
+#/
+$(f_targets): %.out: %.f
+ $(QUIET) $(FC) $(FFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $<
+
+#/
+# Runs compiled benchmarks.
+#
+# @example
+# make run
+#/
+run: $(f_targets)
+ $(QUIET) ./$<
+
+.PHONY: run
+
+#/
+# Removes generated files.
+#
+# @example
+# make clean
+#/
+clean:
+ $(QUIET) -rm -f *.o *.out
+
+.PHONY: clean
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/fortran/benchmark.length.f b/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/fortran/benchmark.length.f
new file mode 100644
index 000000000000..7bcf102fd323
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/fortran/benchmark.length.f
@@ -0,0 +1,222 @@
+!>
+! @license Apache-2.0
+!
+! Copyright (c) 2025 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.
+!<
+
+!> Benchmarks.
+!
+! ## Notes
+!
+! - Written in "free form" Fortran 95.
+!
+!<
+program bench
+ implicit none
+ ! ..
+ ! Local constants:
+ character(5), parameter :: name = 'zdscal' ! if changed, be sure to adjust length
+ integer, parameter :: iterations = 10000000
+ integer, parameter :: repeats = 3
+ integer, parameter :: min = 1
+ integer, parameter :: max = 6
+ ! ..
+ ! Run the benchmarks:
+ call main()
+ ! ..
+ ! Functions:
+contains
+ ! ..
+ ! Prints the TAP version.
+ ! ..
+ subroutine print_version()
+ print '(A)', 'TAP version 13'
+ end subroutine print_version
+ ! ..
+ ! Prints the TAP summary.
+ !
+ ! @param {integer} total - total number of tests
+ ! @param {integer} passing - total number of passing tests
+ ! ..
+ subroutine print_summary( total, passing )
+ ! ..
+ ! Scalar arguments:
+ integer, intent(in) :: total, passing
+ ! ..
+ ! Local variables:
+ character(len=999) :: str, tmp
+ ! ..
+ ! Intrinsic functions:
+ intrinsic adjustl, trim
+ ! ..
+ print '(A)', '#'
+ ! ..
+ write (str, '(I15)') total ! TAP plan
+ tmp = adjustl( str )
+ print '(A,A)', '1..', trim( tmp )
+ ! ..
+ print '(A,A)', '# total ', trim( tmp )
+ ! ..
+ write (str, '(I15)') passing
+ tmp = adjustl( str )
+ print '(A,A)', '# pass ', trim( tmp )
+ ! ..
+ print '(A)', '#'
+ print '(A)', '# ok'
+ end subroutine print_summary
+ ! ..
+ ! Prints benchmarks results.
+ !
+ ! @param {integer} iterations - number of iterations
+ ! @param {double} elapsed - elapsed time in seconds
+ ! ..
+ subroutine print_results( iterations, elapsed )
+ ! ..
+ ! Scalar arguments:
+ double precision, intent(in) :: elapsed
+ integer, intent(in) :: iterations
+ ! ..
+ ! Local variables:
+ double precision :: rate
+ character(len=999) :: str, tmp
+ ! ..
+ ! Intrinsic functions:
+ intrinsic dble, adjustl, trim
+ ! ..
+ rate = dble( iterations ) / elapsed
+ ! ..
+ print '(A)', ' ---'
+ ! ..
+ write (str, '(I15)') iterations
+ tmp = adjustl( str )
+ print '(A,A)', ' iterations: ', trim( tmp )
+ ! ..
+ write (str, '(f0.9)') elapsed
+ tmp = adjustl( str )
+ print '(A,A)', ' elapsed: ', trim( tmp )
+ ! ..
+ write( str, '(f0.9)') rate
+ tmp = adjustl( str )
+ print '(A,A)', ' rate: ', trim( tmp )
+ ! ..
+ print '(A)', ' ...'
+ end subroutine print_results
+ ! ..
+ ! Runs a benchmark.
+ !
+ ! @param {integer} iterations - number of iterations
+ ! @param {integer} len - array length
+ ! @return {double} elapsed time in seconds
+ ! ..
+ double precision function benchmark( iterations, len )
+ ! ..
+ ! External functions:
+ interface
+ subroutine zdscal( N, da, zx, strideX )
+ double precision :: da
+ complex(kind=kind(0.0d0)) :: zx(*)
+ integer :: strideX, N
+ end subroutine zdscal
+ end interface
+ ! ..
+ ! Scalar arguments:
+ integer, intent(in) :: iterations, len
+ ! ..
+ ! Local scalars:
+ double precision :: elapsed, r1, r2
+ real :: t1, t2
+ integer :: i
+ ! ..
+ ! Local array:
+ complex(kind=kind(0.0d0)), allocatable :: x(:)
+ ! ..
+ ! Local scalar:
+ double precision :: da
+ ! ..
+ ! Intrinsic functions:
+ intrinsic random_number, cpu_time, cmplx
+ ! ..
+ ! Allocate array:
+ allocate( x(len) )
+ ! ..
+ call random_number( da )
+ call random_number( r2 )
+ do i = 1, len
+ call random_number( r1 )
+ call random_number( r2 )
+ x( i ) = cmplx( (r1*10000.0d0)-5000.0d0, (r2*1000.0d0)-5000.0d0, kind=kind(0.0d0) )
+ end do
+ ! ..
+ call cpu_time( t1 )
+ ! ..
+ do i = 1, iterations
+ call zdscal( len, da, x, 1 );
+ if ( x( 1 ) /= x( 1 ) ) then
+ print '(A)', 'should not return NaN'
+ exit
+ end if
+ end do
+ ! ..
+ call cpu_time( t2 )
+ ! ..
+ elapsed = t2 - t1
+ ! ..
+ if ( x( 1 ) /= x( 1 ) ) then
+ print '(A)', 'should not return NaN'
+ end if
+ ! ..
+ ! Deallocate array:
+ deallocate( x )
+ ! ..
+ benchmark = elapsed
+ return
+ end function benchmark
+ ! ..
+ ! Main execution sequence.
+ ! ..
+ subroutine main()
+ ! ..
+ ! Local variables:
+ integer :: count, iter, len, i, j
+ double precision :: elapsed
+ character(len=999) :: str, tmp
+ ! ..
+ ! Intrinsic functions:
+ intrinsic adjustl, trim
+ ! ..
+ call print_version()
+ count = 0
+ do i = min, max
+ len = 10**i
+ iter = iterations / 10**(i-1)
+ do j = 1, repeats
+ count = count + 1
+ ! ..
+ write (str, '(I15)') len
+ tmp = adjustl( str )
+ print '(A,A,A,A)', '# fortran::', name, ':len=', trim( tmp )
+ ! ..
+ elapsed = benchmark( iter, len )
+ ! ..
+ call print_results( iter, elapsed )
+ ! ..
+ write (str, '(I15)') count
+ tmp = adjustl( str )
+ print '(A,A,A)', 'ok ', trim( tmp ), ' benchmark finished'
+ end do
+ end do
+ call print_summary( count, count )
+ end subroutine main
+end program bench
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/binding.gyp b/lib/node_modules/@stdlib/blas/base/zdscal/binding.gyp
new file mode 100644
index 000000000000..08de71a2020e
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/binding.gyp
@@ -0,0 +1,265 @@
+# @license Apache-2.0
+#
+# Copyright (c) 2025 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.
+
+# A `.gyp` file for building a Node.js native add-on.
+#
+# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md
+# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md
+{
+ # List of files to include in this file:
+ 'includes': [
+ './include.gypi',
+ ],
+
+ # Define variables to be used throughout the configuration for all targets:
+ 'variables': {
+ # Target name should match the add-on export name:
+ 'addon_target_name%': 'addon',
+
+ # Fortran compiler (to override -Dfortran_compiler=):
+ 'fortran_compiler%': 'gfortran',
+
+ # Fortran compiler flags:
+ 'fflags': [
+ # Specify the Fortran standard to which a program is expected to conform:
+ '-std=f95',
+
+ # Indicate that the layout is free-form source code:
+ '-ffree-form',
+
+ # Aggressive optimization:
+ '-O3',
+
+ # Enable commonly used warning options:
+ '-Wall',
+
+ # Warn if source code contains problematic language features:
+ '-Wextra',
+
+ # Warn if a procedure is called without an explicit interface:
+ '-Wimplicit-interface',
+
+ # Do not transform names of entities specified in Fortran source files by appending underscores (i.e., don't mangle names, thus allowing easier usage in C wrappers):
+ '-fno-underscoring',
+
+ # Warn if source code contains Fortran 95 extensions and C-language constructs:
+ '-pedantic',
+
+ # Compile but do not link (output is an object file):
+ '-c',
+ ],
+
+ # Set variables based on the host OS:
+ 'conditions': [
+ [
+ 'OS=="win"',
+ {
+ # Define the object file suffix:
+ 'obj': 'obj',
+ },
+ {
+ # Define the object file suffix:
+ 'obj': 'o',
+ }
+ ], # end condition (OS=="win")
+ ], # end conditions
+ }, # end variables
+
+ # Define compile targets:
+ 'targets': [
+
+ # Target to generate an add-on:
+ {
+ # The target name should match the add-on export name:
+ 'target_name': '<(addon_target_name)',
+
+ # Define dependencies:
+ 'dependencies': [],
+
+ # Define directories which contain relevant include headers:
+ 'include_dirs': [
+ # Local include directory:
+ '<@(include_dirs)',
+ ],
+
+ # List of source files:
+ 'sources': [
+ '<@(src_files)',
+ ],
+
+ # Settings which should be applied when a target's object files are used as linker input:
+ 'link_settings': {
+ # Define libraries:
+ 'libraries': [
+ '<@(libraries)',
+ ],
+
+ # Define library directories:
+ 'library_dirs': [
+ '<@(library_dirs)',
+ ],
+ },
+
+ # C/C++ compiler flags:
+ 'cflags': [
+ # Enable commonly used warning options:
+ '-Wall',
+
+ # Aggressive optimization:
+ '-O3',
+ ],
+
+ # C specific compiler flags:
+ 'cflags_c': [
+ # Specify the C standard to which a program is expected to conform:
+ '-std=c99',
+ ],
+
+ # C++ specific compiler flags:
+ 'cflags_cpp': [
+ # Specify the C++ standard to which a program is expected to conform:
+ '-std=c++11',
+ ],
+
+ # Linker flags:
+ 'ldflags': [],
+
+ # Apply conditions based on the host OS:
+ 'conditions': [
+ [
+ 'OS=="mac"',
+ {
+ # Linker flags:
+ 'ldflags': [
+ '-undefined dynamic_lookup',
+ '-Wl,-no-pie',
+ '-Wl,-search_paths_first',
+ ],
+ },
+ ], # end condition (OS=="mac")
+ [
+ 'OS!="win"',
+ {
+ # C/C++ flags:
+ 'cflags': [
+ # Generate platform-independent code:
+ '-fPIC',
+ ],
+ },
+ ], # end condition (OS!="win")
+ ], # end conditions
+
+ # Define custom build actions for particular inputs:
+ 'rules': [
+ {
+ # Define a rule for processing Fortran files:
+ 'extension': 'f',
+
+ # Define the pathnames to be used as inputs when performing processing:
+ 'inputs': [
+ # Full path of the current input:
+ '<(RULE_INPUT_PATH)'
+ ],
+
+ # Define the outputs produced during processing:
+ 'outputs': [
+ # Store an output object file in a directory for placing intermediate results (only accessible within a single target):
+ '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).<(obj)'
+ ],
+
+ # Define the rule for compiling Fortran based on the host OS:
+ 'conditions': [
+ [
+ 'OS=="win"',
+
+ # Rule to compile Fortran on Windows:
+ {
+ 'rule_name': 'compile_fortran_windows',
+ 'message': 'Compiling Fortran file <(RULE_INPUT_PATH) on Windows...',
+
+ 'process_outputs_as_sources': 0,
+
+ # Define the command-line invocation:
+ 'action': [
+ '<(fortran_compiler)',
+ '<@(fflags)',
+ '<@(_inputs)',
+ '-o',
+ '<@(_outputs)',
+ ],
+ },
+
+ # Rule to compile Fortran on non-Windows:
+ {
+ 'rule_name': 'compile_fortran_linux',
+ 'message': 'Compiling Fortran file <(RULE_INPUT_PATH) on Linux...',
+
+ 'process_outputs_as_sources': 1,
+
+ # Define the command-line invocation:
+ 'action': [
+ '<(fortran_compiler)',
+ '<@(fflags)',
+ '-fPIC', # generate platform-independent code
+ '<@(_inputs)',
+ '-o',
+ '<@(_outputs)',
+ ],
+ }
+ ], # end condition (OS=="win")
+ ], # end conditions
+ }, # end rule (extension=="f")
+ ], # end rules
+ }, # end target <(addon_target_name)
+
+ # Target to copy a generated add-on to a standard location:
+ {
+ 'target_name': 'copy_addon',
+
+ # Declare that the output of this target is not linked:
+ 'type': 'none',
+
+ # Define dependencies:
+ 'dependencies': [
+ # Require that the add-on be generated before building this target:
+ '<(addon_target_name)',
+ ],
+
+ # Define a list of actions:
+ 'actions': [
+ {
+ 'action_name': 'copy_addon',
+ 'message': 'Copying addon...',
+
+ # Explicitly list the inputs in the command-line invocation below:
+ 'inputs': [],
+
+ # Declare the expected outputs:
+ 'outputs': [
+ '<(addon_output_dir)/<(addon_target_name).node',
+ ],
+
+ # Define the command-line invocation:
+ 'action': [
+ 'cp',
+ '<(PRODUCT_DIR)/<(addon_target_name).node',
+ '<(addon_output_dir)/<(addon_target_name).node',
+ ],
+ },
+ ], # end actions
+ }, # end target copy_addon
+ ], # end targets
+}
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/docs/repl.txt b/lib/node_modules/@stdlib/blas/base/zdscal/docs/repl.txt
new file mode 100644
index 000000000000..821162e6099b
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/docs/repl.txt
@@ -0,0 +1,122 @@
+
+{{alias}}( N, da, zx, strideX )
+ Scales a double-precision complex floating-point vector by a double-
+ precision floating-point constant.
+
+ The `N` and stride parameters determine how values from `zx` are scaled by
+ `da`.
+
+ Indexing is relative to the first index. To introduce an offset, use typed
+ array views.
+
+ If `N` or `strideX` is less than or equal to `0`, the function returns `zx`
+ unchanged.
+
+
+ Parameters
+ ----------
+ N: integer
+ Number of indexed elements.
+
+ da: double
+ Double-precision constant.
+
+ zx: Complex128Array
+ Input array.
+
+ strideX: integer
+ Index increment for `zx`.
+
+ Returns
+ -------
+ zx: Complex128Array
+ Input array.
+
+ Examples
+ --------
+ // Standard usage:
+ > var zx = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0 ] );
+ > var da = 2.0;
+ > {{alias}}( 2, da, zx, 1 );
+ > var z = zx.get( 0 );
+ > var re = {{alias:@stdlib/complex/float64/real}}( z )
+ 2.0
+ > var im = {{alias:@stdlib/complex/float64/imag}}( z )
+ 4.0
+
+ // Advanced indexing:
+ > zx = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+ > da = 2.0;
+ > {{alias}}( 2, da, zx, 2 );
+ > z = zx.get( 0 );
+ > re = {{alias:@stdlib/complex/float64/real}}( z )
+ 2.0
+ > im = {{alias:@stdlib/complex/float64/imag}}( z )
+ 4.0
+
+ // Using typed array views:
+ > var zx0 = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+ > var zx1 = new {{alias:@stdlib/array/complex128}}( zx0.buffer, zx0.BYTES_PER_ELEMENT*1 );
+ > var da = 2.0;
+ > {{alias}}( 2, da, zx1, 1 );
+ > z = zx0.get( 1 );
+ > re = {{alias:@stdlib/complex/float64/real}}( z )
+ 6.0
+ > im = {{alias:@stdlib/complex/float64/imag}}( z )
+ 8.0
+
+
+{{alias}}.ndarray( N, da, zx, strideX, offsetX )
+ Scales a double-precision complex floating-point vector by a double-
+ precision floating-point constant using alternative indexing semantics.
+
+ While typed array views mandate a view offset based on the underlying
+ buffer, the offset parameter supports indexing semantics based on a starting
+ index.
+
+ Parameters
+ ----------
+ N: integer
+ Number of indexed elements.
+
+ da: number
+ Double-precision constant.
+
+ zx: Complex128Array
+ Input array.
+
+ strideX: integer
+ Index increment for `zx`.
+
+ offsetX: integer
+ Starting index for `zx`.
+
+ Returns
+ -------
+ zx: Complex128Array
+ Input array.
+
+ Examples
+ --------
+ // Standard usage:
+ > var zx = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0 ] );
+ > var da = 2.0;
+ > {{alias}}.ndarray( 2, da, zx, 1, 0 );
+ > var z = zx.get( 0 );
+ > var re = {{alias:@stdlib/complex/float64/real}}( z )
+ 2.0
+ > var im = {{alias:@stdlib/complex/float64/imag}}( z )
+ 4.0
+
+ // Advanced indexing:
+ > zx = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ > da = 2.0;
+ > {{alias}}.ndarray( 2, da, zx, 1, 2 );
+ > z = zx.get( 2 );
+ > re = {{alias:@stdlib/complex/float64/real}}( z )
+ 10.0
+ > im = {{alias:@stdlib/complex/float64/imag}}( z )
+ 12.0
+
+ See Also
+ --------
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/base/zdscal/docs/types/index.d.ts
new file mode 100644
index 000000000000..28a3ca87dec6
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/docs/types/index.d.ts
@@ -0,0 +1,142 @@
+/*
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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.
+*/
+
+// TypeScript Version: 4.1
+
+///
+
+import { Complex128Array } from '@stdlib/types/array';
+
+/**
+* Interface describing `zdscal`.
+*/
+interface Routine {
+ /**
+ * Scales a double-precision complex floating-point vector by a double-precision floating-point constant.
+ *
+ * @param N - number of indexed elements
+ * @param za - scalar constant
+ * @param zx - input array
+ * @param strideX - `zx` stride length
+ * @returns input array
+ *
+ * @example
+ * var Complex128Array = require( '@stdlib/array/complex128' );
+ * var real = require( '@stdlib/complex/float64/real' );
+ * var imag = require( '@stdlib/complex/float64/imag' );
+ *
+ * var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+ *
+ * zdscal( 3, 2.0, zx, 1 );
+ *
+ * var z = zx.get( 0 );
+ * // returns
+ *
+ * var re = real( z );
+ * // returns -2.0
+ *
+ * var im = imag( z );
+ * // returns 6.0
+ */
+ ( N: number, da: number, zx: Complex128Array, strideX: number ): Complex128Array;
+
+ /**
+ * Scales a double-precision complex floating-point vector by a double-precision floating-point constant.
+ *
+ * @param N - number of indexed elements
+ * @param da - scalar constant
+ * @param zx - input array
+ * @param strideX - `zx` stride length
+ * @param offsetX - starting index for `zx`
+ * @returns input array
+ *
+ * @example
+ * var Complex128Array = require( '@stdlib/array/complex128' );
+ * var real = require( '@stdlib/complex/float64/real' );
+ * var imag = require( '@stdlib/complex/float64/imag' );
+ *
+ * var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+ * var da = 2.0;
+ *
+ * zdscal.ndarray( 3, da, zx, 1, 0 );
+ *
+ * var z = zx.get( 0 );
+ * // returns
+ *
+ * var re = real( z );
+ * // returns -2.0
+ *
+ * var im = imag( z );
+ * // returns 6.0
+ */
+ ndarray( N: number, da: number, zx: Complex128Array, strideX: number, offsetX: number ): Complex128Array;
+}
+
+/**
+* Scales a double-precision complex floating-point vector by a double-precision floating-point constant.
+*
+* @param N - number of indexed elements
+* @param da - scalar constant
+* @param zx - input array
+* @param strideX - `zx` stride length
+* @returns input array
+*
+* @example
+* var Complex128Array = require( '@stdlib/array/complex128' );
+* var real = require( '@stdlib/complex/float64/real' );
+* var imag = require( '@stdlib/complex/float64/imag' );
+*
+* var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+* var da = 2.0;
+*
+* zdscal( 3, za, zx, 1 );
+*
+* var z = zx.get( 1 );
+* // returns
+*
+* var re = real( z );
+* // returns -2.0
+*
+* var im = imag( z );
+* // returns 14.0
+*
+* @example
+* var Complex128Array = require( '@stdlib/array/complex128' );
+* var real = require( '@stdlib/complex/float64/real' );
+* var imag = require( '@stdlib/complex/float64/imag' );
+*
+* var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+* var da = 2.0;
+*
+* zdscal.ndarray( 2, da, zx, 1, 1 );
+*
+* var z = zx.get( 1 );
+* // returns
+*
+* var re = real( z );
+* // returns -2.0
+*
+* var im = imag( z );
+* // returns 14.0
+*/
+declare var zdscal: Routine;
+
+
+// EXPORTS //
+
+export = zdscal;
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/docs/types/test.ts b/lib/node_modules/@stdlib/blas/base/zdscal/docs/types/test.ts
new file mode 100644
index 000000000000..7e0eabc767d7
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/docs/types/test.ts
@@ -0,0 +1,202 @@
+/*
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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.
+*/
+
+import Complex128Array = require( '@stdlib/array/complex128' );
+import Complex128 = require( '@stdlib/complex/float64/ctor' );
+import zdscal = require( './index' );
+
+
+// TESTS //
+
+// The function returns a Complex128Array...
+{
+ const zx = new Complex128Array( 10 );
+ const za = new Complex128( 2.0, 2.0 );
+
+ zdscal( zx.length, za, zx, 1 ); // $ExpectType Complex128Array
+}
+
+// The compiler throws an error if the function is provided a first argument which is not a number...
+{
+ const zx = new Complex128Array( 10 );
+ const za = new Complex128( 2.0, 2.0 );
+
+ zdscal( '10', za, zx, 1 ); // $EzxpectError
+ zdscal( true, za, zx, 1 ); // $ExpectError
+ zdscal( false, za, zx, 1 ); // $ExpectError
+ zdscal( null, za, zx, 1 ); // $ExpectError
+ zdscal( undefined, za, zx, 1 ); // $ExpectError
+ zdscal( [], za, zx, 1 ); // $ExpectError
+ zdscal( {}, za, zx, 1 ); // $ExpectError
+ zdscal( ( zx: number ): number => zx, za, zx, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a second argument which is not a number...
+{
+ const zx = new Complex128Array( 10 );
+
+ zdscal( zx.length, new Complex128( 1, 2 ), zx, 1 ); // $ExpectError
+ zdscal( zx.length, '10', zx, 1 ); // $ExpectError
+ zdscal( zx.length, true, zx, 1 ); // $ExpectError
+ zdscal( zx.length, false, zx, 1 ); // $ExpectError
+ zdscal( zx.length, null, zx, 1 ); // $ExpectError
+ zdscal( zx.length, undefined, zx, 1 ); // $ExpectError
+ zdscal( zx.length, [ '1' ], zx, 1 ); // $ExpectError
+ zdscal( zx.length, {}, zx, 1 ); // $ExpectError
+ zdscal( zx.length, ( zx: number ): number => zx, zx, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a third argument which is not a Complex128Array...
+{
+ const zx = new Complex128Array( 10 );
+ const za = new Complex128( 2.0, 2.0 );
+
+ zdscal( zx.length, za, 10, 1 ); // $ExpectError
+ zdscal( zx.length, za, '10', 1 ); // $ExpectError
+ zdscal( zx.length, za, true, 1 ); // $ExpectError
+ zdscal( zx.length, za, false, 1 ); // $ExpectError
+ zdscal( zx.length, za, null, 1 ); // $ExpectError
+ zdscal( zx.length, za, undefined, 1 ); // $ExpectError
+ zdscal( zx.length, za, [ '1' ], 1 ); // $ExpectError
+ zdscal( zx.length, za, {}, 1 ); // $ExpectError
+ zdscal( zx.length, za, ( zx: number ): number => zx, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a fourth argument which is not a number...
+{
+ const zx = new Complex128Array( 10 );
+ const za = new Complex128( 2.0, 2.0 );
+
+ zdscal( zx.length, za, zx, '10' ); // $ExpectError
+ zdscal( zx.length, za, zx, true ); // $ExpectError
+ zdscal( zx.length, za, zx, false ); // $ExpectError
+ zdscal( zx.length, za, zx, null ); // $ExpectError
+ zdscal( zx.length, za, zx, undefined ); // $ExpectError
+ zdscal( zx.length, za, zx, [] ); // $ExpectError
+ zdscal( zx.length, za, zx, {} ); // $ExpectError
+ zdscal( zx.length, za, zx, ( zx: number ): number => zx ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided an unsupported number of arguments...
+{
+ const zx = new Complex128Array( 10 );
+ const za = new Complex128( 2.0, 2.0 );
+
+ zdscal(); // $ExpectError
+ zdscal( zx.length ); // $ExpectError
+ zdscal( zx.length, za ); // $ExpectError
+ zdscal( zx.length, za, zx ); // $ExpectError
+ zdscal( zx.length, za, zx, 1, 10 ); // $ExpectError
+}
+
+// Attached to main export is an `ndarray` method which returns a Complex128Array...
+{
+ const zx = new Complex128Array( 10 );
+ const za = new Complex128( 2.0, 2.0 );
+
+ zdscal.ndarray( zx.length, za, zx, 1, 0 ); // $ExpectType Complex128Array
+}
+
+// The compiler throws an error if the `ndarray` method is provided a first argument which is not a number...
+{
+ const zx = new Complex128Array( 10 );
+ const za = new Complex128( 2.0, 2.0 );
+
+ zdscal.ndarray( '10', za, zx, 1, 0 ); // $ExpectError
+ zdscal.ndarray( true, za, zx, 1, 0 ); // $ExpectError
+ zdscal.ndarray( false, za, zx, 1, 0 ); // $ExpectError
+ zdscal.ndarray( null, za, zx, 1, 0 ); // $ExpectError
+ zdscal.ndarray( undefined, za, zx, 1, 0 ); // $ExpectError
+ zdscal.ndarray( [], za, zx, 1, 0 ); // $ExpectError
+ zdscal.ndarray( {}, za, zx, 1, 0 ); // $ExpectError
+ zdscal.ndarray( ( zx: number ): number => zx, za, zx, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a second argument which is not a number...
+{
+ const zx = new Complex128Array( 10 );
+
+ zdscal.ndarray( zx.length, new Complex128( 1, 2 ), zx, 1, 0 ); // $ExpectError
+ zdscal.ndarray( zx.length, '10', zx, 1, 0 ); // $ExpectError
+ zdscal.ndarray( zx.length, true, zx, 1, 0 ); // $ExpectError
+ zdscal.ndarray( zx.length, false, zx, 1, 0 ); // $ExpectError
+ zdscal.ndarray( zx.length, null, zx, 1, 0 ); // $ExpectError
+ zdscal.ndarray( zx.length, undefined, zx, 1, 0 ); // $ExpectError
+ zdscal.ndarray( zx.length, [ '1' ], zx, 1, 0 ); // $ExpectError
+ zdscal.ndarray( zx.length, {}, zx, 1, 0 ); // $ExpectError
+ zdscal.ndarray( zx.length, ( zx: number ): number => zx, zx, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a third argument which is not a Complex128Array...
+{
+ const zx = new Complex128Array( 10 );
+ const za = new Complex128( 2.0, 2.0 );
+
+ zdscal( zx.length, za, 10, 1, 0 ); // $ExpectError
+ zdscal( zx.length, za, '10', 1, 0 ); // $ExpectError
+ zdscal( zx.length, za, true, 1, 0 ); // $ExpectError
+ zdscal( zx.length, za, false, 1, 0 ); // $ExpectError
+ zdscal( zx.length, za, null, 1, 0 ); // $ExpectError
+ zdscal( zx.length, za, undefined, 1, 0 ); // $ExpectError
+ zdscal( zx.length, za, [ '1' ], 1, 0 ); // $ExpectError
+ zdscal( zx.length, za, {}, 1, 0 ); // $ExpectError
+ zdscal( zx.length, za, ( zx: number ): number => zx, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a fourth argument which is not a number...
+{
+ const zx = new Complex128Array( 10 );
+ const za = new Complex128( 2.0, 2.0 );
+
+ zdscal.ndarray( zx.length, za, zx, '10', 0 ); // $ExpectError
+ zdscal.ndarray( zx.length, za, zx, true, 0 ); // $ExpectError
+ zdscal.ndarray( zx.length, za, zx, false, 0 ); // $ExpectError
+ zdscal.ndarray( zx.length, za, zx, null, 0 ); // $ExpectError
+ zdscal.ndarray( zx.length, za, zx, undefined, 0 ); // $ExpectError
+ zdscal.ndarray( zx.length, za, zx, [], 0 ); // $ExpectError
+ zdscal.ndarray( zx.length, za, zx, {}, 0 ); // $ExpectError
+ zdscal.ndarray( zx.length, za, zx, ( zx: number ): number => zx, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a fifth argument which is not a number...
+{
+ const zx = new Complex128Array( 10 );
+ const za = new Complex128( 2.0, 2.0 );
+
+ zdscal.ndarray( zx.length, za, zx, 1, '10' ); // $ExpectError
+ zdscal.ndarray( zx.length, za, zx, 1, true ); // $ExpectError
+ zdscal.ndarray( zx.length, za, zx, 1, false ); // $ExpectError
+ zdscal.ndarray( zx.length, za, zx, 1, null ); // $ExpectError
+ zdscal.ndarray( zx.length, za, zx, 1, undefined ); // $ExpectError
+ zdscal.ndarray( zx.length, za, zx, 1, [] ); // $ExpectError
+ zdscal.ndarray( zx.length, za, zx, 1, {} ); // $ExpectError
+ zdscal.ndarray( zx.length, za, zx, 1, ( zx: number ): number => zx ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided an unsupported number of arguments...
+{
+ const zx = new Complex128Array( 10 );
+ const za = new Complex128( 2.0, 2.0 );
+
+ zdscal.ndarray(); // $ExpectError
+ zdscal.ndarray( zx.length ); // $ExpectError
+ zdscal.ndarray( zx.length, za ); // $ExpectError
+ zdscal.ndarray( zx.length, za, zx ); // $ExpectError
+ zdscal.ndarray( zx.length, za, zx, 1 ); // $ExpectError
+ zdscal.ndarray( zx.length, za, zx, 1, 0, 10 ); // $ExpectError
+}
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/examples/c/Makefile b/lib/node_modules/@stdlib/blas/base/zdscal/examples/c/Makefile
new file mode 100644
index 000000000000..25ced822f96a
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/examples/c/Makefile
@@ -0,0 +1,146 @@
+#/
+# @license Apache-2.0
+#
+# Copyright (c) 2025 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.
+#/
+
+# VARIABLES #
+
+ifndef VERBOSE
+ QUIET := @
+else
+ QUIET :=
+endif
+
+# Determine the OS ([1][1], [2][2]).
+#
+# [1]: https://en.wikipedia.org/wiki/Uname#Examples
+# [2]: http://stackoverflow.com/a/27776822/2225624
+OS ?= $(shell uname)
+ifneq (, $(findstring MINGW,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring MSYS,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring CYGWIN,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring Windows_NT,$(OS)))
+ OS := WINNT
+endif
+endif
+endif
+endif
+
+# Define the program used for compiling C source files:
+ifdef C_COMPILER
+ CC := $(C_COMPILER)
+else
+ CC := gcc
+endif
+
+# Define the command-line options when compiling C files:
+CFLAGS ?= \
+ -std=c99 \
+ -O3 \
+ -Wall \
+ -pedantic
+
+# Determine whether to generate position independent code ([1][1], [2][2]).
+#
+# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options
+# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option
+ifeq ($(OS), WINNT)
+ fPIC ?=
+else
+ fPIC ?= -fPIC
+endif
+
+# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`):
+INCLUDE ?=
+
+# List of source files:
+SOURCE_FILES ?=
+
+# List of libraries (e.g., `-lopenblas -lpthread`):
+LIBRARIES ?=
+
+# List of library paths (e.g., `-L /foo/bar -L /beep/boop`):
+LIBPATH ?=
+
+# List of C targets:
+c_targets := example.out
+
+
+# RULES #
+
+#/
+# Compiles source files.
+#
+# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`)
+# @param {string} [CFLAGS] - C compiler options
+# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
+# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`)
+# @param {string} [SOURCE_FILES] - list of source files
+# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`)
+# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`)
+#
+# @example
+# make
+#
+# @example
+# make all
+#/
+all: $(c_targets)
+
+.PHONY: all
+
+#/
+# Compiles C source files.
+#
+# @private
+# @param {string} CC - C compiler (e.g., `gcc`)
+# @param {string} CFLAGS - C compiler options
+# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
+# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`)
+# @param {string} SOURCE_FILES - list of source files
+# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`)
+# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`)
+#/
+$(c_targets): %.out: %.c
+ $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES)
+
+#/
+# Runs compiled examples.
+#
+# @example
+# make run
+#/
+run: $(c_targets)
+ $(QUIET) ./$<
+
+.PHONY: run
+
+#/
+# Removes generated files.
+#
+# @example
+# make clean
+#/
+clean:
+ $(QUIET) -rm -f *.o *.out
+
+.PHONY: clean
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/examples/c/example.c b/lib/node_modules/@stdlib/blas/base/zdscal/examples/c/example.c
new file mode 100644
index 000000000000..5a9e11348b41
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/examples/c/example.c
@@ -0,0 +1,43 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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.
+*/
+
+#include "stdlib/blas/base/zdscal.h"
+#include "stdlib/complex/float64/ctor.h"
+#include
+
+int main( void ) {
+ // Create a strided array of interleaved real and imaginary components:
+ double zx[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
+
+ // Create a double-precision scalar:
+ const double da = 2.0;
+
+ // Specify the number of elements:
+ const int N = 4;
+
+ // Specify stride length:
+ const int strideX = 1;
+
+ // Scale the elements of the array:
+ c_zdscal( N, da, (void *)zx, strideX );
+
+ // Print the result:
+ for ( int i = 0; i < N; i++ ) {
+ printf( "zx[ %i ] = %lf + %lfj\n", i, zx[ i*2 ], zx[ (i*2)+1 ] );
+ }
+}
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/examples/index.js b/lib/node_modules/@stdlib/blas/base/zdscal/examples/index.js
new file mode 100644
index 000000000000..28d684f03e77
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/examples/index.js
@@ -0,0 +1,38 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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';
+
+var discreteUniform = require( '@stdlib/random/base/discrete-uniform' );
+var filledarrayBy = require( '@stdlib/array/filled-by' );
+var Complex128 = require( '@stdlib/complex/float64/ctor' );
+var zdscal = require( '@stdlib/blas/base/zdscal' );
+
+function rand() {
+ return new Complex128( discreteUniform( 0, 10 ), discreteUniform( -5, 5 ) );
+}
+
+var zx = filledarrayBy( 10, 'complex128', rand );
+console.log( zx.toString() );
+
+var da = 2.0;
+console.log( da );
+
+// Scale elements from `zx` by `za`:
+zdscal( zx.length, da, zx, 1 );
+console.log( zx.get( zx.length-1 ).toString() );
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/include.gypi b/lib/node_modules/@stdlib/blas/base/zdscal/include.gypi
new file mode 100644
index 000000000000..4217944b5d20
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/include.gypi
@@ -0,0 +1,70 @@
+# @license Apache-2.0
+#
+# Copyright (c) 2025 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.
+
+# A GYP include file for building a Node.js native add-on.
+#
+# Note that nesting variables is required due to how GYP processes a configuration. Any variables defined within a nested 'variables' section is defined in the outer scope. Thus, conditions in the outer variable scope are free to use these variables without running into "variable undefined" errors.
+#
+# Main documentation:
+#
+# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md
+# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md
+#
+# Variable nesting hacks:
+#
+# [3]: https://chromium.googlesource.com/external/skia/gyp/+/master/common_variables.gypi
+# [4]: https://src.chromium.org/viewvc/chrome/trunk/src/build/common.gypi?revision=127004
+{
+ # Define variables to be used throughout the configuration for all targets:
+ 'variables': {
+ 'variables': {
+ # Host BLAS library (to override -Dblas=):
+ 'blas%': '',
+
+ # Path to BLAS library (to override -Dblas_dir=):
+ 'blas_dir%': '',
+ }, # end variables
+
+ # Source directory:
+ 'src_dir': './src',
+
+ # Include directories:
+ 'include_dirs': [
+ '<@(blas_dir)',
+ '
+*
+* var re = real( z );
+* // returns -2.0
+*
+* var im = imag( z );
+* // returns 6.0
+*
+* @example
+* var Complex128Array = require( '@stdlib/array/complex128' );
+* var real = require( '@stdlib/complex/float64/real' );
+* var imag = require( '@stdlib/complex/float64/imag' );
+* var zdscal = require( '@stdlib/blas/base/zdscal' );
+*
+* var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+* var da = 2.0;
+*
+* zdscal.ndarray( 3, da zx, 1, 0 );
+*
+* var z = zx.get( 0 );
+* // returns
+*
+* var re = real( z );
+* // returns -2.0
+*
+* var im = imag( z );
+* // returns 6.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 zdscal;
+var tmp = tryRequire( join( __dirname, './native.js' ) );
+if ( isError( tmp ) ) {
+ zdscal = main;
+} else {
+ zdscal = tmp;
+}
+
+
+// EXPORTS //
+
+module.exports = zdscal;
+
+// exports: { "ndarray": "zdscal.ndarray" }
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/lib/main.js b/lib/node_modules/@stdlib/blas/base/zdscal/lib/main.js
new file mode 100644
index 000000000000..2d88da0211e0
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/lib/main.js
@@ -0,0 +1,35 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 zdscal = require( './zdscal.js' );
+var ndarray = require( './ndarray.js' );
+
+
+// MAIN //
+
+setReadOnly( zdscal, 'ndarray', ndarray );
+
+
+// EXPORTS //
+
+module.exports = zdscal;
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/lib/native.js b/lib/node_modules/@stdlib/blas/base/zdscal/lib/native.js
new file mode 100644
index 000000000000..4badc2e583b8
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/lib/native.js
@@ -0,0 +1,35 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 zdscal = require( './zdscal.native.js' );
+var ndarray = require( './ndarray.native.js' );
+
+
+// MAIN //
+
+setReadOnly( zdscal, 'ndarray', ndarray );
+
+
+// EXPORTS //
+
+module.exports = zdscal;
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/lib/ndarray.js b/lib/node_modules/@stdlib/blas/base/zdscal/lib/ndarray.js
new file mode 100644
index 000000000000..9e0f4615f07d
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/lib/ndarray.js
@@ -0,0 +1,82 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 reinterpret = require( '@stdlib/strided/base/reinterpret-complex128' );
+
+
+// MAIN //
+
+/**
+* Scales a double-precision complex floating-point vector by a double-precision complex floating-point constant.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @param {number} da - constant
+* @param {Complex128Array} zx - input array
+* @param {integer} strideX - `zx` stride length
+* @param {NonNegativeInteger} offsetX - starting `zx` index
+* @returns {Complex128Array} input array
+*
+* @example
+* var Complex128Array = require( '@stdlib/array/complex128' );
+* var Complex128 = require( '@stdlib/complex/float64/ctor' );
+* var real = require( '@stdlib/complex/float64/real' );
+* var imag = require( '@stdlib/complex/float64/imag' );
+*
+* var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+* var da = 2.0;
+*
+* zdscal( 3, da, zx, 1, 0 );
+*
+* var z = zx.get( 0 );
+* // returns
+*
+* var re = real( z );
+* // returns 2.0
+*
+* var im = imag( z );
+* // returns 4.0
+*/
+function zdscal( N, da, zx, strideX, offsetX ) {
+ var zx64;
+ var ix;
+ var sx;
+ var i;
+
+ zx64 = reinterpret( zx, 0 );
+
+ if ( N <= 0 || strideX <= 0 || da === 1.0 ) {
+ return zx;
+ }
+ ix = offsetX*2;
+ sx = strideX*2;
+ for ( i = 0; i < N; i++ ) {
+ zx64[ ix ] *= da;
+ zx64[ ix+1 ] *= da;
+ ix += sx;
+ }
+ return zx;
+}
+
+
+// EXPORTS //
+
+module.exports = zdscal;
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/lib/ndarray.native.js b/lib/node_modules/@stdlib/blas/base/zdscal/lib/ndarray.native.js
new file mode 100644
index 000000000000..4dfecba4b99a
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/lib/ndarray.native.js
@@ -0,0 +1,71 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 reinterpret = require( '@stdlib/strided/base/reinterpret-complex128' );
+var minViewBufferIndex = require( '@stdlib/strided/base/min-view-buffer-index' );
+var addon = require( './../src/addon.node' );
+
+
+// MAIN //
+
+/**
+* Scales a double-precision complex floating-point vector by a double-precision floating-point constant.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @param {number} da - scalar constant
+* @param {Complex128Array} zx - input array
+* @param {integer} strideX - `zx` stride length
+* @param {NonNegativeInteger} offsetX - starting `zx` index
+* @returns {Complex128Array} input array
+*
+* @example
+* var Complex128Array = require( '@stdlib/array/complex128' );
+* var Complex128 = require( '@stdlib/complex/float64/ctor' );
+* var real = require( '@stdlib/complex/float64/real' );
+* var imag = require( '@stdlib/complex/float64/imag' );
+*
+* var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+* var da = 2.0;
+*
+* zdscal( zx.length, da, zx, 1, 0 );
+*
+* var z = zx.get( 0 );
+* // returns
+*
+* var re = real( z );
+* // returns 2.0
+*
+* var im = imag( z );
+* // returns 4.0
+*/
+function zdscal( N, da, zx, strideX, offsetX ) {
+ var viewZX;
+ offsetX = minViewBufferIndex( N, strideX, offsetX );
+ viewZX = reinterpret( zx, offsetX );
+ addon( N, da, viewZX, strideX );
+ return zx;
+}
+
+
+// EXPORTS //
+
+module.exports = zdscal;
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/lib/zdscal.js b/lib/node_modules/@stdlib/blas/base/zdscal/lib/zdscal.js
new file mode 100644
index 000000000000..2809a210aa35
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/lib/zdscal.js
@@ -0,0 +1,93 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 reinterpret = require( '@stdlib/strided/base/reinterpret-complex128' );
+
+
+// MAIN //
+
+/**
+* Scales a double-precision complex floating-point vector by a double-precision floating-point constant.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @param {number} da - constant
+* @param {Complex128Array} zx - input array
+* @param {integer} strideX - `zx` stride length
+* @returns {Complex128Array} input array
+*
+* @example
+* var Complex128Array = require( '@stdlib/array/complex128' );
+* var real = require( '@stdlib/complex/float64/real' );
+* var imag = require( '@stdlib/complex/float64/imag' );
+*
+* var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+* var da = 2.0;
+*
+* zdscal( 3, da, zx, 1 );
+*
+* var z = zx.get( 0 );
+* // returns
+*
+* var re = real( z );
+* // returns 2.0
+*
+* var im = imag( z );
+* // returns 4.0
+*/
+function zdscal( N, da, zx, strideX ) {
+ var zx64;
+ var sx;
+ var ix;
+ var i;
+
+ if ( N <= 0 || strideX <= 0 || da === 1.0 ) {
+ return zx;
+ }
+
+ zx64 = reinterpret( zx, 0 );
+
+ if ( strideX === 1 ) {
+ // Code for stride equal to `1`...
+ ix = 0;
+ sx = 2;
+ for ( i = 0; i < N; i++ ) {
+ zx64[ ix ] *= da;
+ zx64[ ix+1 ] *= da;
+ ix += sx;
+ }
+ return zx;
+ }
+ // Code for stride not equal to `1`...
+ ix = 0;
+ sx = strideX * 2;
+ for ( i = 0; i < N; i++ ) {
+ zx64[ ix ] *= da;
+ zx64[ ix+1 ] *= da;
+ ix += sx;
+ }
+ return zx;
+}
+
+
+// EXPORTS //
+
+module.exports = zdscal;
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/lib/zdscal.native.js b/lib/node_modules/@stdlib/blas/base/zdscal/lib/zdscal.native.js
new file mode 100644
index 000000000000..1578fc541977
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/lib/zdscal.native.js
@@ -0,0 +1,66 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 reinterpret = require( '@stdlib/strided/base/reinterpret-complex128' );
+var addon = require( './../src/addon.node' );
+
+
+// MAIN //
+
+/**
+* Scales a double-precision complex floating-point vector by a double-precision complex floating-point constant.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @param {number} da - scalar constant
+* @param {Complex128Array} zx - input array
+* @param {integer} strideX - `zx` stride length
+* @returns {Complex128Array} input array
+*
+* @example
+* var Complex128Array = require( '@stdlib/array/complex128' );
+* var real = require( '@stdlib/complex/float64/real' );
+* var imag = require( '@stdlib/complex/float64/imag' );
+*
+* var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+* var da = 2.0;
+*
+* zdscal( zx.length, da, zx, 1 );
+*
+* var z = zx.get( 0 );
+* // returns
+*
+* var re = real( z );
+* // returns 2.0
+*
+* var im = imag( z );
+* // returns 4.0
+*/
+function zdscal( N, da, zx, strideX ) {
+ var viewZX = reinterpret( zx, 0 );
+ addon( N, da, viewZX, strideX );
+ return zx;
+}
+
+
+// EXPORTS //
+
+module.exports = zdscal;
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/manifest.json b/lib/node_modules/@stdlib/blas/base/zdscal/manifest.json
new file mode 100644
index 000000000000..99d9a9ebcb5f
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/manifest.json
@@ -0,0 +1,436 @@
+{
+ "options": {
+ "task": "build",
+ "os": "linux",
+ "blas": "",
+ "wasm": false
+ },
+ "fields": [
+ {
+ "field": "src",
+ "resolve": true,
+ "relative": true
+ },
+ {
+ "field": "include",
+ "resolve": true,
+ "relative": true
+ },
+ {
+ "field": "libraries",
+ "resolve": false,
+ "relative": false
+ },
+ {
+ "field": "libpath",
+ "resolve": true,
+ "relative": false
+ }
+ ],
+ "confs": [
+ {
+ "task": "build",
+ "os": "linux",
+ "blas": "",
+ "wasm": false,
+ "src": [
+ "./src/zdscal.f",
+ "./src/zdscal_f.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/napi/export",
+ "@stdlib/napi/argv",
+ "@stdlib/napi/argv-int64",
+ "@stdlib/napi/argv-strided-complex128array",
+ "@stdlib/napi/argv-complex128",
+ "@stdlib/complex/float64/ctor"
+ ]
+ },
+ {
+ "task": "benchmark",
+ "os": "linux",
+ "blas": "",
+ "wasm": false,
+ "src": [
+ "./src/zdscal.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/complex/float64/ctor"
+ ]
+ },
+ {
+ "task": "examples",
+ "os": "linux",
+ "blas": "",
+ "wasm": false,
+ "src": [
+ "./src/zdscal.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/complex/float64/ctor"
+ ]
+ },
+
+ {
+ "task": "build",
+ "os": "linux",
+ "blas": "openblas",
+ "wasm": false,
+ "src": [
+ "./src/zdscal_cblas.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [
+ "-lopenblas",
+ "-lpthread"
+ ],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/napi/export",
+ "@stdlib/napi/argv",
+ "@stdlib/napi/argv-int64",
+ "@stdlib/napi/argv-strided-complex128array",
+ "@stdlib/napi/argv-complex128",
+ "@stdlib/complex/float64/ctor"
+ ]
+ },
+ {
+ "task": "benchmark",
+ "os": "linux",
+ "blas": "openblas",
+ "wasm": false,
+ "src": [
+ "./src/zdscal_cblas.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [
+ "-lopenblas",
+ "-lpthread"
+ ],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/complex/float32/ctor"
+ ]
+ },
+ {
+ "task": "examples",
+ "os": "linux",
+ "blas": "openblas",
+ "wasm": false,
+ "src": [
+ "./src/zdscal_cblas.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [
+ "-lopenblas",
+ "-lpthread"
+ ],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/complex/float32/ctor"
+ ]
+ },
+
+ {
+ "task": "build",
+ "os": "mac",
+ "blas": "",
+ "wasm": false,
+ "src": [
+ "./src/zdscal.f",
+ "./src/zdscal_f.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/napi/export",
+ "@stdlib/napi/argv",
+ "@stdlib/napi/argv-int64",
+ "@stdlib/napi/argv-strided-complex128array",
+ "@stdlib/napi/argv-complex128",
+ "@stdlib/complex/float64/ctor"
+ ]
+ },
+ {
+ "task": "benchmark",
+ "os": "mac",
+ "blas": "",
+ "wasm": false,
+ "src": [
+ "./src/zdscal.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/complex/float64/ctor"
+ ]
+ },
+ {
+ "task": "examples",
+ "os": "mac",
+ "blas": "",
+ "wasm": false,
+ "src": [
+ "./src/zdscal.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/complex/float64/ctor"
+ ]
+ },
+
+ {
+ "task": "build",
+ "os": "mac",
+ "blas": "apple_accelerate_framework",
+ "wasm": false,
+ "src": [
+ "./src/zdscal_cblas.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [
+ "-lblas"
+ ],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/napi/export",
+ "@stdlib/napi/argv",
+ "@stdlib/napi/argv-int64",
+ "@stdlib/napi/argv-strided-complex128array",
+ "@stdlib/napi/argv-complex128",
+ "@stdlib/complex/float64/ctor"
+ ]
+ },
+ {
+ "task": "benchmark",
+ "os": "mac",
+ "blas": "apple_accelerate_framework",
+ "wasm": false,
+ "src": [
+ "./src/zdscal_cblas.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [
+ "-lblas"
+ ],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/complex/float64/ctor"
+ ]
+ },
+ {
+ "task": "examples",
+ "os": "mac",
+ "blas": "apple_accelerate_framework",
+ "wasm": false,
+ "src": [
+ "./src/zdscal_cblas.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [
+ "-lblas"
+ ],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/complex/float64/ctor"
+ ]
+ },
+
+ {
+ "task": "build",
+ "os": "mac",
+ "blas": "openblas",
+ "wasm": false,
+ "src": [
+ "./src/zdscal_cblas.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [
+ "-lopenblas",
+ "-lpthread"
+ ],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/napi/export",
+ "@stdlib/napi/argv",
+ "@stdlib/napi/argv-int64",
+ "@stdlib/napi/argv-strided-complex128array",
+ "@stdlib/napi/argv-complex128",
+ "@stdlib/complex/float64/ctor"
+ ]
+ },
+ {
+ "task": "benchmark",
+ "os": "mac",
+ "blas": "openblas",
+ "wasm": false,
+ "src": [
+ "./src/zdscal_cblas.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [
+ "-lopenblas",
+ "-lpthread"
+ ],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/complex/float64/ctor"
+ ]
+ },
+ {
+ "task": "examples",
+ "os": "mac",
+ "blas": "openblas",
+ "wasm": false,
+ "src": [
+ "./src/zdscal_cblas.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [
+ "-lopenblas",
+ "-lpthread"
+ ],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/complex/float64/ctor"
+ ]
+ },
+
+ {
+ "task": "build",
+ "os": "win",
+ "blas": "",
+ "wasm": false,
+ "src": [
+ "./src/zdscal.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/napi/export",
+ "@stdlib/napi/argv",
+ "@stdlib/napi/argv-int64",
+ "@stdlib/napi/argv-strided-complex128array",
+ "@stdlib/napi/argv-complex128",
+ "@stdlib/complex/float64/ctor"
+ ]
+ },
+ {
+ "task": "benchmark",
+ "os": "win",
+ "blas": "",
+ "wasm": false,
+ "src": [
+ "./src/zdscal.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/complex/float64/ctor"
+ ]
+ },
+ {
+ "task": "examples",
+ "os": "win",
+ "blas": "",
+ "wasm": false,
+ "src": [
+ "./src/zdscal.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/complex/float64/ctor"
+ ]
+ },
+
+ {
+ "task": "build",
+ "os": "",
+ "blas": "",
+ "wasm": true,
+ "src": [
+ "./src/zdscal.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/complex/float64/ctor"
+ ]
+ }
+ ]
+}
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/package.json b/lib/node_modules/@stdlib/blas/base/zdscal/package.json
new file mode 100644
index 000000000000..8e53524825b0
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/package.json
@@ -0,0 +1,80 @@
+{
+ "name": "@stdlib/blas/base/zdscal",
+ "version": "0.0.0",
+ "description": "Scale a double-precision complex floating-point vector by a double-precision floating-point constant.",
+ "license": "Apache-2.0",
+ "author": {
+ "name": "The Stdlib Authors",
+ "url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
+ },
+ "contributors": [
+ {
+ "name": "The Stdlib Authors",
+ "url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
+ }
+ ],
+ "main": "./lib",
+ "browser": "./lib/main.js",
+ "gypfile": true,
+ "directories": {
+ "benchmark": "./benchmark",
+ "doc": "./docs",
+ "example": "./examples",
+ "include": "./include",
+ "lib": "./lib",
+ "src": "./src",
+ "test": "./test"
+ },
+ "types": "./docs/types",
+ "scripts": {},
+ "homepage": "https://github.com/stdlib-js/stdlib",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/stdlib-js/stdlib.git"
+ },
+ "bugs": {
+ "url": "https://github.com/stdlib-js/stdlib/issues"
+ },
+ "dependencies": {},
+ "devDependencies": {},
+ "engines": {
+ "node": ">=0.10.0",
+ "npm": ">2.7.0"
+ },
+ "os": [
+ "aix",
+ "darwin",
+ "freebsd",
+ "linux",
+ "macos",
+ "openbsd",
+ "sunos",
+ "win32",
+ "windows"
+ ],
+ "keywords": [
+ "stdlib",
+ "stdmath",
+ "mathematics",
+ "math",
+ "blas",
+ "level 1",
+ "linear",
+ "algebra",
+ "subroutines",
+ "zdscal",
+ "scale",
+ "vector",
+ "typed",
+ "array",
+ "ndarray",
+ "complex",
+ "complex128",
+ "double",
+ "float64",
+ "float64array"
+ ],
+ "__stdlib__": {
+ "wasm": false
+ }
+}
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/src/Makefile b/lib/node_modules/@stdlib/blas/base/zdscal/src/Makefile
new file mode 100644
index 000000000000..7733b6180cb4
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/src/Makefile
@@ -0,0 +1,70 @@
+#/
+# @license Apache-2.0
+#
+# Copyright (c) 2025 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.
+#/
+
+# VARIABLES #
+
+ifndef VERBOSE
+ QUIET := @
+else
+ QUIET :=
+endif
+
+# Determine the OS ([1][1], [2][2]).
+#
+# [1]: https://en.wikipedia.org/wiki/Uname#Examples
+# [2]: http://stackoverflow.com/a/27776822/2225624
+OS ?= $(shell uname)
+ifneq (, $(findstring MINGW,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring MSYS,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring CYGWIN,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring Windows_NT,$(OS)))
+ OS := WINNT
+endif
+endif
+endif
+endif
+
+
+# RULES #
+
+#/
+# Removes generated files for building an add-on.
+#
+# @example
+# make clean-addon
+#/
+clean-addon:
+ $(QUIET) -rm -f *.o *.node
+
+.PHONY: clean-addon
+
+#/
+# Removes generated files.
+#
+# @example
+# make clean
+#/
+clean: clean-addon
+
+.PHONY: clean
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/src/addon.c b/lib/node_modules/@stdlib/blas/base/zdscal/src/addon.c
new file mode 100644
index 000000000000..d1b856ac71fc
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/src/addon.c
@@ -0,0 +1,44 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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.
+*/
+
+#include "stdlib/blas/base/zdscal.h"
+#include "stdlib/napi/export.h"
+#include "stdlib/napi/argv.h"
+#include "stdlib/napi/argv_int64.h"
+#include "stdlib/napi/argv_double.h"
+#include "stdlib/napi/argv_strided_complex128array.h"
+#include
+
+/**
+* Receives JavaScript callback invocation data.
+*
+* @param env environment under which the function is invoked
+* @param info callback data
+* @return Node-API value
+*/
+static napi_value addon( napi_env env, napi_callback_info info ) {
+ STDLIB_NAPI_ARGV( env, info, argv, argc, 4 );
+ STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
+ STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 3 );
+ STDLIB_NAPI_ARGV_DOUBLE( env, da, argv, 1 );
+ STDLIB_NAPI_ARGV_STRIDED_COMPLEX128ARRAY( env, ZX, N, strideX, argv, 2 );
+ c_zdscal( N, za, (void *)ZX, strideX );
+ return NULL;
+}
+
+STDLIB_NAPI_MODULE_EXPORT_FCN( addon )
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal.c b/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal.c
new file mode 100644
index 000000000000..5603526596d5
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal.c
@@ -0,0 +1,48 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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.
+*/
+
+#include "stdlib/blas/base/zdscal.h"
+#include "stdlib/blas/base/shared.h"
+#include "stdlib/complex/float64/ctor.h"
+#include
+
+/**
+* Scales a double-precision complex floating-point vector by a double-precision complex floating-point constant.
+*
+* @param N number of indexed elements
+* @param da scalar constant
+* @param ZX input array
+* @param strideX ZX stride length
+*/
+void API_SUFFIX(c_zdscal)( const CBLAS_INT N, const double da, void *ZX, const CBLAS_INT strideX ) {
+ stdlib_complex128_t* zp;
+ CBLAS_INT i;
+
+ uint8_t *ip1 = (uint8_t *)ZX;
+ int64_t is1 = (int64_t)(16 * strideX);
+
+ if ( N <= 0 || strideX <= 0 ) {
+ return;
+ }
+ for ( i = 0; i < N; i++, ip1 += is1 ) {
+ zp = (stdlib_complex128_t *)ip1;
+ zp->re *= da;
+ zp->im *= da;
+ }
+ return;
+}
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal.f b/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal.f
new file mode 100644
index 000000000000..086c7113f37c
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal.f
@@ -0,0 +1,85 @@
+!>
+! @license Apache-2.0
+!
+! Copyright (c) 2025 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.
+!<
+
+!> Scales a double-precision complex floating-point vector by a double-precision floating-point constant.
+!
+! ## Notes
+!
+! * Modified version of reference BLAS level1 routine (version 3.9.0). Updated to "free form" Fortran 95.
+!
+! ## Authors
+!
+! * Univ. of Tennessee
+! * Univ. of California Berkeley
+! * Univ. of Colorado Denver
+! * NAG Ltd.
+!
+! ## History
+!
+! * Jack Dongarra, linpack, 3/11/78.
+!
+! - modified 3/93 to return if incx .le. 0.
+! - modified 12/3/93, array(1) declarations changed to array(*)
+!
+! ## License
+!
+! From :
+!
+! > The reference BLAS is a freely-available software package. It is available from netlib via anonymous ftp and the World Wide Web. Thus, it can be included in commercial software packages (and has been). We only ask that proper credit be given to the authors.
+! >
+! > Like all software, it is copyrighted. It is not trademarked, but we do ask the following:
+! >
+! > * If you modify the source for these routines we ask that you change the name of the routine and comment the changes made to the original.
+! >
+! > * We will gladly answer any questions regarding the software. If a modification is done, however, it is the responsibility of the person who modified the routine to provide support.
+!
+! @param {integer} N - number of indexed elements
+! @param {double} da - scalar constant
+! @param {Array>} zx - input array
+! @param {integer} strideX - `zx` stride length
+!<
+subroutine zdscal( N, da, zx, strideX )
+ implicit none
+ ! ..
+ ! Scalar arguments:
+ double precision :: da
+ integer :: strideX, N
+ ! ..
+ ! Array arguments:
+ complex(kind=kind(0.0d0)) :: zx(*)
+ ! ..
+ ! Local scalars:
+ integer :: ix, i
+ ! ..
+ if ( N <= 0 .OR. strideX <= 0 ) then
+ return
+ end if
+ ! ..
+ if ( strideX == 1 ) then
+ do i = 1, N
+ zx(i) = da * zx(i)
+ end do
+ else
+ ix = 1
+ do i = 1, N
+ zx(ix) = da * zx(ix)
+ ix = ix + strideX
+ end do
+ end if
+ return
+end subroutine zdscal
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal_cblas.c b/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal_cblas.c
new file mode 100644
index 000000000000..8730f8a13923
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal_cblas.c
@@ -0,0 +1,34 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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.
+*/
+
+#include "stdlib/blas/base/zdscal.h"
+#include "stdlib/blas/base/zdscal_cblas.h"
+#include "stdlib/blas/base/shared.h"
+#include "stdlib/complex/float64/ctor.h"
+
+/**
+* Scales a double-precision complex floating-point vector by a double-precision floating-point constant.
+*
+* @param N number of indexed elements
+* @param da scalar constant
+* @param ZX input array
+* @param strideX ZX stride length
+*/
+void API_SUFFIX(c_zdscal)( const CBLAS_INT N, const double da, void *ZX, const CBLAS_INT strideX ) {
+ cblas_zdscal( N, da, ZX, strideX );
+}
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal_f.c b/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal_f.c
new file mode 100644
index 000000000000..cad6d4bebcdb
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal_f.c
@@ -0,0 +1,34 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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.
+*/
+
+#include "stdlib/blas/base/zdscal.h"
+#include "stdlib/blas/base/zdscal_fortran.h"
+#include "stdlib/blas/base/shared.h"
+#include "stdlib/complex/float64/ctor.h"
+
+/**
+* Scales a double-precision complex floating-point vector by a double-precision complex floating-point constant.
+*
+* @param N number of indexed elements
+* @param da scalar constant
+* @param ZX input array
+* @param strideX ZX stride length
+*/
+void API_SUFFIX(c_zdscal)( const CBLAS_INT N, const double da, void *ZX, const CBLAS_INT strideX ) {
+ zdscal( &N, &da, ZX, &strideX );
+}
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/test/test.js b/lib/node_modules/@stdlib/blas/base/zdscal/test/test.js
new file mode 100644
index 000000000000..67ccee99c8a3
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/test/test.js
@@ -0,0 +1,82 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 tape = require( 'tape' );
+var proxyquire = require( 'proxyquire' );
+var isBrowser = require( '@stdlib/assert/is-browser' );
+var zdscal = require( './../lib' );
+
+
+// VARIABLES //
+
+var opts = {
+ 'skip': isBrowser
+};
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof zdscal, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'attached to the main export is a method providing an ndarray interface', function test( t ) {
+ t.strictEqual( typeof zdscal.ndarray, 'function', 'method is a function' );
+ t.end();
+});
+
+tape( 'if a native implementation is available, the main export is the native implementation', opts, function test( t ) {
+ var zdscal = proxyquire( './../lib', {
+ '@stdlib/utils/try-require': tryRequire
+ });
+
+ t.strictEqual( zdscal, mock, 'returns native implementation' );
+ t.end();
+
+ function tryRequire() {
+ return mock;
+ }
+
+ function mock() {
+ // Mock...
+ }
+});
+
+tape( 'if a native implementation is not available, the main export is a JavaScript implementation', opts, function test( t ) {
+ var zdscal;
+ var main;
+
+ main = require( './../lib/zdscal.js' );
+
+ zdscal = proxyquire( './../lib', {
+ '@stdlib/utils/try-require': tryRequire
+ });
+
+ t.strictEqual( zdscal, main, 'returns JavaScript implementation' );
+ t.end();
+
+ function tryRequire() {
+ return new Error( 'Cannot find module' );
+ }
+});
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/base/zdscal/test/test.ndarray.js
new file mode 100644
index 000000000000..8d7ff6e22430
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/test/test.ndarray.js
@@ -0,0 +1,318 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 tape = require( 'tape' );
+var Complex128Array = require( '@stdlib/array/complex128' );
+var Float64Array = require( '@stdlib/array/float64' );
+var EPS = require( '@stdlib/constants/float64/eps' );
+var abs = require( '@stdlib/math/base/special/abs' );
+var zdscal = require( './../lib/ndarray.js' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof zdscal, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 5', function test( t ) {
+ t.strictEqual( zdscal.length, 5, 'arity of 5' );
+ t.end();
+});
+
+tape( 'the function scales elements from `zx` by `da`', function test( t ) {
+ var expected;
+ var delta;
+ var viewX;
+ var tol;
+ var da;
+ var zx;
+ var k;
+
+ zx = new Complex128Array([
+ 0.3, // 1
+ 0.1, // 1
+ 0.5, // 2
+ 0.0, // 2
+ 0.0, // 3
+ 0.5, // 3
+ 0.0, // 4
+ 0.2, // 4
+ 2.0,
+ 3.0,
+ 2.0,
+ 3.0
+ ]);
+ da = 2.0;
+
+ zdscal( 4, da, zx, 1, 0 );
+
+ viewX = new Float64Array( zx.buffer );
+ expected = new Float64Array([
+ 0.6, // 1
+ 0.2, // 1
+ 1.0, // 2
+ 0.0, // 2
+ 0.0, // 3
+ 1.0, // 3
+ 0.0, // 4
+ 0.4, // 4
+ 2.0,
+ 3.0,
+ 2.0,
+ 3.0
+ ]);
+ for ( k = 0; k < expected.length; k++ ) {
+ if ( viewX[ k ] === expected[ k ] ) {
+ t.strictEqual( viewX[ k ], expected[ k ], 'returns expected value' );
+ } else {
+ delta = abs( viewX[ k ] - expected[ k ] );
+ tol = 1.0 * EPS * abs( expected[ k ] );
+ t.ok( delta <= tol, 'within tolerance. x: '+viewX[ k ]+'. expected: '+expected[ k ]+'. delta: '+delta+'. tol: '+tol+'.' );
+ }
+ }
+ t.end();
+});
+
+tape( 'the function supports a `zx` stride', function test( t ) {
+ var expected;
+ var delta;
+ var viewX;
+ var tol;
+ var da;
+ var zx;
+ var k;
+
+ zx = new Complex128Array([
+ 0.1, // 1
+ 0.1, // 1
+ 3.0,
+ 6.0,
+ -0.6, // 2
+ 0.1, // 2
+ 4.0,
+ 7.0,
+ 0.1, // 3
+ -0.3, // 3
+ 7.0,
+ 2.0
+ ]);
+ da = 2.0;
+
+ zdscal( 3, da, zx, 2, 0 );
+
+ viewX = new Float64Array( zx.buffer );
+ expected = new Float64Array([
+ 0.2, // 1
+ 0.2, // 1
+ 3.0,
+ 6.0,
+ -1.2, // 2
+ 0.2, // 2
+ 4.0,
+ 7.0,
+ 0.2, // 3
+ -0.6, // 3
+ 7.0,
+ 2.0
+ ]);
+ for ( k = 0; k < expected.length; k++ ) {
+ if ( viewX[ k ] === expected[ k ] ) {
+ t.strictEqual( viewX[ k ], expected[ k ], 'returns expected value' );
+ } else {
+ delta = abs( viewX[ k ] - expected[ k ] );
+ tol = 5.0 * EPS * abs( expected[ k ] );
+ t.ok( delta <= tol, 'within tolerance. x: '+viewX[ k ]+'. expected: '+expected[ k ]+'. delta: '+delta+'. tol: '+tol+'.' );
+ }
+ }
+ t.end();
+});
+
+tape( 'the function supports a `zx` offset', function test( t ) {
+ var expected;
+ var delta;
+ var viewX;
+ var tol;
+ var da;
+ var zx;
+ var k;
+
+ zx = new Complex128Array([
+ 0.1,
+ 0.1,
+ 3.0,
+ 6.0,
+ -0.6,
+ 0.1,
+ 4.0, // 1
+ 6.0, // 1
+ 0.1, // 2
+ -0.3, // 2
+ 7.0, // 3
+ 2.0 // 3
+ ]);
+ da = 2.0;
+
+ zdscal( 3, da, zx, 1, 3 );
+
+ viewX = new Float64Array( zx.buffer );
+ expected = new Float64Array([
+ 0.1,
+ 0.1,
+ 3.0,
+ 6.0,
+ -0.6,
+ 0.1,
+ 8.0, // 1
+ 12.0, // 1
+ 0.2, // 2
+ -0.6, // 2
+ 14.0, // 3
+ 4.0 // 3
+ ]);
+ for ( k = 0; k < expected.length; k++ ) {
+ if ( viewX[ k ] === expected[ k ] ) {
+ t.strictEqual( viewX[ k ], expected[ k ], 'returns expected value' );
+ } else {
+ delta = abs( viewX[ k ] - expected[ k ] );
+ tol = 8.0 * EPS * abs( expected[ k ] );
+ t.ok( delta <= tol, 'within tolerance. x: '+viewX[ k ]+'. expected: '+expected[ k ]+'. delta: '+delta+'. tol: '+tol+'.' );
+ }
+ }
+ t.end();
+});
+
+tape( 'the function returns a reference to the input array', function test( t ) {
+ var out;
+ var da;
+ var zx;
+
+ zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ da = 2.0;
+
+ out = zdscal( 4, da, zx, 1, 0 );
+
+ t.strictEqual( out, zx, 'same reference' );
+ t.end();
+});
+
+tape( 'if provided an `N` parameter less than or equal to `0`, the function returns the input array unchanged', function test( t ) {
+ var expected;
+ var viewX;
+ var da;
+ var zx;
+
+ zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ da = 2.0;
+
+ viewX = new Float64Array( zx.buffer );
+ expected = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ zdscal( -1, da, zx, 1, 0 );
+ t.deepEqual( viewX, expected, 'returns expected value' );
+
+ zdscal( 0, da, zx, 1, 0 );
+ t.deepEqual( viewX, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'if provided an `strideX` parameter less than or equal to `0`, the function returns the input array unchanged', function test( t ) {
+ var expected;
+ var viewX;
+ var da;
+ var zx;
+
+ zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ da = 2.0;
+
+ viewX = new Float64Array( zx.buffer );
+ expected = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ zdscal( 4, da, zx, -1, 3 );
+ t.deepEqual( viewX, expected, 'returns expected value' );
+
+ zdscal( 4, da, zx, 0, 3 );
+ t.deepEqual( viewX, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports complex access patterns', function test( t ) {
+ var expected;
+ var delta;
+ var viewX;
+ var tol;
+ var da;
+ var zx;
+ var k;
+
+ zx = new Complex128Array([
+ 0.1,
+ 0.1,
+ 3.0,
+ 6.0,
+ -0.6,
+ 0.1,
+ 4.0, // 1
+ 6.0, // 1
+ 0.1,
+ -0.3,
+ 7.0,
+ 2.0,
+ 2.0, // 2
+ 3.0 // 2
+ ]);
+ da = 2.0;
+
+ zdscal( 2, da, zx, 3, 3 );
+
+ viewX = new Float64Array( zx.buffer );
+ expected = new Float64Array([
+ 0.1,
+ 0.1,
+ 3.0,
+ 6.0,
+ -0.6,
+ 0.1,
+ 8.0, // 1
+ 12.0, // 1
+ 0.1,
+ -0.3,
+ 7.0,
+ 2.0,
+ 4.0, // 2
+ 6.0 // 2
+ ]);
+ for ( k = 0; k < expected.length; k++ ) {
+ if ( viewX[ k ] === expected[ k ] ) {
+ t.strictEqual( viewX[ k ], expected[ k ], 'returns expected value' );
+ } else {
+ delta = abs( viewX[ k ] - expected[ k ] );
+ tol = 10.0 * EPS * abs( expected[ k ] );
+ t.ok( delta <= tol, 'within tolerance. x: '+viewX[ k ]+'. expected: '+expected[ k ]+'. delta: '+delta+'. tol: '+tol+'.' );
+ }
+ }
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/test/test.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/zdscal/test/test.ndarray.native.js
new file mode 100644
index 000000000000..666557408093
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/test/test.ndarray.native.js
@@ -0,0 +1,327 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 resolve = require( 'path' ).resolve;
+var tape = require( 'tape' );
+var Complex128Array = require( '@stdlib/array/complex128' );
+var Float64Array = require( '@stdlib/array/float64' );
+var EPS = require( '@stdlib/constants/float64/eps' );
+var abs = require( '@stdlib/math/base/special/abs' );
+var tryRequire = require( '@stdlib/utils/try-require' );
+
+
+// VARIABLES //
+
+var zdscal = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) );
+var opts = {
+ 'skip': ( zdscal instanceof Error )
+};
+
+
+// TESTS //
+
+tape( 'main export is a function', opts, function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof zdscal, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 5', opts, function test( t ) {
+ t.strictEqual( zdscal.length, 5, 'arity of 5' );
+ t.end();
+});
+
+tape( 'the function scales elements from `zx` by `da`', opts, function test( t ) {
+ var expected;
+ var delta;
+ var viewX;
+ var tol;
+ var da;
+ var zx;
+ var k;
+
+ zx = new Complex128Array([
+ 0.3, // 1
+ 0.1, // 1
+ 0.5, // 2
+ 0.0, // 2
+ 0.0, // 3
+ 0.5, // 3
+ 0.0, // 4
+ 0.2, // 4
+ 2.0,
+ 3.0,
+ 2.0,
+ 3.0
+ ]);
+ da = 2.0;
+
+ zdscal( 4, da, zx, 1, 0 );
+
+ viewX = new Float64Array( zx.buffer );
+ expected = new Float64Array([
+ 0.6, // 1
+ 0.2, // 1
+ 1.0, // 2
+ 0.0, // 2
+ 0.0, // 3
+ 1.0, // 3
+ 0.0, // 4
+ 0.4, // 4
+ 2.0,
+ 3.0,
+ 2.0,
+ 3.0
+ ]);
+ for ( k = 0; k < expected.length; k++ ) {
+ if ( viewX[ k ] === expected[ k ] ) {
+ t.strictEqual( viewX[ k ], expected[ k ], 'returns expected value' );
+ } else {
+ delta = abs( viewX[ k ] - expected[ k ] );
+ tol = 1.0 * EPS * abs( expected[ k ] );
+ t.ok( delta <= tol, 'within tolerance. x: '+viewX[ k ]+'. expected: '+expected[ k ]+'. delta: '+delta+'. tol: '+tol+'.' );
+ }
+ }
+ t.end();
+});
+
+tape( 'the function supports a `zx` stride', opts, function test( t ) {
+ var expected;
+ var delta;
+ var viewX;
+ var tol;
+ var da;
+ var zx;
+ var k;
+
+ zx = new Complex128Array([
+ 0.1, // 1
+ 0.1, // 1
+ 3.0,
+ 6.0,
+ -0.6, // 2
+ 0.1, // 2
+ 4.0,
+ 7.0,
+ 0.1, // 3
+ -0.3, // 3
+ 7.0,
+ 2.0
+ ]);
+ da = 2.0;
+
+ zdscal( 3, da, zx, 2, 0 );
+
+ viewX = new Float64Array( zx.buffer );
+ expected = new Float64Array([
+ 0.2, // 1
+ 0.2, // 1
+ 3.0,
+ 6.0,
+ -1.2, // 2
+ 0.2, // 2
+ 4.0,
+ 7.0,
+ 0.2, // 3
+ -0.6, // 3
+ 7.0,
+ 2.0
+ ]);
+ for ( k = 0; k < expected.length; k++ ) {
+ if ( viewX[ k ] === expected[ k ] ) {
+ t.strictEqual( viewX[ k ], expected[ k ], 'returns expected value' );
+ } else {
+ delta = abs( viewX[ k ] - expected[ k ] );
+ tol = 5.0 * EPS * abs( expected[ k ] );
+ t.ok( delta <= tol, 'within tolerance. x: '+viewX[ k ]+'. expected: '+expected[ k ]+'. delta: '+delta+'. tol: '+tol+'.' );
+ }
+ }
+ t.end();
+});
+
+tape( 'the function supports a `zx` offset', opts, function test( t ) {
+ var expected;
+ var delta;
+ var viewX;
+ var tol;
+ var da;
+ var zx;
+ var k;
+
+ zx = new Complex128Array([
+ 0.1,
+ 0.1,
+ 3.0,
+ 6.0,
+ -0.6,
+ 0.1,
+ 4.0, // 1
+ 6.0, // 1
+ 0.1, // 2
+ -0.3, // 2
+ 7.0, // 3
+ 2.0 // 3
+ ]);
+ da = 2.0;
+
+ zdscal( 3, da, zx, 1, 3 );
+
+ viewX = new Float64Array( zx.buffer );
+ expected = new Float64Array([
+ 0.1,
+ 0.1,
+ 3.0,
+ 6.0,
+ -0.6,
+ 0.1,
+ 8.0, // 1
+ 12.0, // 1
+ 0.2, // 2
+ -0.6, // 2
+ 14.0, // 3
+ 4.0 // 3
+ ]);
+ for ( k = 0; k < expected.length; k++ ) {
+ if ( viewX[ k ] === expected[ k ] ) {
+ t.strictEqual( viewX[ k ], expected[ k ], 'returns expected value' );
+ } else {
+ delta = abs( viewX[ k ] - expected[ k ] );
+ tol = 8.0 * EPS * abs( expected[ k ] );
+ t.ok( delta <= tol, 'within tolerance. x: '+viewX[ k ]+'. expected: '+expected[ k ]+'. delta: '+delta+'. tol: '+tol+'.' );
+ }
+ }
+ t.end();
+});
+
+tape( 'the function returns a reference to the input array', opts, function test( t ) {
+ var out;
+ var da;
+ var zx;
+
+ zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ da = 2.0;
+
+ out = zdscal( 4, da, zx, 1, 0 );
+
+ t.strictEqual( out, zx, 'same reference' );
+ t.end();
+});
+
+tape( 'if provided an `N` parameter less than or equal to `0`, the function returns the input array unchanged', opts, function test( t ) {
+ var expected;
+ var viewX;
+ var da;
+ var zx;
+
+ zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ da = 2.0;
+
+ viewX = new Float64Array( zx.buffer );
+ expected = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ zdscal( -1, da, zx, 1, 0 );
+ t.deepEqual( viewX, expected, 'returns expected value' );
+
+ zdscal( 0, da, zx, 1, 0 );
+ t.deepEqual( viewX, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'if provided an `strideX` parameter less than or equal to `0`, the function returns the input array unchanged', opts, function test( t ) {
+ var expected;
+ var viewX;
+ var da;
+ var zx;
+
+ zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ da = 2.0;
+
+ viewX = new Float64Array( zx.buffer );
+ expected = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ zdscal( 4, da, zx, -1, 3 );
+ t.deepEqual( viewX, expected, 'returns expected value' );
+
+ zdscal( 4, da, zx, 0, 3 );
+ t.deepEqual( viewX, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports complex access patterns', opts, function test( t ) {
+ var expected;
+ var delta;
+ var viewX;
+ var tol;
+ var da;
+ var zx;
+ var k;
+
+ zx = new Complex128Array([
+ 0.1,
+ 0.1,
+ 3.0,
+ 6.0,
+ -0.6,
+ 0.1,
+ 4.0, // 1
+ 6.0, // 1
+ 0.1,
+ -0.3,
+ 7.0,
+ 2.0,
+ 2.0, // 2
+ 3.0 // 2
+ ]);
+ da = 2.0;
+
+ zdscal( 2, da, zx, 3, 3 );
+
+ viewX = new Float64Array( zx.buffer );
+ expected = new Float64Array([
+ 0.1,
+ 0.1,
+ 3.0,
+ 6.0,
+ -0.6,
+ 0.1,
+ 8.0, // 1
+ 12.0, // 1
+ 0.1,
+ -0.3,
+ 7.0,
+ 2.0,
+ 4.0, // 2
+ 6.0 // 2
+ ]);
+ for ( k = 0; k < expected.length; k++ ) {
+ if ( viewX[ k ] === expected[ k ] ) {
+ t.strictEqual( viewX[ k ], expected[ k ], 'returns expected value' );
+ } else {
+ delta = abs( viewX[ k ] - expected[ k ] );
+ tol = 10.0 * EPS * abs( expected[ k ] );
+ t.ok( delta <= tol, 'within tolerance. x: '+viewX[ k ]+'. expected: '+expected[ k ]+'. delta: '+delta+'. tol: '+tol+'.' );
+ }
+ }
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/test/test.zdscal.js b/lib/node_modules/@stdlib/blas/base/zdscal/test/test.zdscal.js
new file mode 100644
index 000000000000..a49606913351
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/test/test.zdscal.js
@@ -0,0 +1,253 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 tape = require( 'tape' );
+var Complex128Array = require( '@stdlib/array/complex128' );
+var Float64Array = require( '@stdlib/array/float64' );
+var EPS = require( '@stdlib/constants/float64/eps' );
+var abs = require( '@stdlib/math/base/special/abs' );
+var zdscal = require( './../lib/zdscal.js' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof zdscal, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 4', function test( t ) {
+ t.strictEqual( zdscal.length, 4, 'arity of 4' );
+ t.end();
+});
+
+tape( 'the function scales elements from `zx` by `da`', function test( t ) {
+ var expected;
+ var delta;
+ var viewX;
+ var tol;
+ var da;
+ var zx;
+ var k;
+
+ zx = new Complex128Array([
+ 0.3, // 1
+ 0.1, // 1
+ 0.5, // 2
+ 0.0, // 2
+ 0.0, // 3
+ 0.5, // 3
+ 0.0, // 4
+ 0.2 // 4
+ ]);
+ da = 2.0;
+
+ zdscal( 4, da, zx, 1 );
+
+ viewX = new Float64Array( zx.buffer );
+ expected = new Float64Array([
+ 0.6, // 1
+ 0.2, // 1
+ 1.0, // 2
+ 0.0, // 2
+ 0.0, // 3
+ 1.0, // 3
+ 0.0, // 4
+ 0.4 // 4
+ ]);
+ for ( k = 0; k < expected.length; k++ ) {
+ if ( viewX[ k ] === expected[ k ] ) {
+ t.strictEqual( viewX[ k ], expected[ k ], 'returns expected value' );
+ } else {
+ delta = abs( viewX[ k ] - expected[ k ] );
+ tol = 1.0 * EPS * abs( expected[ k ] );
+ t.ok( delta <= tol, 'within tolerance. x: '+viewX[ k ]+'. expected: '+expected[ k ]+'. delta: '+delta+'. tol: '+tol+'.' );
+ }
+ }
+ t.end();
+});
+
+tape( 'the function supports a `zx` stride', function test( t ) {
+ var expected;
+ var delta;
+ var viewX;
+ var tol;
+ var da;
+ var zx;
+ var k;
+
+ zx = new Complex128Array([
+ 0.1, // 1
+ 0.1, // 1
+ 3.0,
+ 6.0,
+ -0.6, // 2
+ 0.1, // 2
+ 4.0,
+ 7.0,
+ 0.1, // 3
+ -0.3, // 3
+ 7.0,
+ 2.0
+ ]);
+ da = 2.0;
+
+ zdscal( 3, da, zx, 2 );
+
+ viewX = new Float64Array( zx.buffer );
+ expected = new Float64Array([
+ 0.2, // 1
+ 0.2, // 1
+ 3.0,
+ 6.0,
+ -1.2, // 2
+ 0.2, // 2
+ 4.0,
+ 7.0,
+ 0.2, // 3
+ -0.6, // 3
+ 7.0,
+ 2.0
+ ]);
+ for ( k = 0; k < expected.length; k++ ) {
+ if ( viewX[ k ] === expected[ k ] ) {
+ t.strictEqual( viewX[ k ], expected[ k ], 'returns expected value' );
+ } else {
+ delta = abs( viewX[ k ] - expected[ k ] );
+ tol = 5.0 * EPS * abs( expected[ k ] );
+ t.ok( delta <= tol, 'within tolerance. x: '+viewX[ k ]+'. expected: '+expected[ k ]+'. delta: '+delta+'. tol: '+tol+'.' );
+ }
+ }
+ t.end();
+});
+
+tape( 'the function returns a reference to the input array', function test( t ) {
+ var out;
+ var da;
+ var zx;
+
+ zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ da = 2.0;
+
+ out = zdscal( 4, da, zx, 1 );
+
+ t.strictEqual( out, zx, 'same reference' );
+ t.end();
+});
+
+tape( 'if provided an `N` parameter less than or equal to `0`, the function returns the input array unchanged', function test( t ) {
+ var expected;
+ var viewX;
+ var da;
+ var zx;
+
+ zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ da = 2.0;
+
+ viewX = new Float64Array( zx.buffer );
+ expected = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ zdscal( -1, da, zx, 1 );
+ t.deepEqual( viewX, expected, 'returns expected value' );
+
+ zdscal( 0, da, zx, 1 );
+ t.deepEqual( viewX, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'if provided an `strideX` parameter less than or equal to `0`, the function returns the input array unchanged', function test( t ) {
+ var expected;
+ var viewX;
+ var da;
+ var zx;
+
+ zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ da = 2.0;
+
+ viewX = new Float64Array( zx.buffer );
+ expected = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ zdscal( 4, da, zx, -1 );
+ t.deepEqual( viewX, expected, 'returns expected value' );
+
+ zdscal( 4, da, zx, 0 );
+ t.deepEqual( viewX, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports view offsets', function test( t ) {
+ var expected;
+ var delta;
+ var viewX;
+ var tol;
+ var zx0;
+ var zx1;
+ var da;
+ var k;
+
+ // Initial arrays...
+ zx0 = new Complex128Array([
+ 0.1,
+ -0.3,
+ 8.0, // 1
+ 9.0, // 1
+ 0.5, // 2
+ -0.1, // 2
+ 2.0, // 3
+ 5.0, // 3
+ 2.0,
+ 3.0
+ ]);
+ da = 2.0;
+
+ // Create offset views...
+ zx1 = new Complex128Array( zx0.buffer, zx0.BYTES_PER_ELEMENT*1 ); // begin at 2nd element
+
+ zdscal( 3, da, zx1, 1 );
+
+ viewX = new Float64Array( zx0.buffer );
+ expected = new Float64Array([
+ 0.1,
+ -0.3,
+ 16.0, // 1
+ 18.0, // 1
+ 1.0, // 2
+ -0.2, // 2
+ 4.0, // 3
+ 10.0, // 3
+ 2.0,
+ 3.0
+ ]);
+ for ( k = 0; k < expected.length; k++ ) {
+ if ( viewX[ k ] === expected[ k ] ) {
+ t.strictEqual( viewX[ k ], expected[ k ], 'returns expected value' );
+ } else {
+ delta = abs( viewX[ k ] - expected[ k ] );
+ tol = 1.0 * EPS * abs( expected[ k ] );
+ t.ok( delta <= tol, 'within tolerance. x: '+viewX[ k ]+'. expected: '+expected[ k ]+'. delta: '+delta+'. tol: '+tol+'.' );
+ }
+ }
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/test/test.zdscal.native.js b/lib/node_modules/@stdlib/blas/base/zdscal/test/test.zdscal.native.js
new file mode 100644
index 000000000000..cf9690cca96f
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/test/test.zdscal.native.js
@@ -0,0 +1,262 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 resolve = require( 'path' ).resolve;
+var tape = require( 'tape' );
+var Complex128Array = require( '@stdlib/array/complex128' );
+var Float64Array = require( '@stdlib/array/float64' );
+var EPS = require( '@stdlib/constants/float64/eps' );
+var abs = require( '@stdlib/math/base/special/abs' );
+var tryRequire = require( '@stdlib/utils/try-require' );
+
+
+// VARIABLES //
+
+var zdscal = tryRequire( resolve( __dirname, './../lib/zdscal.native.js' ) );
+var opts = {
+ 'skip': ( zdscal instanceof Error )
+};
+
+
+// TESTS //
+
+tape( 'main export is a function', opts, function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof zdscal, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 4', opts, function test( t ) {
+ t.strictEqual( zdscal.length, 4, 'arity of 4' );
+ t.end();
+});
+
+tape( 'the function scales elements from `zx` by `da`', opts, function test( t ) {
+ var expected;
+ var delta;
+ var viewX;
+ var tol;
+ var da;
+ var zx;
+ var k;
+
+ zx = new Complex128Array([
+ 0.3, // 1
+ 0.1, // 1
+ 0.5, // 2
+ 0.0, // 2
+ 0.0, // 3
+ 0.5, // 3
+ 0.0, // 4
+ 0.2 // 4
+ ]);
+ da = 2.0;
+
+ zdscal( 4, da, zx, 1 );
+
+ viewX = new Float64Array( zx.buffer );
+ expected = new Float64Array([
+ 0.6, // 1
+ 0.2, // 1
+ 1.0, // 2
+ 0.0, // 2
+ 0.0, // 3
+ 1.0, // 3
+ 0.0, // 4
+ 0.4 // 4
+ ]);
+ for ( k = 0; k < expected.length; k++ ) {
+ if ( viewX[ k ] === expected[ k ] ) {
+ t.strictEqual( viewX[ k ], expected[ k ], 'returns expected value' );
+ } else {
+ delta = abs( viewX[ k ] - expected[ k ] );
+ tol = 1.0 * EPS * abs( expected[ k ] );
+ t.ok( delta <= tol, 'within tolerance. x: '+viewX[ k ]+'. expected: '+expected[ k ]+'. delta: '+delta+'. tol: '+tol+'.' );
+ }
+ }
+ t.end();
+});
+
+tape( 'the function supports a `zx` stride', opts, function test( t ) {
+ var expected;
+ var delta;
+ var viewX;
+ var tol;
+ var da;
+ var zx;
+ var k;
+
+ zx = new Complex128Array([
+ 0.1, // 1
+ 0.1, // 1
+ 3.0,
+ 6.0,
+ -0.6, // 2
+ 0.1, // 2
+ 4.0,
+ 7.0,
+ 0.1, // 3
+ -0.3, // 3
+ 7.0,
+ 2.0
+ ]);
+ da = 2.0;
+
+ zdscal( 3, da, zx, 2 );
+
+ viewX = new Float64Array( zx.buffer );
+ expected = new Float64Array([
+ 0.2, // 1
+ 0.2, // 1
+ 3.0,
+ 6.0,
+ -1.2, // 2
+ 0.2, // 2
+ 4.0,
+ 7.0,
+ 0.2, // 3
+ -0.6, // 3
+ 7.0,
+ 2.0
+ ]);
+ for ( k = 0; k < expected.length; k++ ) {
+ if ( viewX[ k ] === expected[ k ] ) {
+ t.strictEqual( viewX[ k ], expected[ k ], 'returns expected value' );
+ } else {
+ delta = abs( viewX[ k ] - expected[ k ] );
+ tol = 5.0 * EPS * abs( expected[ k ] );
+ t.ok( delta <= tol, 'within tolerance. x: '+viewX[ k ]+'. expected: '+expected[ k ]+'. delta: '+delta+'. tol: '+tol+'.' );
+ }
+ }
+ t.end();
+});
+
+tape( 'the function returns a reference to the input array', opts, function test( t ) {
+ var out;
+ var da;
+ var zx;
+
+ zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ da = 2.0;
+
+ out = zdscal( 4, da, zx, 1 );
+
+ t.strictEqual( out, zx, 'same reference' );
+ t.end();
+});
+
+tape( 'if provided an `N` parameter less than or equal to `0`, the function returns the input array unchanged', opts, function test( t ) {
+ var expected;
+ var viewX;
+ var da;
+ var zx;
+
+ zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ da = 2.0;
+
+ viewX = new Float64Array( zx.buffer );
+ expected = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ zdscal( -1, da, zx, 1 );
+ t.deepEqual( viewX, expected, 'returns expected value' );
+
+ zdscal( 0, da, zx, 1 );
+ t.deepEqual( viewX, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'if provided an `strideX` parameter less than or equal to `0`, the function returns the input array unchanged', opts, function test( t ) {
+ var expected;
+ var viewX;
+ var da;
+ var zx;
+
+ zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ da = 2.0;
+
+ viewX = new Float64Array( zx.buffer );
+ expected = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ zdscal( 4, da, zx, -1 );
+ t.deepEqual( viewX, expected, 'returns expected value' );
+
+ zdscal( 4, da, zx, 0 );
+ t.deepEqual( viewX, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports view offsets', opts, function test( t ) {
+ var expected;
+ var delta;
+ var viewX;
+ var tol;
+ var zx0;
+ var zx1;
+ var da;
+ var k;
+
+ // Initial arrays...
+ zx0 = new Complex128Array([
+ 0.1,
+ -0.3,
+ 8.0, // 1
+ 9.0, // 1
+ 0.5, // 2
+ -0.1, // 2
+ 2.0, // 3
+ 5.0, // 3
+ 2.0,
+ 3.0
+ ]);
+ da = 2.0;
+
+ // Create offset views...
+ zx1 = new Complex128Array( zx0.buffer, zx0.BYTES_PER_ELEMENT*1 ); // begin at 2nd element
+
+ zdscal( 3, da, zx1, 1 );
+
+ viewX = new Float64Array( zx0.buffer );
+ expected = new Float64Array([
+ 0.1,
+ -0.3,
+ 16.0, // 1
+ 18.0, // 1
+ 1.0, // 2
+ -0.2, // 2
+ 4.0, // 3
+ 10.0, // 3
+ 2.0,
+ 3.0
+ ]);
+ for ( k = 0; k < expected.length; k++ ) {
+ if ( viewX[ k ] === expected[ k ] ) {
+ t.strictEqual( viewX[ k ], expected[ k ], 'returns expected value' );
+ } else {
+ delta = abs( viewX[ k ] - expected[ k ] );
+ tol = 1.0 * EPS * abs( expected[ k ] );
+ t.ok( delta <= tol, 'within tolerance. x: '+viewX[ k ]+'. expected: '+expected[ k ]+'. delta: '+delta+'. tol: '+tol+'.' );
+ }
+ }
+ t.end();
+});
From dad4f92e8b5077910e006477dfbbffed9383d49c Mon Sep 17 00:00:00 2001
From: Ricky Reusser <572717+rreusser@users.noreply.github.com>
Date: Tue, 14 Jan 2025 11:21:00 -0800
Subject: [PATCH 2/8] feat: fix zdscal manifest
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
- task: lint_filenames
status: passed
- task: lint_editorconfig
status: passed
- task: lint_markdown
status: na
- task: lint_package_json
status: na
- task: lint_repl_help
status: na
- task: lint_javascript_src
status: na
- task: lint_javascript_cli
status: na
- task: lint_javascript_examples
status: na
- task: lint_javascript_tests
status: na
- task: lint_javascript_benchmarks
status: na
- task: lint_python
status: na
- task: lint_r
status: na
- task: lint_c_src
status: passed
- task: lint_c_examples
status: na
- task: lint_c_benchmarks
status: na
- task: lint_c_tests_fixtures
status: na
- task: lint_shell
status: na
- task: lint_typescript_declarations
status: na
- task: lint_typescript_tests
status: na
- task: lint_license_headers
status: passed
---
---
.../@stdlib/blas/base/zdscal/manifest.json | 12 ++++++------
.../@stdlib/blas/base/zdscal/src/addon.c | 2 +-
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/manifest.json b/lib/node_modules/@stdlib/blas/base/zdscal/manifest.json
index 99d9a9ebcb5f..03e61d880fc8 100644
--- a/lib/node_modules/@stdlib/blas/base/zdscal/manifest.json
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/manifest.json
@@ -48,7 +48,7 @@
"@stdlib/napi/argv",
"@stdlib/napi/argv-int64",
"@stdlib/napi/argv-strided-complex128array",
- "@stdlib/napi/argv-complex128",
+ "@stdlib/napi/argv-double",
"@stdlib/complex/float64/ctor"
]
},
@@ -111,7 +111,7 @@
"@stdlib/napi/argv",
"@stdlib/napi/argv-int64",
"@stdlib/napi/argv-strided-complex128array",
- "@stdlib/napi/argv-complex128",
+ "@stdlib/napi/argv-double",
"@stdlib/complex/float64/ctor"
]
},
@@ -178,7 +178,7 @@
"@stdlib/napi/argv",
"@stdlib/napi/argv-int64",
"@stdlib/napi/argv-strided-complex128array",
- "@stdlib/napi/argv-complex128",
+ "@stdlib/napi/argv-double",
"@stdlib/complex/float64/ctor"
]
},
@@ -240,7 +240,7 @@
"@stdlib/napi/argv",
"@stdlib/napi/argv-int64",
"@stdlib/napi/argv-strided-complex128array",
- "@stdlib/napi/argv-complex128",
+ "@stdlib/napi/argv-double",
"@stdlib/complex/float64/ctor"
]
},
@@ -307,7 +307,7 @@
"@stdlib/napi/argv",
"@stdlib/napi/argv-int64",
"@stdlib/napi/argv-strided-complex128array",
- "@stdlib/napi/argv-complex128",
+ "@stdlib/napi/argv-double",
"@stdlib/complex/float64/ctor"
]
},
@@ -373,7 +373,7 @@
"@stdlib/napi/argv",
"@stdlib/napi/argv-int64",
"@stdlib/napi/argv-strided-complex128array",
- "@stdlib/napi/argv-complex128",
+ "@stdlib/napi/argv-double",
"@stdlib/complex/float64/ctor"
]
},
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/src/addon.c b/lib/node_modules/@stdlib/blas/base/zdscal/src/addon.c
index d1b856ac71fc..daef98e3b2cd 100644
--- a/lib/node_modules/@stdlib/blas/base/zdscal/src/addon.c
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/src/addon.c
@@ -37,7 +37,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 3 );
STDLIB_NAPI_ARGV_DOUBLE( env, da, argv, 1 );
STDLIB_NAPI_ARGV_STRIDED_COMPLEX128ARRAY( env, ZX, N, strideX, argv, 2 );
- c_zdscal( N, za, (void *)ZX, strideX );
+ c_zdscal( N, da, (void *)ZX, strideX );
return NULL;
}
From 2dc43d8062b364e8d2eb8334367f5aa0548bee16 Mon Sep 17 00:00:00 2001
From: Ricky Reusser <572717+rreusser@users.noreply.github.com>
Date: Tue, 14 Jan 2025 11:24:18 -0800
Subject: [PATCH 3/8] temp: test an empty commit
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
- task: lint_filenames
status: passed
- task: lint_editorconfig
status: passed
- task: lint_markdown
status: na
- task: lint_package_json
status: na
- task: lint_repl_help
status: na
- task: lint_javascript_src
status: na
- task: lint_javascript_cli
status: na
- task: lint_javascript_examples
status: na
- task: lint_javascript_tests
status: na
- task: lint_javascript_benchmarks
status: na
- task: lint_python
status: na
- task: lint_r
status: na
- task: lint_c_src
status: na
- task: lint_c_examples
status: na
- task: lint_c_benchmarks
status: na
- task: lint_c_tests_fixtures
status: na
- task: lint_shell
status: na
- task: lint_typescript_declarations
status: na
- task: lint_typescript_tests
status: na
- task: lint_license_headers
status: passed
---
From e5bbfb7df02f25bc3d459589a8d58533a1b95b66 Mon Sep 17 00:00:00 2001
From: Ricky Reusser <572717+rreusser@users.noreply.github.com>
Date: Tue, 14 Jan 2025 11:34:08 -0800
Subject: [PATCH 4/8] fix: remove ad-hoc early return
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
- task: lint_filenames
status: passed
- task: lint_editorconfig
status: passed
- task: lint_markdown
status: na
- task: lint_package_json
status: na
- task: lint_repl_help
status: na
- task: lint_javascript_src
status: passed
- task: lint_javascript_cli
status: na
- task: lint_javascript_examples
status: na
- task: lint_javascript_tests
status: na
- task: lint_javascript_benchmarks
status: na
- task: lint_python
status: na
- task: lint_r
status: na
- task: lint_c_src
status: na
- task: lint_c_examples
status: na
- task: lint_c_benchmarks
status: na
- task: lint_c_tests_fixtures
status: na
- task: lint_shell
status: na
- task: lint_typescript_declarations
status: na
- task: lint_typescript_tests
status: na
- task: lint_license_headers
status: passed
---
---
lib/node_modules/@stdlib/blas/base/zdscal/lib/zdscal.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/lib/zdscal.js b/lib/node_modules/@stdlib/blas/base/zdscal/lib/zdscal.js
index 2809a210aa35..05d47b4c3346 100644
--- a/lib/node_modules/@stdlib/blas/base/zdscal/lib/zdscal.js
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/lib/zdscal.js
@@ -59,7 +59,7 @@ function zdscal( N, da, zx, strideX ) {
var ix;
var i;
- if ( N <= 0 || strideX <= 0 || da === 1.0 ) {
+ if ( N <= 0 || strideX <= 0 ) {
return zx;
}
From 25e95e058ff7596a12b9dbe8ee2558e118da84cb Mon Sep 17 00:00:00 2001
From: Ricky Reusser <572717+rreusser@users.noreply.github.com>
Date: Tue, 14 Jan 2025 12:09:57 -0800
Subject: [PATCH 5/8] fix: fix incorrect zdscal descriptions
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
- task: lint_filenames
status: passed
- task: lint_editorconfig
status: passed
- task: lint_markdown
status: na
- task: lint_package_json
status: na
- task: lint_repl_help
status: na
- task: lint_javascript_src
status: na
- task: lint_javascript_cli
status: na
- task: lint_javascript_examples
status: na
- task: lint_javascript_tests
status: na
- task: lint_javascript_benchmarks
status: na
- task: lint_python
status: na
- task: lint_r
status: na
- task: lint_c_src
status: passed
- task: lint_c_examples
status: na
- task: lint_c_benchmarks
status: na
- task: lint_c_tests_fixtures
status: na
- task: lint_shell
status: na
- task: lint_typescript_declarations
status: na
- task: lint_typescript_tests
status: na
- task: lint_license_headers
status: passed
---
---
lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal.c | 2 +-
lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal_f.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal.c b/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal.c
index 5603526596d5..3d72f855f546 100644
--- a/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal.c
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal.c
@@ -22,7 +22,7 @@
#include
/**
-* Scales a double-precision complex floating-point vector by a double-precision complex floating-point constant.
+* Scales a double-precision complex floating-point vector by a double-precision floating-point constant.
*
* @param N number of indexed elements
* @param da scalar constant
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal_f.c b/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal_f.c
index cad6d4bebcdb..6c6d08005097 100644
--- a/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal_f.c
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal_f.c
@@ -22,7 +22,7 @@
#include "stdlib/complex/float64/ctor.h"
/**
-* Scales a double-precision complex floating-point vector by a double-precision complex floating-point constant.
+* Scales a double-precision complex floating-point vector by a double-precision floating-point constant.
*
* @param N number of indexed elements
* @param da scalar constant
From 8c6a7655550b12249f4512b27721d1fbcdf71526 Mon Sep 17 00:00:00 2001
From: Ricky Reusser <572717+rreusser@users.noreply.github.com>
Date: Wed, 15 Jan 2025 11:39:38 -0800
Subject: [PATCH 6/8] fix: remove native implementation from zdscal
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
- task: lint_filenames
status: passed
- task: lint_editorconfig
status: passed
- task: lint_markdown
status: na
- task: lint_package_json
status: na
- task: lint_repl_help
status: na
- task: lint_javascript_src
status: na
- task: lint_javascript_cli
status: na
- task: lint_javascript_examples
status: na
- task: lint_javascript_tests
status: na
- task: lint_javascript_benchmarks
status: na
- task: lint_python
status: na
- task: lint_r
status: na
- task: lint_c_src
status: na
- task: lint_c_examples
status: na
- task: lint_c_benchmarks
status: na
- task: lint_c_tests_fixtures
status: na
- task: lint_shell
status: na
- task: lint_typescript_declarations
status: na
- task: lint_typescript_tests
status: na
- task: lint_license_headers
status: passed
---
---
.../base/zdscal/benchmark/benchmark.native.js | 114 -----
.../benchmark/benchmark.ndarray.native.js | 113 -----
.../blas/base/zdscal/benchmark/c/Makefile | 146 ------
.../zdscal/benchmark/c/benchmark.length.c | 153 ------
.../base/zdscal/benchmark/fortran/Makefile | 141 ------
.../benchmark/fortran/benchmark.length.f | 222 ---------
.../@stdlib/blas/base/zdscal/binding.gyp | 265 -----------
.../blas/base/zdscal/examples/c/Makefile | 146 ------
.../blas/base/zdscal/examples/c/example.c | 43 --
.../@stdlib/blas/base/zdscal/include.gypi | 70 ---
.../zdscal/include/stdlib/blas/base/zdscal.h | 44 --
.../include/stdlib/blas/base/zdscal_cblas.h | 44 --
.../include/stdlib/blas/base/zdscal_fortran.h | 43 --
.../@stdlib/blas/base/zdscal/lib/native.js | 35 --
.../blas/base/zdscal/lib/ndarray.native.js | 71 ---
.../blas/base/zdscal/lib/zdscal.native.js | 66 ---
.../@stdlib/blas/base/zdscal/manifest.json | 436 ------------------
.../@stdlib/blas/base/zdscal/src/Makefile | 70 ---
.../@stdlib/blas/base/zdscal/src/addon.c | 44 --
.../@stdlib/blas/base/zdscal/src/zdscal.c | 48 --
.../@stdlib/blas/base/zdscal/src/zdscal.f | 85 ----
.../blas/base/zdscal/src/zdscal_cblas.c | 34 --
.../@stdlib/blas/base/zdscal/src/zdscal_f.c | 34 --
.../base/zdscal/test/test.ndarray.native.js | 327 -------------
.../base/zdscal/test/test.zdscal.native.js | 262 -----------
25 files changed, 3056 deletions(-)
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.native.js
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.ndarray.native.js
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/benchmark/c/Makefile
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/benchmark/c/benchmark.length.c
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/benchmark/fortran/Makefile
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/benchmark/fortran/benchmark.length.f
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/binding.gyp
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/examples/c/Makefile
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/examples/c/example.c
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/include.gypi
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/include/stdlib/blas/base/zdscal.h
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/include/stdlib/blas/base/zdscal_cblas.h
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/include/stdlib/blas/base/zdscal_fortran.h
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/lib/native.js
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/lib/ndarray.native.js
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/lib/zdscal.native.js
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/manifest.json
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/src/Makefile
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/src/addon.c
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal.c
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal.f
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal_cblas.c
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal_f.c
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/test/test.ndarray.native.js
delete mode 100644 lib/node_modules/@stdlib/blas/base/zdscal/test/test.zdscal.native.js
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.native.js
deleted file mode 100644
index 6ccd1da5dece..000000000000
--- a/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.native.js
+++ /dev/null
@@ -1,114 +0,0 @@
-/**
-* @license Apache-2.0
-*
-* Copyright (c) 2025 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 resolve = require( 'path' ).resolve;
-var bench = require( '@stdlib/bench' );
-var uniform = require( '@stdlib/random/array/uniform' );
-var isnan = require( '@stdlib/math/base/assert/is-nan' );
-var pow = require( '@stdlib/math/base/special/pow' );
-var Complex128Array = require( '@stdlib/array/complex128' );
-var tryRequire = require( '@stdlib/utils/try-require' );
-var pkg = require( './../package.json' ).name;
-
-
-// VARIABLES //
-
-var zdscal = tryRequire( resolve( __dirname, './../lib/zdscal.native.js' ) );
-var opts = {
- 'skip': ( zdscal instanceof Error )
-};
-var options = {
- 'dtype': 'float64'
-};
-
-
-// FUNCTIONS //
-
-/**
-* Creates a benchmark function.
-*
-* @private
-* @param {PositiveInteger} len - array length
-* @returns {Function} benchmark function
-*/
-function createBenchmark( len ) {
- var zxbuf;
- var da;
- var zx;
-
- zxbuf = uniform( len*2, -100.0, 100.0, options );
- zx = new Complex128Array( zxbuf.buffer );
- da = 2.0;
-
- return benchmark;
-
- /**
- * Benchmark function.
- *
- * @private
- * @param {Benchmark} b - benchmark instance
- */
- function benchmark( b ) {
- var i;
-
- b.tic();
- for ( i = 0; i < b.iterations; i++ ) {
- zdscal( zx.length, da, zx, 1 );
- if ( isnan( zxbuf[ i%(len*2) ] ) ) {
- b.fail( 'should not return NaN' );
- }
- }
- b.toc();
- if ( isnan( zxbuf[ i%(len*2) ] ) ) {
- b.fail( 'should not return NaN' );
- }
- b.pass( 'benchmark finished' );
- b.end();
- }
-}
-
-
-// MAIN //
-
-/**
-* Main execution sequence.
-*
-* @private
-*/
-function main() {
- var len;
- var min;
- var max;
- var f;
- var i;
-
- min = 1; // 10^min
- max = 6; // 10^max
-
- for ( i = min; i <= max; i++ ) {
- len = pow( 10, i );
- f = createBenchmark( len );
- bench( pkg+'::native:len='+len, opts, f );
- }
-}
-
-main();
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.ndarray.native.js
deleted file mode 100644
index cb7628352495..000000000000
--- a/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.ndarray.native.js
+++ /dev/null
@@ -1,113 +0,0 @@
-/**
-* @license Apache-2.0
-*
-* Copyright (c) 2025 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 resolve = require( 'path' ).resolve;
-var bench = require( '@stdlib/bench' );
-var uniform = require( '@stdlib/random/array/uniform' );
-var isnan = require( '@stdlib/math/base/assert/is-nan' );
-var pow = require( '@stdlib/math/base/special/pow' );
-var Complex128Array = require( '@stdlib/array/complex128' );
-var tryRequire = require( '@stdlib/utils/try-require' );
-var pkg = require( './../package.json' ).name;
-
-
-// VARIABLES //
-
-var zdscal = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) );
-var opts = {
- 'skip': ( zdscal instanceof Error )
-};
-var options = {
- 'dtype': 'float64'
-};
-
-
-// FUNCTIONS //
-
-/**
-* Creates a benchmark function.
-*
-* @private
-* @param {PositiveInteger} len - array length
-* @returns {Function} benchmark function
-*/
-function createBenchmark( len ) {
- var zxbuf;
- var da;
- var zx;
-
- zxbuf = uniform( len*2, -100.0, 100.0, options );
- zx = new Complex128Array( zxbuf.buffer );
-
- return benchmark;
-
- /**
- * Benchmark function.
- *
- * @private
- * @param {Benchmark} b - benchmark instance
- */
- function benchmark( b ) {
- var i;
-
- b.tic();
- for ( i = 0; i < b.iterations; i++ ) {
- zdscal( zx.length, da, zx, 1, 0 );
- if ( isnan( zxbuf[ i%(len*2) ] ) ) {
- b.fail( 'should not return NaN' );
- }
- }
- b.toc();
- if ( isnan( zxbuf[ i%(len*2) ] ) ) {
- b.fail( 'should not return NaN' );
- }
- b.pass( 'benchmark finished' );
- b.end();
- }
-}
-
-
-// MAIN //
-
-/**
-* Main execution sequence.
-*
-* @private
-*/
-function main() {
- var len;
- var min;
- var max;
- var f;
- var i;
-
- min = 1; // 10^min
- max = 6; // 10^max
-
- for ( i = min; i <= max; i++ ) {
- len = pow( 10, i );
- f = createBenchmark( len );
- bench( pkg+'::native:ndarray:len='+len, opts, f );
- }
-}
-
-main();
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/c/Makefile b/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/c/Makefile
deleted file mode 100644
index cce2c865d7ad..000000000000
--- a/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/c/Makefile
+++ /dev/null
@@ -1,146 +0,0 @@
-#/
-# @license Apache-2.0
-#
-# Copyright (c) 2025 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.
-#/
-
-# VARIABLES #
-
-ifndef VERBOSE
- QUIET := @
-else
- QUIET :=
-endif
-
-# Determine the OS ([1][1], [2][2]).
-#
-# [1]: https://en.wikipedia.org/wiki/Uname#Examples
-# [2]: http://stackoverflow.com/a/27776822/2225624
-OS ?= $(shell uname)
-ifneq (, $(findstring MINGW,$(OS)))
- OS := WINNT
-else
-ifneq (, $(findstring MSYS,$(OS)))
- OS := WINNT
-else
-ifneq (, $(findstring CYGWIN,$(OS)))
- OS := WINNT
-else
-ifneq (, $(findstring Windows_NT,$(OS)))
- OS := WINNT
-endif
-endif
-endif
-endif
-
-# Define the program used for compiling C source files:
-ifdef C_COMPILER
- CC := $(C_COMPILER)
-else
- CC := gcc
-endif
-
-# Define the command-line options when compiling C files:
-CFLAGS ?= \
- -std=c99 \
- -O3 \
- -Wall \
- -pedantic
-
-# Determine whether to generate position independent code ([1][1], [2][2]).
-#
-# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options
-# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option
-ifeq ($(OS), WINNT)
- fPIC ?=
-else
- fPIC ?= -fPIC
-endif
-
-# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`):
-INCLUDE ?=
-
-# List of source files:
-SOURCE_FILES ?=
-
-# List of libraries (e.g., `-lopenblas -lpthread`):
-LIBRARIES ?=
-
-# List of library paths (e.g., `-L /foo/bar -L /beep/boop`):
-LIBPATH ?=
-
-# List of C targets:
-c_targets := benchmark.length.out
-
-
-# RULES #
-
-#/
-# Compiles source files.
-#
-# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`)
-# @param {string} [CFLAGS] - C compiler options
-# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
-# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`)
-# @param {string} [SOURCE_FILES] - list of source files
-# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`)
-# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`)
-#
-# @example
-# make
-#
-# @example
-# make all
-#/
-all: $(c_targets)
-
-.PHONY: all
-
-#/
-# Compiles C source files.
-#
-# @private
-# @param {string} CC - C compiler (e.g., `gcc`)
-# @param {string} CFLAGS - C compiler options
-# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
-# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`)
-# @param {string} SOURCE_FILES - list of source files
-# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`)
-# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`)
-#/
-$(c_targets): %.out: %.c
- $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES)
-
-#/
-# Runs compiled benchmarks.
-#
-# @example
-# make run
-#/
-run: $(c_targets)
- $(QUIET) ./$<
-
-.PHONY: run
-
-#/
-# Removes generated files.
-#
-# @example
-# make clean
-#/
-clean:
- $(QUIET) -rm -f *.o *.out
-
-.PHONY: clean
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/c/benchmark.length.c
deleted file mode 100644
index 7ff051891997..000000000000
--- a/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/c/benchmark.length.c
+++ /dev/null
@@ -1,153 +0,0 @@
-/**
-* @license Apache-2.0
-*
-* Copyright (c) 2025 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.
-*/
-
-#include "stdlib/blas/base/zdscal.h"
-#include "stdlib/complex/float64/ctor.h"
-#include
-#include
-#include
-#include
-#include
-
-#define NAME "zdscal"
-#define ITERATIONS 10000000
-#define REPEATS 3
-#define MIN 1
-#define MAX 6
-
-/**
-* Prints the TAP version.
-*/
-static void print_version( void ) {
- printf( "TAP version 13\n" );
-}
-
-/**
-* Prints the TAP summary.
-*
-* @param total total number of tests
-* @param passing total number of passing tests
-*/
-static void print_summary( int total, int passing ) {
- printf( "#\n" );
- printf( "1..%d\n", total ); // TAP plan
- printf( "# total %d\n", total );
- printf( "# pass %d\n", passing );
- printf( "#\n" );
- printf( "# ok\n" );
-}
-
-/**
-* Prints benchmarks results.
-*
-* @param iterations number of iterations
-* @param elapsed elapsed time in seconds
-*/
-static void print_results( int iterations, double elapsed ) {
- double rate = (double)iterations / elapsed;
- printf( " ---\n" );
- printf( " iterations: %d\n", iterations );
- printf( " elapsed: %0.9f\n", elapsed );
- printf( " rate: %0.9f\n", rate );
- printf( " ...\n" );
-}
-
-/**
-* Returns a clock time.
-*
-* @return clock time
-*/
-static double tic( void ) {
- struct timeval now;
- gettimeofday( &now, NULL );
- return (double)now.tv_sec + (double)now.tv_usec/1.0e6;
-}
-
-/**
-* Generates a random number on the interval [0,1).
-*
-* @return random number
-*/
-static double rand_double( void ) {
- int r = rand();
- return (double)r / ( (double)RAND_MAX + 1.0 );
-}
-
-/**
-* Runs a benchmark.
-*
-* @param iterations number of iterations
-* @param len array length
-* @return elapsed time in seconds
-*/
-static double benchmark( int iterations, int len ) {
- double da;
- double zx[ len*2 ];
- double elapsed;
- double t;
- int i;
-
- da = 2.0;
- for ( i = 0; i < len*2; i+=2 ) {
- zx[ i ] = ( rand_double()*2.0 ) - 1.0;
- zx[ i+1 ] = ( rand_double()*2.0 ) - 1.0;
- }
- t = tic();
- for ( i = 0; i < iterations; i++ ) {
- c_zdscal( len, da, (void *)zx, 1 );
- if ( zx[ 0 ] != zx[ 0 ] ) {
- printf( "should not return NaN\n" );
- break;
- }
- }
- elapsed = tic() - t;
- if ( zx[ 0 ] != zx[ 0 ] ) {
- printf( "should not return NaN\n" );
- }
- return elapsed;
-}
-
-/**
-* Main execution sequence.
-*/
-int main( void ) {
- double elapsed;
- int count;
- int iter;
- int len;
- int i;
- int j;
-
- // Use the current time to seed the random number generator:
- srand( time( NULL ) );
-
- print_version();
- count = 0;
- for ( i = MIN; i <= MAX; i++ ) {
- len = pow( 10, i );
- iter = ITERATIONS / pow( 10, i-1 );
- for ( j = 0; j < REPEATS; j++ ) {
- count += 1;
- printf( "# c::%s:len=%d\n", NAME, len );
- elapsed = benchmark( iter, len );
- print_results( iter, elapsed );
- printf( "ok %d benchmark finished\n", count );
- }
- }
- print_summary( count, count );
-}
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/fortran/Makefile b/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/fortran/Makefile
deleted file mode 100644
index 7b2a53414298..000000000000
--- a/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/fortran/Makefile
+++ /dev/null
@@ -1,141 +0,0 @@
-#/
-# @license Apache-2.0
-#
-# Copyright (c) 2025 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.
-#/
-
-# VARIABLES #
-
-ifndef VERBOSE
- QUIET := @
-else
- QUIET :=
-endif
-
-# Determine the OS ([1][1], [2][2]).
-#
-# [1]: https://en.wikipedia.org/wiki/Uname#Examples
-# [2]: http://stackoverflow.com/a/27776822/2225624
-OS ?= $(shell uname)
-ifneq (, $(findstring MINGW,$(OS)))
- OS := WINNT
-else
-ifneq (, $(findstring MSYS,$(OS)))
- OS := WINNT
-else
-ifneq (, $(findstring CYGWIN,$(OS)))
- OS := WINNT
-else
-ifneq (, $(findstring Windows_NT,$(OS)))
- OS := WINNT
-endif
-endif
-endif
-endif
-
-# Define the program used for compiling Fortran source files:
-ifdef FORTRAN_COMPILER
- FC := $(FORTRAN_COMPILER)
-else
- FC := gfortran
-endif
-
-# Define the command-line options when compiling Fortran files:
-FFLAGS ?= \
- -std=f95 \
- -ffree-form \
- -O3 \
- -Wall \
- -Wextra \
- -Wno-compare-reals \
- -Wimplicit-interface \
- -fno-underscoring \
- -pedantic
-
-# Determine whether to generate position independent code ([1][1], [2][2]).
-#
-# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options
-# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option
-ifeq ($(OS), WINNT)
- fPIC ?=
-else
- fPIC ?= -fPIC
-endif
-
-# List of includes (e.g., `-I /foo/bar -I /beep/boop`):
-INCLUDE ?=
-
-# List of Fortran source files:
-SOURCE_FILES ?= ../../src/zdscal.f
-
-# List of Fortran targets:
-f_targets := benchmark.length.out
-
-
-# RULES #
-
-#/
-# Compiles Fortran source files.
-#
-# @param {string} SOURCE_FILES - list of Fortran source files
-# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop`)
-# @param {string} [FORTRAN_COMPILER] - Fortran compiler
-# @param {string} [FFLAGS] - Fortran compiler flags
-# @param {(string|void)} [fPIC] - compiler flag indicating whether to generate position independent code
-#
-# @example
-# make
-#
-# @example
-# make all
-#/
-all: $(f_targets)
-
-.PHONY: all
-
-#/
-# Compiles Fortran source files.
-#
-# @private
-# @param {string} SOURCE_FILES - list of Fortran source files
-# @param {(string|void)} INCLUDE - list of includes (e.g., `-I /foo/bar -I /beep/boop`)
-# @param {string} FC - Fortran compiler
-# @param {string} FFLAGS - Fortran compiler flags
-# @param {(string|void)} fPIC - compiler flag indicating whether to generate position independent code
-#/
-$(f_targets): %.out: %.f
- $(QUIET) $(FC) $(FFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $<
-
-#/
-# Runs compiled benchmarks.
-#
-# @example
-# make run
-#/
-run: $(f_targets)
- $(QUIET) ./$<
-
-.PHONY: run
-
-#/
-# Removes generated files.
-#
-# @example
-# make clean
-#/
-clean:
- $(QUIET) -rm -f *.o *.out
-
-.PHONY: clean
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/fortran/benchmark.length.f b/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/fortran/benchmark.length.f
deleted file mode 100644
index 7bcf102fd323..000000000000
--- a/lib/node_modules/@stdlib/blas/base/zdscal/benchmark/fortran/benchmark.length.f
+++ /dev/null
@@ -1,222 +0,0 @@
-!>
-! @license Apache-2.0
-!
-! Copyright (c) 2025 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.
-!<
-
-!> Benchmarks.
-!
-! ## Notes
-!
-! - Written in "free form" Fortran 95.
-!
-!<
-program bench
- implicit none
- ! ..
- ! Local constants:
- character(5), parameter :: name = 'zdscal' ! if changed, be sure to adjust length
- integer, parameter :: iterations = 10000000
- integer, parameter :: repeats = 3
- integer, parameter :: min = 1
- integer, parameter :: max = 6
- ! ..
- ! Run the benchmarks:
- call main()
- ! ..
- ! Functions:
-contains
- ! ..
- ! Prints the TAP version.
- ! ..
- subroutine print_version()
- print '(A)', 'TAP version 13'
- end subroutine print_version
- ! ..
- ! Prints the TAP summary.
- !
- ! @param {integer} total - total number of tests
- ! @param {integer} passing - total number of passing tests
- ! ..
- subroutine print_summary( total, passing )
- ! ..
- ! Scalar arguments:
- integer, intent(in) :: total, passing
- ! ..
- ! Local variables:
- character(len=999) :: str, tmp
- ! ..
- ! Intrinsic functions:
- intrinsic adjustl, trim
- ! ..
- print '(A)', '#'
- ! ..
- write (str, '(I15)') total ! TAP plan
- tmp = adjustl( str )
- print '(A,A)', '1..', trim( tmp )
- ! ..
- print '(A,A)', '# total ', trim( tmp )
- ! ..
- write (str, '(I15)') passing
- tmp = adjustl( str )
- print '(A,A)', '# pass ', trim( tmp )
- ! ..
- print '(A)', '#'
- print '(A)', '# ok'
- end subroutine print_summary
- ! ..
- ! Prints benchmarks results.
- !
- ! @param {integer} iterations - number of iterations
- ! @param {double} elapsed - elapsed time in seconds
- ! ..
- subroutine print_results( iterations, elapsed )
- ! ..
- ! Scalar arguments:
- double precision, intent(in) :: elapsed
- integer, intent(in) :: iterations
- ! ..
- ! Local variables:
- double precision :: rate
- character(len=999) :: str, tmp
- ! ..
- ! Intrinsic functions:
- intrinsic dble, adjustl, trim
- ! ..
- rate = dble( iterations ) / elapsed
- ! ..
- print '(A)', ' ---'
- ! ..
- write (str, '(I15)') iterations
- tmp = adjustl( str )
- print '(A,A)', ' iterations: ', trim( tmp )
- ! ..
- write (str, '(f0.9)') elapsed
- tmp = adjustl( str )
- print '(A,A)', ' elapsed: ', trim( tmp )
- ! ..
- write( str, '(f0.9)') rate
- tmp = adjustl( str )
- print '(A,A)', ' rate: ', trim( tmp )
- ! ..
- print '(A)', ' ...'
- end subroutine print_results
- ! ..
- ! Runs a benchmark.
- !
- ! @param {integer} iterations - number of iterations
- ! @param {integer} len - array length
- ! @return {double} elapsed time in seconds
- ! ..
- double precision function benchmark( iterations, len )
- ! ..
- ! External functions:
- interface
- subroutine zdscal( N, da, zx, strideX )
- double precision :: da
- complex(kind=kind(0.0d0)) :: zx(*)
- integer :: strideX, N
- end subroutine zdscal
- end interface
- ! ..
- ! Scalar arguments:
- integer, intent(in) :: iterations, len
- ! ..
- ! Local scalars:
- double precision :: elapsed, r1, r2
- real :: t1, t2
- integer :: i
- ! ..
- ! Local array:
- complex(kind=kind(0.0d0)), allocatable :: x(:)
- ! ..
- ! Local scalar:
- double precision :: da
- ! ..
- ! Intrinsic functions:
- intrinsic random_number, cpu_time, cmplx
- ! ..
- ! Allocate array:
- allocate( x(len) )
- ! ..
- call random_number( da )
- call random_number( r2 )
- do i = 1, len
- call random_number( r1 )
- call random_number( r2 )
- x( i ) = cmplx( (r1*10000.0d0)-5000.0d0, (r2*1000.0d0)-5000.0d0, kind=kind(0.0d0) )
- end do
- ! ..
- call cpu_time( t1 )
- ! ..
- do i = 1, iterations
- call zdscal( len, da, x, 1 );
- if ( x( 1 ) /= x( 1 ) ) then
- print '(A)', 'should not return NaN'
- exit
- end if
- end do
- ! ..
- call cpu_time( t2 )
- ! ..
- elapsed = t2 - t1
- ! ..
- if ( x( 1 ) /= x( 1 ) ) then
- print '(A)', 'should not return NaN'
- end if
- ! ..
- ! Deallocate array:
- deallocate( x )
- ! ..
- benchmark = elapsed
- return
- end function benchmark
- ! ..
- ! Main execution sequence.
- ! ..
- subroutine main()
- ! ..
- ! Local variables:
- integer :: count, iter, len, i, j
- double precision :: elapsed
- character(len=999) :: str, tmp
- ! ..
- ! Intrinsic functions:
- intrinsic adjustl, trim
- ! ..
- call print_version()
- count = 0
- do i = min, max
- len = 10**i
- iter = iterations / 10**(i-1)
- do j = 1, repeats
- count = count + 1
- ! ..
- write (str, '(I15)') len
- tmp = adjustl( str )
- print '(A,A,A,A)', '# fortran::', name, ':len=', trim( tmp )
- ! ..
- elapsed = benchmark( iter, len )
- ! ..
- call print_results( iter, elapsed )
- ! ..
- write (str, '(I15)') count
- tmp = adjustl( str )
- print '(A,A,A)', 'ok ', trim( tmp ), ' benchmark finished'
- end do
- end do
- call print_summary( count, count )
- end subroutine main
-end program bench
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/binding.gyp b/lib/node_modules/@stdlib/blas/base/zdscal/binding.gyp
deleted file mode 100644
index 08de71a2020e..000000000000
--- a/lib/node_modules/@stdlib/blas/base/zdscal/binding.gyp
+++ /dev/null
@@ -1,265 +0,0 @@
-# @license Apache-2.0
-#
-# Copyright (c) 2025 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.
-
-# A `.gyp` file for building a Node.js native add-on.
-#
-# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md
-# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md
-{
- # List of files to include in this file:
- 'includes': [
- './include.gypi',
- ],
-
- # Define variables to be used throughout the configuration for all targets:
- 'variables': {
- # Target name should match the add-on export name:
- 'addon_target_name%': 'addon',
-
- # Fortran compiler (to override -Dfortran_compiler=):
- 'fortran_compiler%': 'gfortran',
-
- # Fortran compiler flags:
- 'fflags': [
- # Specify the Fortran standard to which a program is expected to conform:
- '-std=f95',
-
- # Indicate that the layout is free-form source code:
- '-ffree-form',
-
- # Aggressive optimization:
- '-O3',
-
- # Enable commonly used warning options:
- '-Wall',
-
- # Warn if source code contains problematic language features:
- '-Wextra',
-
- # Warn if a procedure is called without an explicit interface:
- '-Wimplicit-interface',
-
- # Do not transform names of entities specified in Fortran source files by appending underscores (i.e., don't mangle names, thus allowing easier usage in C wrappers):
- '-fno-underscoring',
-
- # Warn if source code contains Fortran 95 extensions and C-language constructs:
- '-pedantic',
-
- # Compile but do not link (output is an object file):
- '-c',
- ],
-
- # Set variables based on the host OS:
- 'conditions': [
- [
- 'OS=="win"',
- {
- # Define the object file suffix:
- 'obj': 'obj',
- },
- {
- # Define the object file suffix:
- 'obj': 'o',
- }
- ], # end condition (OS=="win")
- ], # end conditions
- }, # end variables
-
- # Define compile targets:
- 'targets': [
-
- # Target to generate an add-on:
- {
- # The target name should match the add-on export name:
- 'target_name': '<(addon_target_name)',
-
- # Define dependencies:
- 'dependencies': [],
-
- # Define directories which contain relevant include headers:
- 'include_dirs': [
- # Local include directory:
- '<@(include_dirs)',
- ],
-
- # List of source files:
- 'sources': [
- '<@(src_files)',
- ],
-
- # Settings which should be applied when a target's object files are used as linker input:
- 'link_settings': {
- # Define libraries:
- 'libraries': [
- '<@(libraries)',
- ],
-
- # Define library directories:
- 'library_dirs': [
- '<@(library_dirs)',
- ],
- },
-
- # C/C++ compiler flags:
- 'cflags': [
- # Enable commonly used warning options:
- '-Wall',
-
- # Aggressive optimization:
- '-O3',
- ],
-
- # C specific compiler flags:
- 'cflags_c': [
- # Specify the C standard to which a program is expected to conform:
- '-std=c99',
- ],
-
- # C++ specific compiler flags:
- 'cflags_cpp': [
- # Specify the C++ standard to which a program is expected to conform:
- '-std=c++11',
- ],
-
- # Linker flags:
- 'ldflags': [],
-
- # Apply conditions based on the host OS:
- 'conditions': [
- [
- 'OS=="mac"',
- {
- # Linker flags:
- 'ldflags': [
- '-undefined dynamic_lookup',
- '-Wl,-no-pie',
- '-Wl,-search_paths_first',
- ],
- },
- ], # end condition (OS=="mac")
- [
- 'OS!="win"',
- {
- # C/C++ flags:
- 'cflags': [
- # Generate platform-independent code:
- '-fPIC',
- ],
- },
- ], # end condition (OS!="win")
- ], # end conditions
-
- # Define custom build actions for particular inputs:
- 'rules': [
- {
- # Define a rule for processing Fortran files:
- 'extension': 'f',
-
- # Define the pathnames to be used as inputs when performing processing:
- 'inputs': [
- # Full path of the current input:
- '<(RULE_INPUT_PATH)'
- ],
-
- # Define the outputs produced during processing:
- 'outputs': [
- # Store an output object file in a directory for placing intermediate results (only accessible within a single target):
- '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).<(obj)'
- ],
-
- # Define the rule for compiling Fortran based on the host OS:
- 'conditions': [
- [
- 'OS=="win"',
-
- # Rule to compile Fortran on Windows:
- {
- 'rule_name': 'compile_fortran_windows',
- 'message': 'Compiling Fortran file <(RULE_INPUT_PATH) on Windows...',
-
- 'process_outputs_as_sources': 0,
-
- # Define the command-line invocation:
- 'action': [
- '<(fortran_compiler)',
- '<@(fflags)',
- '<@(_inputs)',
- '-o',
- '<@(_outputs)',
- ],
- },
-
- # Rule to compile Fortran on non-Windows:
- {
- 'rule_name': 'compile_fortran_linux',
- 'message': 'Compiling Fortran file <(RULE_INPUT_PATH) on Linux...',
-
- 'process_outputs_as_sources': 1,
-
- # Define the command-line invocation:
- 'action': [
- '<(fortran_compiler)',
- '<@(fflags)',
- '-fPIC', # generate platform-independent code
- '<@(_inputs)',
- '-o',
- '<@(_outputs)',
- ],
- }
- ], # end condition (OS=="win")
- ], # end conditions
- }, # end rule (extension=="f")
- ], # end rules
- }, # end target <(addon_target_name)
-
- # Target to copy a generated add-on to a standard location:
- {
- 'target_name': 'copy_addon',
-
- # Declare that the output of this target is not linked:
- 'type': 'none',
-
- # Define dependencies:
- 'dependencies': [
- # Require that the add-on be generated before building this target:
- '<(addon_target_name)',
- ],
-
- # Define a list of actions:
- 'actions': [
- {
- 'action_name': 'copy_addon',
- 'message': 'Copying addon...',
-
- # Explicitly list the inputs in the command-line invocation below:
- 'inputs': [],
-
- # Declare the expected outputs:
- 'outputs': [
- '<(addon_output_dir)/<(addon_target_name).node',
- ],
-
- # Define the command-line invocation:
- 'action': [
- 'cp',
- '<(PRODUCT_DIR)/<(addon_target_name).node',
- '<(addon_output_dir)/<(addon_target_name).node',
- ],
- },
- ], # end actions
- }, # end target copy_addon
- ], # end targets
-}
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/examples/c/Makefile b/lib/node_modules/@stdlib/blas/base/zdscal/examples/c/Makefile
deleted file mode 100644
index 25ced822f96a..000000000000
--- a/lib/node_modules/@stdlib/blas/base/zdscal/examples/c/Makefile
+++ /dev/null
@@ -1,146 +0,0 @@
-#/
-# @license Apache-2.0
-#
-# Copyright (c) 2025 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.
-#/
-
-# VARIABLES #
-
-ifndef VERBOSE
- QUIET := @
-else
- QUIET :=
-endif
-
-# Determine the OS ([1][1], [2][2]).
-#
-# [1]: https://en.wikipedia.org/wiki/Uname#Examples
-# [2]: http://stackoverflow.com/a/27776822/2225624
-OS ?= $(shell uname)
-ifneq (, $(findstring MINGW,$(OS)))
- OS := WINNT
-else
-ifneq (, $(findstring MSYS,$(OS)))
- OS := WINNT
-else
-ifneq (, $(findstring CYGWIN,$(OS)))
- OS := WINNT
-else
-ifneq (, $(findstring Windows_NT,$(OS)))
- OS := WINNT
-endif
-endif
-endif
-endif
-
-# Define the program used for compiling C source files:
-ifdef C_COMPILER
- CC := $(C_COMPILER)
-else
- CC := gcc
-endif
-
-# Define the command-line options when compiling C files:
-CFLAGS ?= \
- -std=c99 \
- -O3 \
- -Wall \
- -pedantic
-
-# Determine whether to generate position independent code ([1][1], [2][2]).
-#
-# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options
-# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option
-ifeq ($(OS), WINNT)
- fPIC ?=
-else
- fPIC ?= -fPIC
-endif
-
-# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`):
-INCLUDE ?=
-
-# List of source files:
-SOURCE_FILES ?=
-
-# List of libraries (e.g., `-lopenblas -lpthread`):
-LIBRARIES ?=
-
-# List of library paths (e.g., `-L /foo/bar -L /beep/boop`):
-LIBPATH ?=
-
-# List of C targets:
-c_targets := example.out
-
-
-# RULES #
-
-#/
-# Compiles source files.
-#
-# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`)
-# @param {string} [CFLAGS] - C compiler options
-# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
-# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`)
-# @param {string} [SOURCE_FILES] - list of source files
-# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`)
-# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`)
-#
-# @example
-# make
-#
-# @example
-# make all
-#/
-all: $(c_targets)
-
-.PHONY: all
-
-#/
-# Compiles C source files.
-#
-# @private
-# @param {string} CC - C compiler (e.g., `gcc`)
-# @param {string} CFLAGS - C compiler options
-# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
-# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`)
-# @param {string} SOURCE_FILES - list of source files
-# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`)
-# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`)
-#/
-$(c_targets): %.out: %.c
- $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES)
-
-#/
-# Runs compiled examples.
-#
-# @example
-# make run
-#/
-run: $(c_targets)
- $(QUIET) ./$<
-
-.PHONY: run
-
-#/
-# Removes generated files.
-#
-# @example
-# make clean
-#/
-clean:
- $(QUIET) -rm -f *.o *.out
-
-.PHONY: clean
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/examples/c/example.c b/lib/node_modules/@stdlib/blas/base/zdscal/examples/c/example.c
deleted file mode 100644
index 5a9e11348b41..000000000000
--- a/lib/node_modules/@stdlib/blas/base/zdscal/examples/c/example.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/**
-* @license Apache-2.0
-*
-* Copyright (c) 2025 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.
-*/
-
-#include "stdlib/blas/base/zdscal.h"
-#include "stdlib/complex/float64/ctor.h"
-#include
-
-int main( void ) {
- // Create a strided array of interleaved real and imaginary components:
- double zx[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
-
- // Create a double-precision scalar:
- const double da = 2.0;
-
- // Specify the number of elements:
- const int N = 4;
-
- // Specify stride length:
- const int strideX = 1;
-
- // Scale the elements of the array:
- c_zdscal( N, da, (void *)zx, strideX );
-
- // Print the result:
- for ( int i = 0; i < N; i++ ) {
- printf( "zx[ %i ] = %lf + %lfj\n", i, zx[ i*2 ], zx[ (i*2)+1 ] );
- }
-}
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/include.gypi b/lib/node_modules/@stdlib/blas/base/zdscal/include.gypi
deleted file mode 100644
index 4217944b5d20..000000000000
--- a/lib/node_modules/@stdlib/blas/base/zdscal/include.gypi
+++ /dev/null
@@ -1,70 +0,0 @@
-# @license Apache-2.0
-#
-# Copyright (c) 2025 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.
-
-# A GYP include file for building a Node.js native add-on.
-#
-# Note that nesting variables is required due to how GYP processes a configuration. Any variables defined within a nested 'variables' section is defined in the outer scope. Thus, conditions in the outer variable scope are free to use these variables without running into "variable undefined" errors.
-#
-# Main documentation:
-#
-# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md
-# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md
-#
-# Variable nesting hacks:
-#
-# [3]: https://chromium.googlesource.com/external/skia/gyp/+/master/common_variables.gypi
-# [4]: https://src.chromium.org/viewvc/chrome/trunk/src/build/common.gypi?revision=127004
-{
- # Define variables to be used throughout the configuration for all targets:
- 'variables': {
- 'variables': {
- # Host BLAS library (to override -Dblas=):
- 'blas%': '',
-
- # Path to BLAS library (to override -Dblas_dir=):
- 'blas_dir%': '',
- }, # end variables
-
- # Source directory:
- 'src_dir': './src',
-
- # Include directories:
- 'include_dirs': [
- '<@(blas_dir)',
- '
-*
-* var re = real( z );
-* // returns 2.0
-*
-* var im = imag( z );
-* // returns 4.0
-*/
-function zdscal( N, da, zx, strideX, offsetX ) {
- var viewZX;
- offsetX = minViewBufferIndex( N, strideX, offsetX );
- viewZX = reinterpret( zx, offsetX );
- addon( N, da, viewZX, strideX );
- return zx;
-}
-
-
-// EXPORTS //
-
-module.exports = zdscal;
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/lib/zdscal.native.js b/lib/node_modules/@stdlib/blas/base/zdscal/lib/zdscal.native.js
deleted file mode 100644
index 1578fc541977..000000000000
--- a/lib/node_modules/@stdlib/blas/base/zdscal/lib/zdscal.native.js
+++ /dev/null
@@ -1,66 +0,0 @@
-/**
-* @license Apache-2.0
-*
-* Copyright (c) 2025 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 reinterpret = require( '@stdlib/strided/base/reinterpret-complex128' );
-var addon = require( './../src/addon.node' );
-
-
-// MAIN //
-
-/**
-* Scales a double-precision complex floating-point vector by a double-precision complex floating-point constant.
-*
-* @param {PositiveInteger} N - number of indexed elements
-* @param {number} da - scalar constant
-* @param {Complex128Array} zx - input array
-* @param {integer} strideX - `zx` stride length
-* @returns {Complex128Array} input array
-*
-* @example
-* var Complex128Array = require( '@stdlib/array/complex128' );
-* var real = require( '@stdlib/complex/float64/real' );
-* var imag = require( '@stdlib/complex/float64/imag' );
-*
-* var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
-* var da = 2.0;
-*
-* zdscal( zx.length, da, zx, 1 );
-*
-* var z = zx.get( 0 );
-* // returns
-*
-* var re = real( z );
-* // returns 2.0
-*
-* var im = imag( z );
-* // returns 4.0
-*/
-function zdscal( N, da, zx, strideX ) {
- var viewZX = reinterpret( zx, 0 );
- addon( N, da, viewZX, strideX );
- return zx;
-}
-
-
-// EXPORTS //
-
-module.exports = zdscal;
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/manifest.json b/lib/node_modules/@stdlib/blas/base/zdscal/manifest.json
deleted file mode 100644
index 03e61d880fc8..000000000000
--- a/lib/node_modules/@stdlib/blas/base/zdscal/manifest.json
+++ /dev/null
@@ -1,436 +0,0 @@
-{
- "options": {
- "task": "build",
- "os": "linux",
- "blas": "",
- "wasm": false
- },
- "fields": [
- {
- "field": "src",
- "resolve": true,
- "relative": true
- },
- {
- "field": "include",
- "resolve": true,
- "relative": true
- },
- {
- "field": "libraries",
- "resolve": false,
- "relative": false
- },
- {
- "field": "libpath",
- "resolve": true,
- "relative": false
- }
- ],
- "confs": [
- {
- "task": "build",
- "os": "linux",
- "blas": "",
- "wasm": false,
- "src": [
- "./src/zdscal.f",
- "./src/zdscal_f.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/napi/export",
- "@stdlib/napi/argv",
- "@stdlib/napi/argv-int64",
- "@stdlib/napi/argv-strided-complex128array",
- "@stdlib/napi/argv-double",
- "@stdlib/complex/float64/ctor"
- ]
- },
- {
- "task": "benchmark",
- "os": "linux",
- "blas": "",
- "wasm": false,
- "src": [
- "./src/zdscal.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/complex/float64/ctor"
- ]
- },
- {
- "task": "examples",
- "os": "linux",
- "blas": "",
- "wasm": false,
- "src": [
- "./src/zdscal.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/complex/float64/ctor"
- ]
- },
-
- {
- "task": "build",
- "os": "linux",
- "blas": "openblas",
- "wasm": false,
- "src": [
- "./src/zdscal_cblas.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [
- "-lopenblas",
- "-lpthread"
- ],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/napi/export",
- "@stdlib/napi/argv",
- "@stdlib/napi/argv-int64",
- "@stdlib/napi/argv-strided-complex128array",
- "@stdlib/napi/argv-double",
- "@stdlib/complex/float64/ctor"
- ]
- },
- {
- "task": "benchmark",
- "os": "linux",
- "blas": "openblas",
- "wasm": false,
- "src": [
- "./src/zdscal_cblas.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [
- "-lopenblas",
- "-lpthread"
- ],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/complex/float32/ctor"
- ]
- },
- {
- "task": "examples",
- "os": "linux",
- "blas": "openblas",
- "wasm": false,
- "src": [
- "./src/zdscal_cblas.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [
- "-lopenblas",
- "-lpthread"
- ],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/complex/float32/ctor"
- ]
- },
-
- {
- "task": "build",
- "os": "mac",
- "blas": "",
- "wasm": false,
- "src": [
- "./src/zdscal.f",
- "./src/zdscal_f.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/napi/export",
- "@stdlib/napi/argv",
- "@stdlib/napi/argv-int64",
- "@stdlib/napi/argv-strided-complex128array",
- "@stdlib/napi/argv-double",
- "@stdlib/complex/float64/ctor"
- ]
- },
- {
- "task": "benchmark",
- "os": "mac",
- "blas": "",
- "wasm": false,
- "src": [
- "./src/zdscal.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/complex/float64/ctor"
- ]
- },
- {
- "task": "examples",
- "os": "mac",
- "blas": "",
- "wasm": false,
- "src": [
- "./src/zdscal.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/complex/float64/ctor"
- ]
- },
-
- {
- "task": "build",
- "os": "mac",
- "blas": "apple_accelerate_framework",
- "wasm": false,
- "src": [
- "./src/zdscal_cblas.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [
- "-lblas"
- ],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/napi/export",
- "@stdlib/napi/argv",
- "@stdlib/napi/argv-int64",
- "@stdlib/napi/argv-strided-complex128array",
- "@stdlib/napi/argv-double",
- "@stdlib/complex/float64/ctor"
- ]
- },
- {
- "task": "benchmark",
- "os": "mac",
- "blas": "apple_accelerate_framework",
- "wasm": false,
- "src": [
- "./src/zdscal_cblas.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [
- "-lblas"
- ],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/complex/float64/ctor"
- ]
- },
- {
- "task": "examples",
- "os": "mac",
- "blas": "apple_accelerate_framework",
- "wasm": false,
- "src": [
- "./src/zdscal_cblas.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [
- "-lblas"
- ],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/complex/float64/ctor"
- ]
- },
-
- {
- "task": "build",
- "os": "mac",
- "blas": "openblas",
- "wasm": false,
- "src": [
- "./src/zdscal_cblas.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [
- "-lopenblas",
- "-lpthread"
- ],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/napi/export",
- "@stdlib/napi/argv",
- "@stdlib/napi/argv-int64",
- "@stdlib/napi/argv-strided-complex128array",
- "@stdlib/napi/argv-double",
- "@stdlib/complex/float64/ctor"
- ]
- },
- {
- "task": "benchmark",
- "os": "mac",
- "blas": "openblas",
- "wasm": false,
- "src": [
- "./src/zdscal_cblas.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [
- "-lopenblas",
- "-lpthread"
- ],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/complex/float64/ctor"
- ]
- },
- {
- "task": "examples",
- "os": "mac",
- "blas": "openblas",
- "wasm": false,
- "src": [
- "./src/zdscal_cblas.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [
- "-lopenblas",
- "-lpthread"
- ],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/complex/float64/ctor"
- ]
- },
-
- {
- "task": "build",
- "os": "win",
- "blas": "",
- "wasm": false,
- "src": [
- "./src/zdscal.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/napi/export",
- "@stdlib/napi/argv",
- "@stdlib/napi/argv-int64",
- "@stdlib/napi/argv-strided-complex128array",
- "@stdlib/napi/argv-double",
- "@stdlib/complex/float64/ctor"
- ]
- },
- {
- "task": "benchmark",
- "os": "win",
- "blas": "",
- "wasm": false,
- "src": [
- "./src/zdscal.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/complex/float64/ctor"
- ]
- },
- {
- "task": "examples",
- "os": "win",
- "blas": "",
- "wasm": false,
- "src": [
- "./src/zdscal.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/complex/float64/ctor"
- ]
- },
-
- {
- "task": "build",
- "os": "",
- "blas": "",
- "wasm": true,
- "src": [
- "./src/zdscal.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/complex/float64/ctor"
- ]
- }
- ]
-}
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/src/Makefile b/lib/node_modules/@stdlib/blas/base/zdscal/src/Makefile
deleted file mode 100644
index 7733b6180cb4..000000000000
--- a/lib/node_modules/@stdlib/blas/base/zdscal/src/Makefile
+++ /dev/null
@@ -1,70 +0,0 @@
-#/
-# @license Apache-2.0
-#
-# Copyright (c) 2025 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.
-#/
-
-# VARIABLES #
-
-ifndef VERBOSE
- QUIET := @
-else
- QUIET :=
-endif
-
-# Determine the OS ([1][1], [2][2]).
-#
-# [1]: https://en.wikipedia.org/wiki/Uname#Examples
-# [2]: http://stackoverflow.com/a/27776822/2225624
-OS ?= $(shell uname)
-ifneq (, $(findstring MINGW,$(OS)))
- OS := WINNT
-else
-ifneq (, $(findstring MSYS,$(OS)))
- OS := WINNT
-else
-ifneq (, $(findstring CYGWIN,$(OS)))
- OS := WINNT
-else
-ifneq (, $(findstring Windows_NT,$(OS)))
- OS := WINNT
-endif
-endif
-endif
-endif
-
-
-# RULES #
-
-#/
-# Removes generated files for building an add-on.
-#
-# @example
-# make clean-addon
-#/
-clean-addon:
- $(QUIET) -rm -f *.o *.node
-
-.PHONY: clean-addon
-
-#/
-# Removes generated files.
-#
-# @example
-# make clean
-#/
-clean: clean-addon
-
-.PHONY: clean
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/src/addon.c b/lib/node_modules/@stdlib/blas/base/zdscal/src/addon.c
deleted file mode 100644
index daef98e3b2cd..000000000000
--- a/lib/node_modules/@stdlib/blas/base/zdscal/src/addon.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
-* @license Apache-2.0
-*
-* Copyright (c) 2025 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.
-*/
-
-#include "stdlib/blas/base/zdscal.h"
-#include "stdlib/napi/export.h"
-#include "stdlib/napi/argv.h"
-#include "stdlib/napi/argv_int64.h"
-#include "stdlib/napi/argv_double.h"
-#include "stdlib/napi/argv_strided_complex128array.h"
-#include
-
-/**
-* Receives JavaScript callback invocation data.
-*
-* @param env environment under which the function is invoked
-* @param info callback data
-* @return Node-API value
-*/
-static napi_value addon( napi_env env, napi_callback_info info ) {
- STDLIB_NAPI_ARGV( env, info, argv, argc, 4 );
- STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
- STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 3 );
- STDLIB_NAPI_ARGV_DOUBLE( env, da, argv, 1 );
- STDLIB_NAPI_ARGV_STRIDED_COMPLEX128ARRAY( env, ZX, N, strideX, argv, 2 );
- c_zdscal( N, da, (void *)ZX, strideX );
- return NULL;
-}
-
-STDLIB_NAPI_MODULE_EXPORT_FCN( addon )
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal.c b/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal.c
deleted file mode 100644
index 3d72f855f546..000000000000
--- a/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/**
-* @license Apache-2.0
-*
-* Copyright (c) 2025 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.
-*/
-
-#include "stdlib/blas/base/zdscal.h"
-#include "stdlib/blas/base/shared.h"
-#include "stdlib/complex/float64/ctor.h"
-#include
-
-/**
-* Scales a double-precision complex floating-point vector by a double-precision floating-point constant.
-*
-* @param N number of indexed elements
-* @param da scalar constant
-* @param ZX input array
-* @param strideX ZX stride length
-*/
-void API_SUFFIX(c_zdscal)( const CBLAS_INT N, const double da, void *ZX, const CBLAS_INT strideX ) {
- stdlib_complex128_t* zp;
- CBLAS_INT i;
-
- uint8_t *ip1 = (uint8_t *)ZX;
- int64_t is1 = (int64_t)(16 * strideX);
-
- if ( N <= 0 || strideX <= 0 ) {
- return;
- }
- for ( i = 0; i < N; i++, ip1 += is1 ) {
- zp = (stdlib_complex128_t *)ip1;
- zp->re *= da;
- zp->im *= da;
- }
- return;
-}
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal.f b/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal.f
deleted file mode 100644
index 086c7113f37c..000000000000
--- a/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal.f
+++ /dev/null
@@ -1,85 +0,0 @@
-!>
-! @license Apache-2.0
-!
-! Copyright (c) 2025 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.
-!<
-
-!> Scales a double-precision complex floating-point vector by a double-precision floating-point constant.
-!
-! ## Notes
-!
-! * Modified version of reference BLAS level1 routine (version 3.9.0). Updated to "free form" Fortran 95.
-!
-! ## Authors
-!
-! * Univ. of Tennessee
-! * Univ. of California Berkeley
-! * Univ. of Colorado Denver
-! * NAG Ltd.
-!
-! ## History
-!
-! * Jack Dongarra, linpack, 3/11/78.
-!
-! - modified 3/93 to return if incx .le. 0.
-! - modified 12/3/93, array(1) declarations changed to array(*)
-!
-! ## License
-!
-! From :
-!
-! > The reference BLAS is a freely-available software package. It is available from netlib via anonymous ftp and the World Wide Web. Thus, it can be included in commercial software packages (and has been). We only ask that proper credit be given to the authors.
-! >
-! > Like all software, it is copyrighted. It is not trademarked, but we do ask the following:
-! >
-! > * If you modify the source for these routines we ask that you change the name of the routine and comment the changes made to the original.
-! >
-! > * We will gladly answer any questions regarding the software. If a modification is done, however, it is the responsibility of the person who modified the routine to provide support.
-!
-! @param {integer} N - number of indexed elements
-! @param {double} da - scalar constant
-! @param {Array>} zx - input array
-! @param {integer} strideX - `zx` stride length
-!<
-subroutine zdscal( N, da, zx, strideX )
- implicit none
- ! ..
- ! Scalar arguments:
- double precision :: da
- integer :: strideX, N
- ! ..
- ! Array arguments:
- complex(kind=kind(0.0d0)) :: zx(*)
- ! ..
- ! Local scalars:
- integer :: ix, i
- ! ..
- if ( N <= 0 .OR. strideX <= 0 ) then
- return
- end if
- ! ..
- if ( strideX == 1 ) then
- do i = 1, N
- zx(i) = da * zx(i)
- end do
- else
- ix = 1
- do i = 1, N
- zx(ix) = da * zx(ix)
- ix = ix + strideX
- end do
- end if
- return
-end subroutine zdscal
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal_cblas.c b/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal_cblas.c
deleted file mode 100644
index 8730f8a13923..000000000000
--- a/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal_cblas.c
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
-* @license Apache-2.0
-*
-* Copyright (c) 2025 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.
-*/
-
-#include "stdlib/blas/base/zdscal.h"
-#include "stdlib/blas/base/zdscal_cblas.h"
-#include "stdlib/blas/base/shared.h"
-#include "stdlib/complex/float64/ctor.h"
-
-/**
-* Scales a double-precision complex floating-point vector by a double-precision floating-point constant.
-*
-* @param N number of indexed elements
-* @param da scalar constant
-* @param ZX input array
-* @param strideX ZX stride length
-*/
-void API_SUFFIX(c_zdscal)( const CBLAS_INT N, const double da, void *ZX, const CBLAS_INT strideX ) {
- cblas_zdscal( N, da, ZX, strideX );
-}
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal_f.c b/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal_f.c
deleted file mode 100644
index 6c6d08005097..000000000000
--- a/lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal_f.c
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
-* @license Apache-2.0
-*
-* Copyright (c) 2025 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.
-*/
-
-#include "stdlib/blas/base/zdscal.h"
-#include "stdlib/blas/base/zdscal_fortran.h"
-#include "stdlib/blas/base/shared.h"
-#include "stdlib/complex/float64/ctor.h"
-
-/**
-* Scales a double-precision complex floating-point vector by a double-precision floating-point constant.
-*
-* @param N number of indexed elements
-* @param da scalar constant
-* @param ZX input array
-* @param strideX ZX stride length
-*/
-void API_SUFFIX(c_zdscal)( const CBLAS_INT N, const double da, void *ZX, const CBLAS_INT strideX ) {
- zdscal( &N, &da, ZX, &strideX );
-}
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/test/test.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/zdscal/test/test.ndarray.native.js
deleted file mode 100644
index 666557408093..000000000000
--- a/lib/node_modules/@stdlib/blas/base/zdscal/test/test.ndarray.native.js
+++ /dev/null
@@ -1,327 +0,0 @@
-/**
-* @license Apache-2.0
-*
-* Copyright (c) 2025 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 resolve = require( 'path' ).resolve;
-var tape = require( 'tape' );
-var Complex128Array = require( '@stdlib/array/complex128' );
-var Float64Array = require( '@stdlib/array/float64' );
-var EPS = require( '@stdlib/constants/float64/eps' );
-var abs = require( '@stdlib/math/base/special/abs' );
-var tryRequire = require( '@stdlib/utils/try-require' );
-
-
-// VARIABLES //
-
-var zdscal = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) );
-var opts = {
- 'skip': ( zdscal instanceof Error )
-};
-
-
-// TESTS //
-
-tape( 'main export is a function', opts, function test( t ) {
- t.ok( true, __filename );
- t.strictEqual( typeof zdscal, 'function', 'main export is a function' );
- t.end();
-});
-
-tape( 'the function has an arity of 5', opts, function test( t ) {
- t.strictEqual( zdscal.length, 5, 'arity of 5' );
- t.end();
-});
-
-tape( 'the function scales elements from `zx` by `da`', opts, function test( t ) {
- var expected;
- var delta;
- var viewX;
- var tol;
- var da;
- var zx;
- var k;
-
- zx = new Complex128Array([
- 0.3, // 1
- 0.1, // 1
- 0.5, // 2
- 0.0, // 2
- 0.0, // 3
- 0.5, // 3
- 0.0, // 4
- 0.2, // 4
- 2.0,
- 3.0,
- 2.0,
- 3.0
- ]);
- da = 2.0;
-
- zdscal( 4, da, zx, 1, 0 );
-
- viewX = new Float64Array( zx.buffer );
- expected = new Float64Array([
- 0.6, // 1
- 0.2, // 1
- 1.0, // 2
- 0.0, // 2
- 0.0, // 3
- 1.0, // 3
- 0.0, // 4
- 0.4, // 4
- 2.0,
- 3.0,
- 2.0,
- 3.0
- ]);
- for ( k = 0; k < expected.length; k++ ) {
- if ( viewX[ k ] === expected[ k ] ) {
- t.strictEqual( viewX[ k ], expected[ k ], 'returns expected value' );
- } else {
- delta = abs( viewX[ k ] - expected[ k ] );
- tol = 1.0 * EPS * abs( expected[ k ] );
- t.ok( delta <= tol, 'within tolerance. x: '+viewX[ k ]+'. expected: '+expected[ k ]+'. delta: '+delta+'. tol: '+tol+'.' );
- }
- }
- t.end();
-});
-
-tape( 'the function supports a `zx` stride', opts, function test( t ) {
- var expected;
- var delta;
- var viewX;
- var tol;
- var da;
- var zx;
- var k;
-
- zx = new Complex128Array([
- 0.1, // 1
- 0.1, // 1
- 3.0,
- 6.0,
- -0.6, // 2
- 0.1, // 2
- 4.0,
- 7.0,
- 0.1, // 3
- -0.3, // 3
- 7.0,
- 2.0
- ]);
- da = 2.0;
-
- zdscal( 3, da, zx, 2, 0 );
-
- viewX = new Float64Array( zx.buffer );
- expected = new Float64Array([
- 0.2, // 1
- 0.2, // 1
- 3.0,
- 6.0,
- -1.2, // 2
- 0.2, // 2
- 4.0,
- 7.0,
- 0.2, // 3
- -0.6, // 3
- 7.0,
- 2.0
- ]);
- for ( k = 0; k < expected.length; k++ ) {
- if ( viewX[ k ] === expected[ k ] ) {
- t.strictEqual( viewX[ k ], expected[ k ], 'returns expected value' );
- } else {
- delta = abs( viewX[ k ] - expected[ k ] );
- tol = 5.0 * EPS * abs( expected[ k ] );
- t.ok( delta <= tol, 'within tolerance. x: '+viewX[ k ]+'. expected: '+expected[ k ]+'. delta: '+delta+'. tol: '+tol+'.' );
- }
- }
- t.end();
-});
-
-tape( 'the function supports a `zx` offset', opts, function test( t ) {
- var expected;
- var delta;
- var viewX;
- var tol;
- var da;
- var zx;
- var k;
-
- zx = new Complex128Array([
- 0.1,
- 0.1,
- 3.0,
- 6.0,
- -0.6,
- 0.1,
- 4.0, // 1
- 6.0, // 1
- 0.1, // 2
- -0.3, // 2
- 7.0, // 3
- 2.0 // 3
- ]);
- da = 2.0;
-
- zdscal( 3, da, zx, 1, 3 );
-
- viewX = new Float64Array( zx.buffer );
- expected = new Float64Array([
- 0.1,
- 0.1,
- 3.0,
- 6.0,
- -0.6,
- 0.1,
- 8.0, // 1
- 12.0, // 1
- 0.2, // 2
- -0.6, // 2
- 14.0, // 3
- 4.0 // 3
- ]);
- for ( k = 0; k < expected.length; k++ ) {
- if ( viewX[ k ] === expected[ k ] ) {
- t.strictEqual( viewX[ k ], expected[ k ], 'returns expected value' );
- } else {
- delta = abs( viewX[ k ] - expected[ k ] );
- tol = 8.0 * EPS * abs( expected[ k ] );
- t.ok( delta <= tol, 'within tolerance. x: '+viewX[ k ]+'. expected: '+expected[ k ]+'. delta: '+delta+'. tol: '+tol+'.' );
- }
- }
- t.end();
-});
-
-tape( 'the function returns a reference to the input array', opts, function test( t ) {
- var out;
- var da;
- var zx;
-
- zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- da = 2.0;
-
- out = zdscal( 4, da, zx, 1, 0 );
-
- t.strictEqual( out, zx, 'same reference' );
- t.end();
-});
-
-tape( 'if provided an `N` parameter less than or equal to `0`, the function returns the input array unchanged', opts, function test( t ) {
- var expected;
- var viewX;
- var da;
- var zx;
-
- zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- da = 2.0;
-
- viewX = new Float64Array( zx.buffer );
- expected = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-
- zdscal( -1, da, zx, 1, 0 );
- t.deepEqual( viewX, expected, 'returns expected value' );
-
- zdscal( 0, da, zx, 1, 0 );
- t.deepEqual( viewX, expected, 'returns expected value' );
-
- t.end();
-});
-
-tape( 'if provided an `strideX` parameter less than or equal to `0`, the function returns the input array unchanged', opts, function test( t ) {
- var expected;
- var viewX;
- var da;
- var zx;
-
- zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- da = 2.0;
-
- viewX = new Float64Array( zx.buffer );
- expected = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-
- zdscal( 4, da, zx, -1, 3 );
- t.deepEqual( viewX, expected, 'returns expected value' );
-
- zdscal( 4, da, zx, 0, 3 );
- t.deepEqual( viewX, expected, 'returns expected value' );
-
- t.end();
-});
-
-tape( 'the function supports complex access patterns', opts, function test( t ) {
- var expected;
- var delta;
- var viewX;
- var tol;
- var da;
- var zx;
- var k;
-
- zx = new Complex128Array([
- 0.1,
- 0.1,
- 3.0,
- 6.0,
- -0.6,
- 0.1,
- 4.0, // 1
- 6.0, // 1
- 0.1,
- -0.3,
- 7.0,
- 2.0,
- 2.0, // 2
- 3.0 // 2
- ]);
- da = 2.0;
-
- zdscal( 2, da, zx, 3, 3 );
-
- viewX = new Float64Array( zx.buffer );
- expected = new Float64Array([
- 0.1,
- 0.1,
- 3.0,
- 6.0,
- -0.6,
- 0.1,
- 8.0, // 1
- 12.0, // 1
- 0.1,
- -0.3,
- 7.0,
- 2.0,
- 4.0, // 2
- 6.0 // 2
- ]);
- for ( k = 0; k < expected.length; k++ ) {
- if ( viewX[ k ] === expected[ k ] ) {
- t.strictEqual( viewX[ k ], expected[ k ], 'returns expected value' );
- } else {
- delta = abs( viewX[ k ] - expected[ k ] );
- tol = 10.0 * EPS * abs( expected[ k ] );
- t.ok( delta <= tol, 'within tolerance. x: '+viewX[ k ]+'. expected: '+expected[ k ]+'. delta: '+delta+'. tol: '+tol+'.' );
- }
- }
- t.end();
-});
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/test/test.zdscal.native.js b/lib/node_modules/@stdlib/blas/base/zdscal/test/test.zdscal.native.js
deleted file mode 100644
index cf9690cca96f..000000000000
--- a/lib/node_modules/@stdlib/blas/base/zdscal/test/test.zdscal.native.js
+++ /dev/null
@@ -1,262 +0,0 @@
-/**
-* @license Apache-2.0
-*
-* Copyright (c) 2025 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 resolve = require( 'path' ).resolve;
-var tape = require( 'tape' );
-var Complex128Array = require( '@stdlib/array/complex128' );
-var Float64Array = require( '@stdlib/array/float64' );
-var EPS = require( '@stdlib/constants/float64/eps' );
-var abs = require( '@stdlib/math/base/special/abs' );
-var tryRequire = require( '@stdlib/utils/try-require' );
-
-
-// VARIABLES //
-
-var zdscal = tryRequire( resolve( __dirname, './../lib/zdscal.native.js' ) );
-var opts = {
- 'skip': ( zdscal instanceof Error )
-};
-
-
-// TESTS //
-
-tape( 'main export is a function', opts, function test( t ) {
- t.ok( true, __filename );
- t.strictEqual( typeof zdscal, 'function', 'main export is a function' );
- t.end();
-});
-
-tape( 'the function has an arity of 4', opts, function test( t ) {
- t.strictEqual( zdscal.length, 4, 'arity of 4' );
- t.end();
-});
-
-tape( 'the function scales elements from `zx` by `da`', opts, function test( t ) {
- var expected;
- var delta;
- var viewX;
- var tol;
- var da;
- var zx;
- var k;
-
- zx = new Complex128Array([
- 0.3, // 1
- 0.1, // 1
- 0.5, // 2
- 0.0, // 2
- 0.0, // 3
- 0.5, // 3
- 0.0, // 4
- 0.2 // 4
- ]);
- da = 2.0;
-
- zdscal( 4, da, zx, 1 );
-
- viewX = new Float64Array( zx.buffer );
- expected = new Float64Array([
- 0.6, // 1
- 0.2, // 1
- 1.0, // 2
- 0.0, // 2
- 0.0, // 3
- 1.0, // 3
- 0.0, // 4
- 0.4 // 4
- ]);
- for ( k = 0; k < expected.length; k++ ) {
- if ( viewX[ k ] === expected[ k ] ) {
- t.strictEqual( viewX[ k ], expected[ k ], 'returns expected value' );
- } else {
- delta = abs( viewX[ k ] - expected[ k ] );
- tol = 1.0 * EPS * abs( expected[ k ] );
- t.ok( delta <= tol, 'within tolerance. x: '+viewX[ k ]+'. expected: '+expected[ k ]+'. delta: '+delta+'. tol: '+tol+'.' );
- }
- }
- t.end();
-});
-
-tape( 'the function supports a `zx` stride', opts, function test( t ) {
- var expected;
- var delta;
- var viewX;
- var tol;
- var da;
- var zx;
- var k;
-
- zx = new Complex128Array([
- 0.1, // 1
- 0.1, // 1
- 3.0,
- 6.0,
- -0.6, // 2
- 0.1, // 2
- 4.0,
- 7.0,
- 0.1, // 3
- -0.3, // 3
- 7.0,
- 2.0
- ]);
- da = 2.0;
-
- zdscal( 3, da, zx, 2 );
-
- viewX = new Float64Array( zx.buffer );
- expected = new Float64Array([
- 0.2, // 1
- 0.2, // 1
- 3.0,
- 6.0,
- -1.2, // 2
- 0.2, // 2
- 4.0,
- 7.0,
- 0.2, // 3
- -0.6, // 3
- 7.0,
- 2.0
- ]);
- for ( k = 0; k < expected.length; k++ ) {
- if ( viewX[ k ] === expected[ k ] ) {
- t.strictEqual( viewX[ k ], expected[ k ], 'returns expected value' );
- } else {
- delta = abs( viewX[ k ] - expected[ k ] );
- tol = 5.0 * EPS * abs( expected[ k ] );
- t.ok( delta <= tol, 'within tolerance. x: '+viewX[ k ]+'. expected: '+expected[ k ]+'. delta: '+delta+'. tol: '+tol+'.' );
- }
- }
- t.end();
-});
-
-tape( 'the function returns a reference to the input array', opts, function test( t ) {
- var out;
- var da;
- var zx;
-
- zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- da = 2.0;
-
- out = zdscal( 4, da, zx, 1 );
-
- t.strictEqual( out, zx, 'same reference' );
- t.end();
-});
-
-tape( 'if provided an `N` parameter less than or equal to `0`, the function returns the input array unchanged', opts, function test( t ) {
- var expected;
- var viewX;
- var da;
- var zx;
-
- zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- da = 2.0;
-
- viewX = new Float64Array( zx.buffer );
- expected = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-
- zdscal( -1, da, zx, 1 );
- t.deepEqual( viewX, expected, 'returns expected value' );
-
- zdscal( 0, da, zx, 1 );
- t.deepEqual( viewX, expected, 'returns expected value' );
-
- t.end();
-});
-
-tape( 'if provided an `strideX` parameter less than or equal to `0`, the function returns the input array unchanged', opts, function test( t ) {
- var expected;
- var viewX;
- var da;
- var zx;
-
- zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- da = 2.0;
-
- viewX = new Float64Array( zx.buffer );
- expected = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-
- zdscal( 4, da, zx, -1 );
- t.deepEqual( viewX, expected, 'returns expected value' );
-
- zdscal( 4, da, zx, 0 );
- t.deepEqual( viewX, expected, 'returns expected value' );
-
- t.end();
-});
-
-tape( 'the function supports view offsets', opts, function test( t ) {
- var expected;
- var delta;
- var viewX;
- var tol;
- var zx0;
- var zx1;
- var da;
- var k;
-
- // Initial arrays...
- zx0 = new Complex128Array([
- 0.1,
- -0.3,
- 8.0, // 1
- 9.0, // 1
- 0.5, // 2
- -0.1, // 2
- 2.0, // 3
- 5.0, // 3
- 2.0,
- 3.0
- ]);
- da = 2.0;
-
- // Create offset views...
- zx1 = new Complex128Array( zx0.buffer, zx0.BYTES_PER_ELEMENT*1 ); // begin at 2nd element
-
- zdscal( 3, da, zx1, 1 );
-
- viewX = new Float64Array( zx0.buffer );
- expected = new Float64Array([
- 0.1,
- -0.3,
- 16.0, // 1
- 18.0, // 1
- 1.0, // 2
- -0.2, // 2
- 4.0, // 3
- 10.0, // 3
- 2.0,
- 3.0
- ]);
- for ( k = 0; k < expected.length; k++ ) {
- if ( viewX[ k ] === expected[ k ] ) {
- t.strictEqual( viewX[ k ], expected[ k ], 'returns expected value' );
- } else {
- delta = abs( viewX[ k ] - expected[ k ] );
- tol = 1.0 * EPS * abs( expected[ k ] );
- t.ok( delta <= tol, 'within tolerance. x: '+viewX[ k ]+'. expected: '+expected[ k ]+'. delta: '+delta+'. tol: '+tol+'.' );
- }
- }
- t.end();
-});
From 777bae0fb1d06e16212cf102222c9d16ae839f2b Mon Sep 17 00:00:00 2001
From: Ricky Reusser <572717+rreusser@users.noreply.github.com>
Date: Wed, 15 Jan 2025 11:42:43 -0800
Subject: [PATCH 7/8] fix: remove files from package.json
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
- task: lint_filenames
status: passed
- task: lint_editorconfig
status: passed
- task: lint_markdown
status: na
- task: lint_package_json
status: passed
- task: lint_repl_help
status: na
- task: lint_javascript_src
status: na
- task: lint_javascript_cli
status: na
- task: lint_javascript_examples
status: na
- task: lint_javascript_tests
status: na
- task: lint_javascript_benchmarks
status: na
- task: lint_python
status: na
- task: lint_r
status: na
- task: lint_c_src
status: na
- task: lint_c_examples
status: na
- task: lint_c_benchmarks
status: na
- task: lint_c_tests_fixtures
status: na
- task: lint_shell
status: na
- task: lint_typescript_declarations
status: na
- task: lint_typescript_tests
status: na
- task: lint_license_headers
status: passed
---
---
lib/node_modules/@stdlib/blas/base/zdscal/package.json | 3 ---
1 file changed, 3 deletions(-)
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/package.json b/lib/node_modules/@stdlib/blas/base/zdscal/package.json
index 8e53524825b0..2107fd81e8c7 100644
--- a/lib/node_modules/@stdlib/blas/base/zdscal/package.json
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/package.json
@@ -15,14 +15,11 @@
],
"main": "./lib",
"browser": "./lib/main.js",
- "gypfile": true,
"directories": {
"benchmark": "./benchmark",
"doc": "./docs",
"example": "./examples",
- "include": "./include",
"lib": "./lib",
- "src": "./src",
"test": "./test"
},
"types": "./docs/types",
From 29fcf54b6007e681838ddab86a2d8e3cdd886431 Mon Sep 17 00:00:00 2001
From: Athan Reines
Date: Sat, 18 Jan 2025 16:11:34 -0800
Subject: [PATCH 8/8] chore: clean-up
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
- task: lint_filenames
status: passed
- task: lint_editorconfig
status: passed
- task: lint_markdown
status: passed
- task: lint_package_json
status: na
- task: lint_repl_help
status: passed
- task: lint_javascript_src
status: passed
- task: lint_javascript_cli
status: na
- task: lint_javascript_examples
status: passed
- task: lint_javascript_tests
status: passed
- task: lint_javascript_benchmarks
status: passed
- task: lint_python
status: na
- task: lint_r
status: na
- task: lint_c_src
status: na
- task: lint_c_examples
status: na
- task: lint_c_benchmarks
status: na
- task: lint_c_tests_fixtures
status: na
- task: lint_shell
status: na
- task: lint_typescript_declarations
status: passed
- task: lint_typescript_tests
status: passed
- task: lint_license_headers
status: passed
---
---
type: pre_push_report
description: Results of running various checks prior to pushing changes.
report:
- task: run_javascript_examples
status: na
- task: run_c_examples
status: na
- task: run_cpp_examples
status: na
- task: run_javascript_readme_examples
status: na
- task: run_c_benchmarks
status: na
- task: run_cpp_benchmarks
status: na
- task: run_fortran_benchmarks
status: na
- task: run_javascript_benchmarks
status: na
- task: run_julia_benchmarks
status: na
- task: run_python_benchmarks
status: na
- task: run_r_benchmarks
status: na
- task: run_javascript_tests
status: na
---
---
.../@stdlib/blas/base/zdscal/README.md | 164 +++------------
.../blas/base/zdscal/benchmark/benchmark.js | 4 +-
.../zdscal/benchmark/benchmark.ndarray.js | 4 +-
.../@stdlib/blas/base/zdscal/docs/repl.txt | 46 ++---
.../blas/base/zdscal/docs/types/index.d.ts | 37 ++--
.../blas/base/zdscal/docs/types/test.ts | 163 +++++++--------
.../blas/base/zdscal/examples/index.js | 10 +-
.../@stdlib/blas/base/zdscal/lib/index.js | 6 +-
.../@stdlib/blas/base/zdscal/lib/ndarray.js | 24 +--
.../@stdlib/blas/base/zdscal/lib/zdscal.js | 42 +---
.../blas/base/zdscal/test/test.ndarray.js | 187 +++++++-----------
.../blas/base/zdscal/test/test.zdscal.js | 150 ++++++--------
12 files changed, 293 insertions(+), 544 deletions(-)
diff --git a/lib/node_modules/@stdlib/blas/base/zdscal/README.md b/lib/node_modules/@stdlib/blas/base/zdscal/README.md
index de127b3925b5..4bcd8970c392 100644
--- a/lib/node_modules/@stdlib/blas/base/zdscal/README.md
+++ b/lib/node_modules/@stdlib/blas/base/zdscal/README.md
@@ -20,7 +20,7 @@ limitations under the License.
# zdscal
-> Scales a double-precision complex floating-point vector by a double-precision floating-point constant.
+> Scale a double-precision complex floating-point vector by a double-precision floating-point constant.
@@ -30,9 +30,9 @@ limitations under the License.
var zdscal = require( '@stdlib/blas/base/zdscal' );
```
-#### zdscal( N, da, zx, strideX )
+#### zdscal( N, da, zx, strideZX )
-Scales values from `zx` by `da`.
+Scales a double-precision complex floating-point vector by a double-precision floating-point constant.
```javascript
var Complex128Array = require( '@stdlib/array/complex128' );
@@ -40,9 +40,8 @@ var real = require( '@stdlib/complex/float64/real' );
var imag = require( '@stdlib/complex/float64/imag' );
var zx = new Complex128Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] );
-var da = 2.0;
-zdscal( 3, da, zx, 1 );
+zdscal( 3, 2.0, zx, 1 );
var z = zx.get( 0 );
// returns
@@ -59,9 +58,9 @@ The function has the following parameters:
- **N**: number of indexed elements.
- **da**: scalar constant.
- **zx**: input [`Complex128Array`][@stdlib/array/complex128].
-- **strideX**: index increment for `zx`.
+- **strideZX**: stride length for `zx`.
-The `N` and stride parameters determine how values from `zx` are scaled by `da`. For example, to scale every other value in `zx` by `da`,
+The `N` and stride parameters determine which elements in `zx` are scaled by `da`. For example, to scale every other element in `zx` by `da`,
```javascript
var Complex128Array = require( '@stdlib/array/complex128' );
@@ -69,9 +68,8 @@ var real = require( '@stdlib/complex/float64/real' );
var imag = require( '@stdlib/complex/float64/imag' );
var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-var da = 2.0;
-zdscal( 2, da, zx, 2 );
+zdscal( 2, 2.0, zx, 2 );
var z = zx.get( 2 );
// returns
@@ -95,28 +93,34 @@ var imag = require( '@stdlib/complex/float64/imag' );
// Initial array:
var zx0 = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-// Define a scalar constant:
-var da = 2.0;
-
// Create an offset view:
var zx1 = new Complex128Array( zx0.buffer, zx0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
-// Scales every other value from `zx1` by `da`...
-zdscal( 3, da, zx1, 1 );
+// Scale every element in `zx1`:
+zdscal( 3, 2.0, zx1, 1 );
-var z = zx0.get( 1 );
+var z = zx0.get( 0 );
// returns
var re = real( z );
-// returns 6.0
+// returns 1.0
var im = imag( z );
+// returns 2.0
+
+z = zx0.get( 1 );
+// returns
+
+re = real( z );
+// returns 6.0
+
+im = imag( z );
// returns 8.0
```
-#### zdscal.ndarray( N, da, zx, strideX, offsetX )
+#### zdscal.ndarray( N, da, zx, strideZX, offsetZX )
-Scales values from `zx` by `da` using alternative indexing semantics.
+Scales a double-precision complex floating-point vector by a double-precision floating-point constant using alternative indexing semantics.
```javascript
var Complex128Array = require( '@stdlib/array/complex128' );
@@ -124,9 +128,8 @@ var real = require( '@stdlib/complex/float64/real' );
var imag = require( '@stdlib/complex/float64/imag' );
var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
-var da = 2.0;
-zdscal.ndarray( 3, da, zx, 1, 0 );
+zdscal.ndarray( 3, 2.0, zx, 1, 0 );
var z = zx.get( 0 );
// returns
@@ -140,9 +143,9 @@ var im = imag( z );
The function has the following additional parameters:
-- **offsetX**: starting index for `zx`.
+- **offsetZX**: starting index for `zx`.
-While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameter supports indexing semantics based on a starting index. For example, to scale every other value in the input strided array starting from the second element,
+While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameter supports indexing semantics based on a starting index. For example, to scale every other element in the input strided array starting from the second element,
```javascript
var Complex128Array = require( '@stdlib/array/complex128' );
@@ -150,9 +153,8 @@ var real = require( '@stdlib/complex/float64/real' );
var imag = require( '@stdlib/complex/float64/imag' );
var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-var da = 2.0;
-zdscal.ndarray( 2, da, zx, 2, 1 );
+zdscal.ndarray( 2, 2.0, zx, 2, 1 );
var z = zx.get( 3 );
// returns
@@ -172,7 +174,7 @@ var im = imag( z );
## Notes
-- If `N <= 0` or `strideX <= 0` , both functions return `zx` unchanged.
+- If `N <= 0`, both functions return `zx` unchanged.
- `zdscal()` corresponds to the [BLAS][blas] level 1 function [`zdscal`][zdscal].
@@ -198,122 +200,14 @@ function rand() {
var zx = filledarrayBy( 10, 'complex128', rand );
console.log( zx.toString() );
-var da = 2.0;
-console.log( da );
-
-// Scales elements from `zx` by `da`:
-zdscal( zx.length, da, zx, 1 );
-console.log( zx.get( zx.length-1 ).toString() );
-```
-
-
-
-
-
-
-
-* * *
-
-
-
-## C APIs
-
-
-
-
-
-
-
-
-
-
-
-### Usage
-
-```c
-#include "stdlib/blas/base/zdscal.h"
-```
-
-#### c_zdscal( N, da, \*ZX, strideX )
-
-Scales values from `ZX` by `da`.
-
-```c
-#include "stdlib/complex/float64/ctor.h"
-
-double zx[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
-const stdlib_complex128_t da = stdlib_complex128( 2.0, 2.0 );
-
-c_zdscal( 4, da, (void *)zx, 1 );
-```
-
-The function accepts the following arguments:
-
-- **N**: `[in] CBLAS_INT` number of indexed elements.
-- **da**: `[in] stdlib_complex128_t` scalar constant.
-- **ZX**: `[inout] void*` input array.
-- **strideX**: `[in] CBLAS_INT` index increment for `ZX`.
-
-```c
-void c_zdscal( const CBLAS_INT N, const stdlib_complex128_t da, void *ZX, const CBLAS_INT strideX );
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-### Examples
-
-```c
-#include "stdlib/blas/base/zdscal.h"
-#include "stdlib/complex/float64/ctor.h"
-#include
-
-int main( void ) {
- // Create a strided array of interleaved real and imaginary components:
- double zx[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
-
- // Create a complex scalar:
- const stdlib_complex128_t ca = stdlib_complex128( 2.0, 2.0 );
-
- // Specify the number of elements:
- const int N = 4;
-
- // Specify stride length:
- const int strideX = 1;
-
- // Scale the elements of the array:
- c_zdscal( N, da, (void *)zx, strideX );
-
- // Print the result:
- for ( int i = 0; i < N; i++ ) {
- printf( "zx[ %i ] = %f + %fj\n", i, zx[ i*2 ], zx[ (i*2)+1 ] );
- }
-}
+zdscal( zx.length, 2.0, zx, 1 );
+console.log( zx.toString() );
```
-
-
-
-