From c17c67337aa9fef106764010b736b1e471f4c2c2 Mon Sep 17 00:00:00 2001
From: Ricky Reusser <572717+rreusser@users.noreply.github.com>
Date: Sun, 12 Jan 2025 10:26:29 -0800
Subject: [PATCH 1/6] feat: add lapack/base/zlacgv
This commit adds a BLAS-like LAPACK module for computing the
complex conjugate of a vector.
Fixes: #2464
---
.../@stdlib/lapack/base/zlacgv/README.md | 321 +++++++++++++
.../lapack/base/zlacgv/benchmark/benchmark.js | 107 +++++
.../base/zlacgv/benchmark/benchmark.native.js | 112 +++++
.../zlacgv/benchmark/benchmark.ndarray.js | 107 +++++
.../benchmark/benchmark.ndarray.native.js | 112 +++++
.../lapack/base/zlacgv/benchmark/c/Makefile | 146 ++++++
.../zlacgv/benchmark/c/benchmark.length.c | 150 ++++++
.../base/zlacgv/benchmark/fortran/Makefile | 141 ++++++
.../benchmark/fortran/benchmark.length.f | 218 +++++++++
.../@stdlib/lapack/base/zlacgv/binding.gyp | 265 +++++++++++
.../@stdlib/lapack/base/zlacgv/docs/repl.txt | 110 +++++
.../lapack/base/zlacgv/docs/types/index.d.ts | 140 ++++++
.../lapack/base/zlacgv/docs/types/test.ts | 190 ++++++++
.../lapack/base/zlacgv/examples/c/Makefile | 146 ++++++
.../lapack/base/zlacgv/examples/c/example.c | 40 ++
.../lapack/base/zlacgv/examples/index.js | 35 ++
.../@stdlib/lapack/base/zlacgv/include.gypi | 70 +++
.../zlacgv/include/stdlib/blas/base/zlacgv.h | 43 ++
.../include/stdlib/blas/base/zlacgv_cblas.h | 43 ++
.../include/stdlib/blas/base/zlacgv_fortran.h | 43 ++
.../@stdlib/lapack/base/zlacgv/lib/index.js | 88 ++++
.../@stdlib/lapack/base/zlacgv/lib/main.js | 35 ++
.../@stdlib/lapack/base/zlacgv/lib/native.js | 35 ++
.../@stdlib/lapack/base/zlacgv/lib/ndarray.js | 77 +++
.../lapack/base/zlacgv/lib/ndarray.native.js | 68 +++
.../@stdlib/lapack/base/zlacgv/lib/zlacgv.js | 88 ++++
.../lapack/base/zlacgv/lib/zlacgv.native.js | 64 +++
.../@stdlib/lapack/base/zlacgv/manifest.json | 444 ++++++++++++++++++
.../@stdlib/lapack/base/zlacgv/package.json | 81 ++++
.../@stdlib/lapack/base/zlacgv/src/Makefile | 70 +++
.../@stdlib/lapack/base/zlacgv/src/addon.c | 43 ++
.../@stdlib/lapack/base/zlacgv/src/zlacgv.c | 47 ++
.../@stdlib/lapack/base/zlacgv/src/zlacgv.f | 83 ++++
.../lapack/base/zlacgv/src/zlacgv_cblas.c | 32 ++
.../@stdlib/lapack/base/zlacgv/src/zlacgv_f.c | 32 ++
.../@stdlib/lapack/base/zlacgv/test/test.js | 82 ++++
.../lapack/base/zlacgv/test/test.ndarray.js | 269 +++++++++++
.../base/zlacgv/test/test.ndarray.native.js | 278 +++++++++++
.../lapack/base/zlacgv/test/test.zlacgv.js | 220 +++++++++
.../base/zlacgv/test/test.zlacgv.native.js | 263 +++++++++++
40 files changed, 4938 insertions(+)
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/README.md
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/benchmark.js
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/benchmark.native.js
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/benchmark.ndarray.js
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/benchmark.ndarray.native.js
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/c/Makefile
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/c/benchmark.length.c
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/fortran/Makefile
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/fortran/benchmark.length.f
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/binding.gyp
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/docs/repl.txt
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/docs/types/index.d.ts
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/docs/types/test.ts
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/examples/c/Makefile
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/examples/c/example.c
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/examples/index.js
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/include.gypi
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/blas/base/zlacgv.h
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/blas/base/zlacgv_cblas.h
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/blas/base/zlacgv_fortran.h
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/lib/index.js
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/lib/main.js
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/lib/native.js
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/lib/ndarray.js
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/lib/ndarray.native.js
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/lib/zlacgv.js
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/lib/zlacgv.native.js
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/manifest.json
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/package.json
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/src/Makefile
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/src/addon.c
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv.c
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv.f
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv_cblas.c
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv_f.c
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.js
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.ndarray.js
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.ndarray.native.js
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.zlacgv.js
create mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.zlacgv.native.js
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/README.md b/lib/node_modules/@stdlib/lapack/base/zlacgv/README.md
new file mode 100644
index 000000000000..36878c5f9690
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/README.md
@@ -0,0 +1,321 @@
+
+
+# zlacgv
+
+> Conjugates a complex vector.
+
+
+
+## Usage
+
+```javascript
+var zlacgv = require( '@stdlib/blas/base/zlacgv' );
+```
+
+#### zlacgv( N, zx, strideX )
+
+Conjugate values of `zx`.
+
+```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 ] );
+
+zlacgv( 4, zx, 0 );
+
+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.
+- **zx**: input [`Complex128Array`][@stdlib/array/complex128].
+- **strideX**: index increment for `zx`.
+
+The `N` and stride parameters determine how values from `zx` conjugated. For example, to conjugate every other value in `zx`,
+
+```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 ] );
+
+zlacgv( 2, zx, 1 );
+
+var z = zx.get( 0 );
+// returns
+
+var re = imag( z );
+// returns 3.0
+
+var im = imag( z );
+// returns -4.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 Complex128 = require( '@stdlib/complex/float64/ctor' );
+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 ] );
+
+// Create an offset view:
+var zx1 = new Complex128Array( zx0.buffer, zx0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
+
+// Conjugates every other value from `zx1`...
+zlacgv( 3, zx1, 1 );
+
+var z = zx0.get( 1 );
+// returns
+
+var re = real( z );
+// returns -2.0
+
+var im = imag( z );
+// returns 14.0
+```
+
+#### zlacgv.ndarray( N, zx, strideX, offsetX )
+
+Conjugate values from `zx` 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 ] );
+
+zlacgv.ndarray( 3, zx, 1, 0 );
+
+var z = zx.get( 0 );
+// returns
+
+var re = real( z );
+// returns -2.0
+
+var im = imag( z );
+// returns 6.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 conjugate 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 ] );
+
+zlacgv.ndarray( 2, zx, 2, 1 );
+
+var z = zx.get( 3 );
+// returns
+
+var re = real( z );
+// returns -2.0
+
+var im = imag( z );
+// returns 30.0
+```
+
+
+
+
+
+
+
+## Notes
+
+- If `N <= 0` or `strideX <= 0` , both functions return `zx` unchanged.
+- `zlacgv()` corresponds to the [BLAS][blas] level 1 function [`zlacgv`][zlacgv].
+
+
+
+
+
+
+
+## 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 zlacgv = require( '@stdlib/blas/base/zlacgv' );
+
+function rand() {
+ return new Complex128( discreteUniform( 0, 10 ), discreteUniform( -5, 5 ) );
+}
+
+var zx = filledarrayBy( 10, 'complex128', rand );
+console.log( zx.toString() );
+
+// Conjugates elements from `zx`:
+zlacgv( zx.length, zx, 1 );
+console.log( zx.get( zx.length-1 ).toString() );
+```
+
+
+
+
+
+
+
+* * *
+
+
+
+## C APIs
+
+
+
+
+
+
+
+
+
+
+
+### Usage
+
+```c
+#include "stdlib/blas/base/zlacgv.h"
+```
+
+#### c_zlacgv( N, \*ZX, strideX )
+
+Conjugate values from `ZX`.
+
+```c
+double zx[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
+
+c_zlacgv( 4, (void *)zx, 1 );
+```
+
+The function accepts the following arguments:
+
+- **N**: `[in] CBLAS_INT` number of indexed elements.
+- **ZX**: `[inout] void*` input array.
+- **strideX**: `[in] CBLAS_INT` index increment for `ZX`.
+
+```c
+void c_zlacgv( const CBLAS_INT N, void *ZX, const CBLAS_INT strideX );
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+### Examples
+
+```c
+#include "stdlib/blas/base/zlacgv.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 };
+
+ // Specify the number of elements:
+ const int N = 4;
+
+ // Specify stride length:
+ const int strideX = 1;
+
+ // Conjugate elements of the array:
+ c_zlacgv( N, (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
+
+[zlacgv]: https://www.netlib.org/lapack/explore-html/d9/d50/group__lacgv_gae42087fcabd33130fcbac2aff031de8b.html#gae42087fcabd33130fcbac2aff031de8b
+
+[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/lapack/base/zlacgv/benchmark/benchmark.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/benchmark.js
new file mode 100644
index 000000000000..b60f0d1b15a5
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/benchmark.js
@@ -0,0 +1,107 @@
+/**
+* @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 zlacgv = require( './../lib/zlacgv.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 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++ ) {
+ zlacgv( zx.length, 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/lapack/base/zlacgv/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/benchmark.native.js
new file mode 100644
index 000000000000..765c08ae8ddc
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/benchmark.native.js
@@ -0,0 +1,112 @@
+/**
+* @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 zlacgv = tryRequire( resolve( __dirname, './../lib/zlacgv.native.js' ) );
+var opts = {
+ 'skip': ( zlacgv 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 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++ ) {
+ zlacgv( zx.length, 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/lapack/base/zlacgv/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/benchmark.ndarray.js
new file mode 100644
index 000000000000..415187e72284
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/benchmark.ndarray.js
@@ -0,0 +1,107 @@
+/**
+* @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 zlacgv = 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 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++ ) {
+ zlacgv( zx.length, 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/lapack/base/zlacgv/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/benchmark.ndarray.native.js
new file mode 100644
index 000000000000..ecc8d56e3a00
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/benchmark.ndarray.native.js
@@ -0,0 +1,112 @@
+/**
+* @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 zlacgv = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) );
+var opts = {
+ 'skip': ( zlacgv 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 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++ ) {
+ zlacgv( zx.length, 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/lapack/base/zlacgv/benchmark/c/Makefile b/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/c/Makefile
new file mode 100644
index 000000000000..cce2c865d7ad
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/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/lapack/base/zlacgv/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/c/benchmark.length.c
new file mode 100644
index 000000000000..96cf6b1c1ebf
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/c/benchmark.length.c
@@ -0,0 +1,150 @@
+/**
+* @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/zlacgv.h"
+#include
+#include
+#include
+#include
+#include
+
+#define NAME "zlacgv"
+#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 zx[ len*2 ];
+ double elapsed;
+ double t;
+ int i;
+
+ 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_zlacgv( len, (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/lapack/base/zlacgv/benchmark/fortran/Makefile b/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/fortran/Makefile
new file mode 100644
index 000000000000..c5d64f80ccbc
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/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/zlacgv.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/lapack/base/zlacgv/benchmark/fortran/benchmark.length.f b/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/fortran/benchmark.length.f
new file mode 100644
index 000000000000..d8f1af078afb
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/fortran/benchmark.length.f
@@ -0,0 +1,218 @@
+!>
+! @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 = 'zlacgv' ! 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 zlacgv( N, zx, strideX )
+ complex(kind=kind(0.0d0)) :: zx(*)
+ integer :: strideX, N
+ end subroutine zlacgv
+ 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(:)
+ ! ..
+ ! Intrinsic functions:
+ intrinsic random_number, cpu_time, cmplx
+ ! ..
+ ! Allocate array:
+ allocate( x(len) )
+ ! ..
+ call random_number( r1 )
+ 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 zlacgv( len, 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/lapack/base/zlacgv/binding.gyp b/lib/node_modules/@stdlib/lapack/base/zlacgv/binding.gyp
new file mode 100644
index 000000000000..08de71a2020e
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/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/lapack/base/zlacgv/docs/repl.txt b/lib/node_modules/@stdlib/lapack/base/zlacgv/docs/repl.txt
new file mode 100644
index 000000000000..112df638afd1
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/docs/repl.txt
@@ -0,0 +1,110 @@
+
+{{alias}}( N, zx, strideX )
+ Conjugates a double-precision complex floating-point vector.
+
+ The `N` and stride parameters determine how values from `zx` are
+ conjugated.
+
+ 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.
+
+ 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 ] );
+ > {{alias}}( 2, zx, 1 );
+ > var z = zx.get( 0 );
+ > var re = {{alias:@stdlib/complex/float64/real}}( z )
+ 1.0
+ > var im = {{alias:@stdlib/complex/float64/imag}}( z )
+ -2.0
+
+ // Advanced indexing:
+ > zx = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+ > {{alias}}( 2, zx, 2 );
+ > z = zx.get( 0 );
+ > re = {{alias:@stdlib/complex/float64/real}}( z )
+ 1.0
+ > im = {{alias:@stdlib/complex/float64/imag}}( z )
+ -2.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 );
+ > {{alias}}( 2, zx1, 1 );
+ > z = zx0.get( 1 );
+ > re = {{alias:@stdlib/complex/float64/real}}( z )
+ 3.0
+ > im = {{alias:@stdlib/complex/float64/imag}}( z )
+ -4.0
+
+
+{{alias}}.ndarray( N, zx, strideX, offsetX )
+ Conjugates a double-precision complex floating-point vector 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.
+
+ 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 ] );
+ > {{alias}}.ndarray( 2, zx, 1, 0 );
+ > var z = zx.get( 0 );
+ > var re = {{alias:@stdlib/complex/float64/real}}( z )
+ 1.0
+ > var im = {{alias:@stdlib/complex/float64/imag}}( z )
+ -2.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 ] );
+ > {{alias}}.ndarray( 2, zx, 1, 2 );
+ > z = zx.get( 2 );
+ > re = {{alias:@stdlib/complex/float64/real}}( z )
+ 5.0
+ > im = {{alias:@stdlib/complex/float64/imag}}( z )
+ -6.0
+
+ See Also
+ --------
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/docs/types/index.d.ts b/lib/node_modules/@stdlib/lapack/base/zlacgv/docs/types/index.d.ts
new file mode 100644
index 000000000000..d5f27c9819e5
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/docs/types/index.d.ts
@@ -0,0 +1,140 @@
+/*
+* @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 `zlacgv`.
+*/
+interface Routine {
+ /**
+ * Scales a double-precision complex floating-point vector by a double-precision complex floating-point constant.
+ *
+ * @param N - number of indexed elements
+ * @param zx - input array
+ * @param strideX - `zx` stride length
+ * @returns 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 ] );
+ *
+ * zlacgv( 3, zx, 1 );
+ *
+ * var z = zx.get( 0 );
+ * // returns
+ *
+ * var re = real( z );
+ * // returns -2.0
+ *
+ * var im = imag( z );
+ * // returns 6.0
+ */
+ ( N: number, zx: Complex128Array, strideX: number ): Complex128Array;
+
+ /**
+ * Scales a double-precision complex floating-point vector by a double-precision complex floating-point constant.
+ *
+ * @param N - number of indexed elements
+ * @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 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 ] );
+ *
+ * zlacgv.ndarray( 3, 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, zx: Complex128Array, strideX: number, offsetX: number ): Complex128Array;
+}
+
+/**
+* Scales a double-precision complex floating-point vector by a double-precision complex floating-point constant.
+*
+* @param N - number of indexed elements
+* @param zx - input array
+* @param strideX - `zx` stride length
+* @returns 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 ] );
+*
+* zlacgv( 3, 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 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 ] );
+*
+* zlacgv.ndarray( 2, 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 zlacgv: Routine;
+
+
+// EXPORTS //
+
+export = zlacgv;
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/docs/types/test.ts b/lib/node_modules/@stdlib/lapack/base/zlacgv/docs/types/test.ts
new file mode 100644
index 000000000000..5741b73f1c7d
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/docs/types/test.ts
@@ -0,0 +1,190 @@
+/*
+* @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 zlacgv = require( './index' );
+
+
+// TESTS //
+
+// The function returns a Complex128Array...
+{
+ const zx = new Complex128Array( 10 );
+
+ zlacgv( zx.length, 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 );
+
+ zlacgv( '10', zx, 1 ); // $EzxpectError
+ zlacgv( true, zx, 1 ); // $ExpectError
+ zlacgv( false, zx, 1 ); // $ExpectError
+ zlacgv( null, zx, 1 ); // $ExpectError
+ zlacgv( undefined, zx, 1 ); // $ExpectError
+ zlacgv( [], zx, 1 ); // $ExpectError
+ zlacgv( {}, zx, 1 ); // $ExpectError
+ zlacgv( ( zx: number ): number => zx, zx, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a second argument which is not a complex number...
+{
+ const zx = new Complex128Array( 10 );
+
+ zlacgv( zx.length, 10, zx, 1 ); // $ExpectError
+ zlacgv( zx.length, '10', zx, 1 ); // $ExpectError
+ zlacgv( zx.length, true, zx, 1 ); // $ExpectError
+ zlacgv( zx.length, false, zx, 1 ); // $ExpectError
+ zlacgv( zx.length, null, zx, 1 ); // $ExpectError
+ zlacgv( zx.length, undefined, zx, 1 ); // $ExpectError
+ zlacgv( zx.length, [ '1' ], zx, 1 ); // $ExpectError
+ zlacgv( zx.length, {}, zx, 1 ); // $ExpectError
+ zlacgv( 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 );
+
+ zlacgv( zx.length, 10, 1 ); // $ExpectError
+ zlacgv( zx.length, '10', 1 ); // $ExpectError
+ zlacgv( zx.length, true, 1 ); // $ExpectError
+ zlacgv( zx.length, false, 1 ); // $ExpectError
+ zlacgv( zx.length, null, 1 ); // $ExpectError
+ zlacgv( zx.length, undefined, 1 ); // $ExpectError
+ zlacgv( zx.length, [ '1' ], 1 ); // $ExpectError
+ zlacgv( zx.length, {}, 1 ); // $ExpectError
+ zlacgv( zx.length, ( 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 );
+
+ zlacgv( zx.length, zx, '10' ); // $ExpectError
+ zlacgv( zx.length, zx, true ); // $ExpectError
+ zlacgv( zx.length, zx, false ); // $ExpectError
+ zlacgv( zx.length, zx, null ); // $ExpectError
+ zlacgv( zx.length, zx, undefined ); // $ExpectError
+ zlacgv( zx.length, zx, [] ); // $ExpectError
+ zlacgv( zx.length, zx, {} ); // $ExpectError
+ zlacgv( zx.length, 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 );
+
+ zlacgv(); // $ExpectError
+ zlacgv( zx.length ); // $ExpectError
+ zlacgv( zx.length ); // $ExpectError
+ zlacgv( zx.length, zx ); // $ExpectError
+ zlacgv( zx.length, zx, 1, 10 ); // $ExpectError
+}
+
+// Attached to main export is an `ndarray` method which returns a Complex128Array...
+{
+ const zx = new Complex128Array( 10 );
+
+ zlacgv.ndarray( zx.length, 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 );
+
+ zlacgv.ndarray( '10', zx, 1, 0 ); // $ExpectError
+ zlacgv.ndarray( true, zx, 1, 0 ); // $ExpectError
+ zlacgv.ndarray( false, zx, 1, 0 ); // $ExpectError
+ zlacgv.ndarray( null, zx, 1, 0 ); // $ExpectError
+ zlacgv.ndarray( undefined, zx, 1, 0 ); // $ExpectError
+ zlacgv.ndarray( [], zx, 1, 0 ); // $ExpectError
+ zlacgv.ndarray( {}, zx, 1, 0 ); // $ExpectError
+ zlacgv.ndarray( ( zx: number ): number => zx, zx, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a second argument which is not a complex number...
+{
+ const zx = new Complex128Array( 10 );
+
+ zlacgv.ndarray( zx.length, 10, zx, 1, 0 ); // $ExpectError
+ zlacgv.ndarray( zx.length, '10', zx, 1, 0 ); // $ExpectError
+ zlacgv.ndarray( zx.length, true, zx, 1, 0 ); // $ExpectError
+ zlacgv.ndarray( zx.length, false, zx, 1, 0 ); // $ExpectError
+ zlacgv.ndarray( zx.length, null, zx, 1, 0 ); // $ExpectError
+ zlacgv.ndarray( zx.length, undefined, zx, 1, 0 ); // $ExpectError
+ zlacgv.ndarray( zx.length, [ '1' ], zx, 1, 0 ); // $ExpectError
+ zlacgv.ndarray( zx.length, {}, zx, 1, 0 ); // $ExpectError
+ zlacgv.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 );
+
+ zlacgv( zx.length, 10, 1, 0 ); // $ExpectError
+ zlacgv( zx.length, '10', 1, 0 ); // $ExpectError
+ zlacgv( zx.length, true, 1, 0 ); // $ExpectError
+ zlacgv( zx.length, false, 1, 0 ); // $ExpectError
+ zlacgv( zx.length, null, 1, 0 ); // $ExpectError
+ zlacgv( zx.length, undefined, 1, 0 ); // $ExpectError
+ zlacgv( zx.length, [ '1' ], 1, 0 ); // $ExpectError
+ zlacgv( zx.length, {}, 1, 0 ); // $ExpectError
+ zlacgv( zx.length, ( 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 );
+
+ zlacgv.ndarray( zx.length, zx, '10', 0 ); // $ExpectError
+ zlacgv.ndarray( zx.length, zx, true, 0 ); // $ExpectError
+ zlacgv.ndarray( zx.length, zx, false, 0 ); // $ExpectError
+ zlacgv.ndarray( zx.length, zx, null, 0 ); // $ExpectError
+ zlacgv.ndarray( zx.length, zx, undefined, 0 ); // $ExpectError
+ zlacgv.ndarray( zx.length, zx, [], 0 ); // $ExpectError
+ zlacgv.ndarray( zx.length, zx, {}, 0 ); // $ExpectError
+ zlacgv.ndarray( zx.length, 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 );
+
+ zlacgv.ndarray( zx.length, zx, 1, '10' ); // $ExpectError
+ zlacgv.ndarray( zx.length, zx, 1, true ); // $ExpectError
+ zlacgv.ndarray( zx.length, zx, 1, false ); // $ExpectError
+ zlacgv.ndarray( zx.length, zx, 1, null ); // $ExpectError
+ zlacgv.ndarray( zx.length, zx, 1, undefined ); // $ExpectError
+ zlacgv.ndarray( zx.length, zx, 1, [] ); // $ExpectError
+ zlacgv.ndarray( zx.length, zx, 1, {} ); // $ExpectError
+ zlacgv.ndarray( zx.length, 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 );
+
+ zlacgv.ndarray(); // $ExpectError
+ zlacgv.ndarray( zx.length ); // $ExpectError
+ zlacgv.ndarray( zx.length ); // $ExpectError
+ zlacgv.ndarray( zx.length, zx ); // $ExpectError
+ zlacgv.ndarray( zx.length, zx, 1 ); // $ExpectError
+ zlacgv.ndarray( zx.length, zx, 1, 0, 10 ); // $ExpectError
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/examples/c/Makefile b/lib/node_modules/@stdlib/lapack/base/zlacgv/examples/c/Makefile
new file mode 100644
index 000000000000..25ced822f96a
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/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/lapack/base/zlacgv/examples/c/example.c b/lib/node_modules/@stdlib/lapack/base/zlacgv/examples/c/example.c
new file mode 100644
index 000000000000..e816ccbe46d0
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/examples/c/example.c
@@ -0,0 +1,40 @@
+/**
+* @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/zlacgv.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 };
+
+ // Specify the number of elements:
+ const int N = 4;
+
+ // Specify stride length:
+ const int strideX = 1;
+
+ // Scale the elements of the array:
+ c_zlacgv( N, (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/lapack/base/zlacgv/examples/index.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/examples/index.js
new file mode 100644
index 000000000000..0fc3212ccfa2
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/examples/index.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';
+
+var discreteUniform = require( '@stdlib/random/base/discrete-uniform' );
+var filledarrayBy = require( '@stdlib/array/filled-by' );
+var Complex128 = require( '@stdlib/complex/float64/ctor' );
+var zlacgv = require( '@stdlib/lapack/base/zlacgv' );
+
+function rand() {
+ return new Complex128( discreteUniform( 0, 10 ), discreteUniform( -5, 5 ) );
+}
+
+var zx = filledarrayBy( 10, 'complex128', rand );
+console.log( zx.toString() );
+
+// Conjugate elements of `zx`:
+zlacgv( zx.length, zx, 1 );
+console.log( zx.get( zx.length-1 ).toString() );
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/include.gypi b/lib/node_modules/@stdlib/lapack/base/zlacgv/include.gypi
new file mode 100644
index 000000000000..4217944b5d20
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/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 1.0
+*
+* var im = imag( z );
+* // returns -2.0
+*
+* @example
+* var Complex128Array = require( '@stdlib/array/complex128' );
+* var real = require( '@stdlib/complex/float64/real' );
+* var imag = require( '@stdlib/complex/float64/imag' );
+* var zlacgv = require( '@stdlib/lapack/base/zlacgv' );
+*
+* var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+*
+* zlacgv.ndarray( 3, 1, 0 );
+*
+* var z = zx.get( 0 );
+* // returns
+*
+* var re = real( z );
+* // returns 1.0
+*
+* var im = imag( z );
+* // returns -2.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 zlacgv;
+var tmp = tryRequire( join( __dirname, './native.js' ) );
+if ( isError( tmp ) ) {
+ zlacgv = main;
+} else {
+ zlacgv = tmp;
+}
+
+
+// EXPORTS //
+
+module.exports = zlacgv;
+
+// exports: { "ndarray": "zlacgv.ndarray" }
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/main.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/main.js
new file mode 100644
index 000000000000..6fcede7ec60e
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/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 zlacgv = require( './zlacgv.js' );
+var ndarray = require( './ndarray.js' );
+
+
+// MAIN //
+
+setReadOnly( zlacgv, 'ndarray', ndarray );
+
+
+// EXPORTS //
+
+module.exports = zlacgv;
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/native.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/native.js
new file mode 100644
index 000000000000..a5522b2f1464
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/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 zlacgv = require( './zlacgv.native.js' );
+var ndarray = require( './ndarray.native.js' );
+
+
+// MAIN //
+
+setReadOnly( zlacgv, 'ndarray', ndarray );
+
+
+// EXPORTS //
+
+module.exports = zlacgv;
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/ndarray.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/ndarray.js
new file mode 100644
index 000000000000..ce4d20917402
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/ndarray.js
@@ -0,0 +1,77 @@
+/**
+* @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 //
+
+/**
+* Conjugates a double-precision complex floating-point vector.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @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 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 ] );
+*
+* zlacgv( 3, zx, 1, 0 );
+*
+* var z = zx.get( 0 );
+* // returns
+*
+* var re = real( z );
+* // returns 1.0
+*
+* var im = imag( z );
+* // returns -2.0
+*/
+function zlacgv( N, zx, strideX, offsetX ) {
+ var zx64;
+ var ix;
+ var sx;
+ var i;
+
+ if ( N <= 0 || strideX <= 0 ) {
+ return zx;
+ }
+ zx64 = reinterpret( zx, 0 );
+ sx = strideX*2;
+ ix = (offsetX*2) + 1;
+ for ( i = 0; i < N; i++ ) {
+ zx64[ ix ] = -zx64[ ix ];
+ ix += sx;
+ }
+ return zx;
+}
+
+
+// EXPORTS //
+
+module.exports = zlacgv;
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/ndarray.native.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/ndarray.native.js
new file mode 100644
index 000000000000..6974cc976da1
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/ndarray.native.js
@@ -0,0 +1,68 @@
+/**
+* @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 //
+
+/**
+* Conjugates a double-precision complex floating-point vector.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @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 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 ] );
+*
+* zlacgv( zx.length, zx, 1, 0 );
+*
+* var z = zx.get( 0 );
+* // returns
+*
+* var re = real( z );
+* // returns 1.0
+*
+* var im = imag( z );
+* // returns -2.0
+*/
+function zlacgv( N, zx, strideX, offsetX ) {
+ var viewZX;
+ offsetX = minViewBufferIndex( N, strideX, offsetX );
+ viewZX = reinterpret( zx, offsetX );
+ addon( N, viewZX, strideX );
+ return zx;
+}
+
+
+// EXPORTS //
+
+module.exports = zlacgv;
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/zlacgv.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/zlacgv.js
new file mode 100644
index 000000000000..57b753d0ffca
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/zlacgv.js
@@ -0,0 +1,88 @@
+/**
+* @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 //
+
+/**
+* Conjugates a double-precision complex floating-point vector.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @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 ] );
+*
+* zlacgv( 3, zx, 1 );
+*
+* var z = zx.get( 0 );
+* // returns
+*
+* var re = real( z );
+* // returns 1.0
+*
+* var im = imag( z );
+* // returns -2.0
+*/
+function zlacgv( N, zx, strideX ) {
+ var zx64;
+ var N2;
+ var sx;
+ var ix;
+ var i;
+
+ zx64 = reinterpret( zx, 0 );
+
+ if ( N <= 0 || strideX <= 0 ) {
+ return zx;
+ }
+ if ( strideX === 1 ) {
+ N2 = N * 2;
+
+ // Code for stride equal to `1`...
+ for ( i = 1; i <= N2; i+=2 ) {
+ zx64[ i ] = -zx64[ i ];
+ }
+ return zx;
+ }
+ // Code for stride not equal to `1`...
+ sx = strideX * 2;
+ ix = 1;
+ for ( i = 0; i < N; i++ ) {
+ zx64[ ix ] = -zx64[ ix ];
+ ix += sx;
+ }
+ return zx;
+}
+
+
+// EXPORTS //
+
+module.exports = zlacgv;
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/zlacgv.native.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/zlacgv.native.js
new file mode 100644
index 000000000000..9f384ec84b69
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/zlacgv.native.js
@@ -0,0 +1,64 @@
+/**
+* @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 //
+
+/**
+* Conjugates a double-precision complex floating-point vector.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @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 ] );
+*
+* zlacgv( zx.length, zx, 1 );
+*
+* var z = zx.get( 0 );
+* // returns
+*
+* var re = real( z );
+* // returns 1.0
+*
+* var im = imag( z );
+* // returns -2.0
+*/
+function zlacgv( N, zx, strideX ) {
+ var viewZX = reinterpret( zx, 0 );
+ addon( N, viewZX, strideX );
+ return zx;
+}
+
+
+// EXPORTS //
+
+module.exports = zlacgv;
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/manifest.json b/lib/node_modules/@stdlib/lapack/base/zlacgv/manifest.json
new file mode 100644
index 000000000000..fc007587aa46
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/manifest.json
@@ -0,0 +1,444 @@
+{
+ "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/zlacgv.f",
+ "./src/zlacgv_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/zlacgv.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/complex/float64/base/mul",
+ "@stdlib/complex/float64/ctor"
+ ]
+ },
+ {
+ "task": "examples",
+ "os": "linux",
+ "blas": "",
+ "wasm": false,
+ "src": [
+ "./src/zlacgv.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/complex/float64/base/mul",
+ "@stdlib/complex/float64/ctor"
+ ]
+ },
+
+ {
+ "task": "build",
+ "os": "linux",
+ "blas": "openblas",
+ "wasm": false,
+ "src": [
+ "./src/zlacgv_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/zlacgv_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/zlacgv_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/zlacgv.f",
+ "./src/zlacgv_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/zlacgv.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/complex/float64/base/mul",
+ "@stdlib/complex/float64/ctor"
+ ]
+ },
+ {
+ "task": "examples",
+ "os": "mac",
+ "blas": "",
+ "wasm": false,
+ "src": [
+ "./src/zlacgv.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/complex/float64/base/mul",
+ "@stdlib/complex/float64/ctor"
+ ]
+ },
+
+ {
+ "task": "build",
+ "os": "mac",
+ "blas": "apple_accelerate_framework",
+ "wasm": false,
+ "src": [
+ "./src/zlacgv_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/zlacgv_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/zlacgv_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/zlacgv_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/zlacgv_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/zlacgv_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/zlacgv.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",
+ "@stdlib/complex/float64/base/mul"
+ ]
+ },
+ {
+ "task": "benchmark",
+ "os": "win",
+ "blas": "",
+ "wasm": false,
+ "src": [
+ "./src/zlacgv.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/complex/float64/base/mul",
+ "@stdlib/complex/float64/ctor"
+ ]
+ },
+ {
+ "task": "examples",
+ "os": "win",
+ "blas": "",
+ "wasm": false,
+ "src": [
+ "./src/zlacgv.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/complex/float64/base/mul",
+ "@stdlib/complex/float64/ctor"
+ ]
+ },
+
+ {
+ "task": "build",
+ "os": "",
+ "blas": "",
+ "wasm": true,
+ "src": [
+ "./src/zlacgv.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/complex/float64/base/mul",
+ "@stdlib/complex/float64/ctor"
+ ]
+ }
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/package.json b/lib/node_modules/@stdlib/lapack/base/zlacgv/package.json
new file mode 100644
index 000000000000..f9ceea075e04
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/package.json
@@ -0,0 +1,81 @@
+{
+ "name": "@stdlib/lapack/base/zlacgv",
+ "version": "0.0.0",
+ "description": "Conjugates a double-precision complex floating-point vector.",
+ "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",
+ "lapack",
+ "blas",
+ "level 1",
+ "linear",
+ "algebra",
+ "subroutines",
+ "zlacgv",
+ "conjugate",
+ "vector",
+ "typed",
+ "array",
+ "ndarray",
+ "complex",
+ "complex128",
+ "double",
+ "float64",
+ "float64array"
+ ],
+ "__stdlib__": {
+ "wasm": false
+ }
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/Makefile b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/Makefile
new file mode 100644
index 000000000000..7733b6180cb4
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/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/lapack/base/zlacgv/src/addon.c b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/addon.c
new file mode 100644
index 000000000000..376988a2dc75
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/addon.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/zlacgv.h"
+#include "stdlib/napi/export.h"
+#include "stdlib/napi/argv.h"
+#include "stdlib/napi/argv_int64.h"
+#include "stdlib/napi/argv_complex128.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_STRIDED_COMPLEX128ARRAY( env, ZX, N, strideX, argv, 2 );
+ c_zlacgv( N, (void *)ZX, strideX );
+ return NULL;
+}
+
+STDLIB_NAPI_MODULE_EXPORT_FCN( addon )
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv.c b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv.c
new file mode 100644
index 000000000000..f561cbf32cc1
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv.c
@@ -0,0 +1,47 @@
+/**
+* @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/zlacgv.h"
+#include "stdlib/blas/base/shared.h"
+#include "stdlib/complex/float64/ctor.h"
+#include "stdlib/complex/float64/base/mul.h"
+#include
+
+/**
+* Conjugates a double-precision complex floating-point vector.
+*
+* @param N number of indexed elements
+* @param ZX input array
+* @param strideX ZX stride length
+*/
+void API_SUFFIX(c_zlacgv)( const CBLAS_INT N, void *ZX, const CBLAS_INT strideX ) {
+ stdlib_complex128_t z;
+ CBLAS_INT i;
+
+ uint8_t *ip1 = (uint8_t *)ZX;
+ int64_t is1 = 16 * strideX;
+
+ if ( N <= 0 || strideX <= 0 ) {
+ return;
+ }
+ for ( i = 0; i < N; i++, ip1 += is1 ) {
+ z = *(stdlib_complex128_t *)ip1;
+ *(stdlib_complex128_t *)ip1 = stdlib_base_complex128_conj( z );
+ }
+ return;
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv.f b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv.f
new file mode 100644
index 000000000000..b42bda59a28a
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv.f
@@ -0,0 +1,83 @@
+!>
+! @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.
+!<
+
+!> Conjugates a double-precision complex floating-point vector.
+!
+! ## 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 {Array>} zx - input array
+! @param {integer} strideX - `zx` stride length
+!<
+subroutine zlacgv( N, zx, strideX )
+ implicit none
+ ! ..
+ ! Scalar arguments:
+ 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) = conjg( zx(i) )
+ end do
+ else
+ ix = 1
+ do i = 1, N
+ zx(ix) = conjg( zx(ix) )
+ ix = ix + strideX
+ end do
+ end if
+ return
+end subroutine zlacgv
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv_cblas.c b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv_cblas.c
new file mode 100644
index 000000000000..c49770be50ea
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv_cblas.c
@@ -0,0 +1,32 @@
+/**
+* @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/zlacgv.h"
+#include "stdlib/blas/base/zlacgv_cblas.h"
+#include "stdlib/blas/base/shared.h"
+
+/**
+* Conjugates a double-precision complex floating-point vector.
+*
+* @param N number of indexed elements
+* @param ZX input array
+* @param strideX ZX stride length
+*/
+void API_SUFFIX(c_zlacgv)( const CBLAS_INT N, void *ZX, const CBLAS_INT strideX ) {
+ cblas_zlacgv( N, ZX, strideX );
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv_f.c b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv_f.c
new file mode 100644
index 000000000000..d8b600c892db
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv_f.c
@@ -0,0 +1,32 @@
+/**
+* @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/zlacgv.h"
+#include "stdlib/blas/base/zlacgv_fortran.h"
+#include "stdlib/blas/base/shared.h"
+
+/**
+* Conjugates a double-precision complex floating-point vector.
+*
+* @param N number of indexed elements
+* @param ZX input array
+* @param strideX ZX stride length
+*/
+void API_SUFFIX(c_zlacgv)( const CBLAS_INT N, void *ZX, const CBLAS_INT strideX ) {
+ zlacgv( &N, ZX, &strideX );
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.js
new file mode 100644
index 000000000000..fa0b9473898e
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/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 zlacgv = require( './../lib' );
+
+
+// VARIABLES //
+
+var opts = {
+ 'skip': isBrowser
+};
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof zlacgv, '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 zlacgv.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 zlacgv = proxyquire( './../lib', {
+ '@stdlib/utils/try-require': tryRequire
+ });
+
+ t.strictEqual( zlacgv, 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 zlacgv;
+ var main;
+
+ main = require( './../lib/zlacgv.js' );
+
+ zlacgv = proxyquire( './../lib', {
+ '@stdlib/utils/try-require': tryRequire
+ });
+
+ t.strictEqual( zlacgv, main, 'returns JavaScript implementation' );
+ t.end();
+
+ function tryRequire() {
+ return new Error( 'Cannot find module' );
+ }
+});
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.ndarray.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.ndarray.js
new file mode 100644
index 000000000000..37582c21c198
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.ndarray.js
@@ -0,0 +1,269 @@
+/**
+* @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 isSameComplex128Array = require( '@stdlib/assert/is-same-complex128array' );
+var Complex128Array = require( '@stdlib/array/complex128' );
+var zlacgv = require( './../lib/ndarray.js' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof zlacgv, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 4', function test( t ) {
+ t.strictEqual( zlacgv.length, 4, 'arity of 4' );
+ t.end();
+});
+
+tape( 'the function conjugates elements from `zx`', function test( t ) {
+ var expected;
+ var zx;
+
+ 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
+ ]);
+
+ zlacgv( 4, zx, 1, 0 );
+
+ expected = 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
+ ]);
+
+ t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports a `zx` stride', function test( t ) {
+ var expected;
+ var zx;
+
+ 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
+ ]);
+
+ zlacgv( 3, zx, 2, 0 );
+
+ expected = 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
+ ]);
+
+ t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports a `zx` offset', function test( t ) {
+ var expected;
+ var zx;
+
+ 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
+ ]);
+
+ zlacgv( 3, zx, 1, 3 );
+
+ expected = 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
+ ]);
+
+ t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns a reference to the input array', function test( t ) {
+ var out;
+ var zx;
+
+ zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ out = zlacgv( 4, 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 zx;
+
+ zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ expected = new Complex128Array([
+ 1.0,
+ 2.0,
+ 3.0,
+ 4.0,
+ 5.0,
+ 6.0,
+ 7.0,
+ 8.0
+ ]);
+
+ zlacgv( -1, zx, 1, 0 );
+ t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
+
+ zlacgv( 0, zx, 1, 0 );
+ t.ok( isSameComplex128Array( zx, 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 zx;
+
+ zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ expected = new Complex128Array([
+ 1.0,
+ 2.0,
+ 3.0,
+ 4.0,
+ 5.0,
+ 6.0,
+ 7.0,
+ 8.0
+ ]);
+
+ zlacgv( 4, zx, -1, 3 );
+ t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
+
+ zlacgv( 4, zx, 0, 3 );
+ t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports complex access patterns', function test( t ) {
+ var expected;
+ var zx;
+
+ 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
+ ]);
+
+ zlacgv( 2, zx, 3, 3 );
+
+ expected = 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
+ ]);
+
+ t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
+
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.ndarray.native.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.ndarray.native.js
new file mode 100644
index 000000000000..971c95c1d5b0
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.ndarray.native.js
@@ -0,0 +1,278 @@
+/**
+* @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 isSameComplex128Array = require( '@stdlib/assert/is-same-complex128array' );
+var Complex128Array = require( '@stdlib/array/complex128' );
+var tryRequire = require( '@stdlib/utils/try-require' );
+
+
+// VARIABLES //
+
+var zlacgv = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) );
+var opts = {
+ 'skip': ( zlacgv instanceof Error )
+};
+
+
+// TESTS //
+
+tape( 'main export is a function', opts, function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof zlacgv, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 4', opts, function test( t ) {
+ t.strictEqual( zlacgv.length, 4, 'arity of 4' );
+ t.end();
+});
+
+tape( 'the function conjugates elements of `zx`', opts, function test( t ) {
+ var expected;
+ var zx;
+
+ 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
+ ]);
+
+ zlacgv( 4, zx, 1, 0 );
+
+ expected = 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
+ ]);
+
+ t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports a `zx` stride', opts, function test( t ) {
+ var expected;
+ var zx;
+
+ 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
+ ]);
+
+ zlacgv( 3, zx, 2, 0 );
+
+ expected = 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
+ ]);
+
+ t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports a `zx` offset', opts, function test( t ) {
+ var expected;
+ var zx;
+
+ 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
+ ]);
+
+ zlacgv( 3, zx, 1, 3 );
+
+ expected = 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
+ ]);
+
+ t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns a reference to the input array', opts, function test( t ) {
+ var out;
+ var zx;
+
+ zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ out = zlacgv( 4, 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 zx;
+
+ zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ expected = new Complex128Array([
+ 1.0,
+ 2.0,
+ 3.0,
+ 4.0,
+ 5.0,
+ 6.0,
+ 7.0,
+ 8.0
+ ]);
+
+ zlacgv( -1, zx, 1, 0 );
+ t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
+
+ zlacgv( 0, zx, 1, 0 );
+ t.ok( isSameComplex128Array( zx, 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 zx;
+
+ zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ expected = new Complex128Array([
+ 1.0,
+ 2.0,
+ 3.0,
+ 4.0,
+ 5.0,
+ 6.0,
+ 7.0,
+ 8.0
+ ]);
+
+ zlacgv( 4, zx, -1, 3 );
+ t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
+
+ zlacgv( 4, zx, 0, 3 );
+ t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports complex access patterns', opts, function test( t ) {
+ var expected;
+ var za;
+ var zx;
+
+ 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
+ ]);
+
+ zlacgv( 2, za, zx, 3, 3 );
+
+ expected = 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
+ ]);
+
+ t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.zlacgv.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.zlacgv.js
new file mode 100644
index 000000000000..e24cd992cd43
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.zlacgv.js
@@ -0,0 +1,220 @@
+/**
+* @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 isSameComplex128Array = require( '@stdlib/assert/is-same-complex128array' );
+var Complex128Array = require( '@stdlib/array/complex128' );
+var zlacgv = require( './../lib/zlacgv.js' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof zlacgv, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 3', function test( t ) {
+ t.strictEqual( zlacgv.length, 3, 'arity of 3' );
+ t.end();
+});
+
+tape( 'the function conjugates elements from `zx`', function test( t ) {
+ var expected;
+ var zx;
+
+ 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
+ ]);
+
+ zlacgv( 4, zx, 1 );
+
+ expected = 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
+ ]);
+
+ t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports a `zx` stride', function test( t ) {
+ var expected;
+ var zx;
+
+ zx = new Complex128Array([
+ 1.0, // 1
+ 2.0, // 1
+ 3.0,
+ 4.0,
+ 5.0, // 2
+ 6.0, // 2
+ 7.0,
+ 8.0,
+ 9.0, // 3
+ 10.0, // 3
+ 11.0,
+ 12.0
+ ]);
+
+ zlacgv( 3, zx, 2 );
+
+ expected = new Complex128Array([
+ 1.0, // 1
+ -2.0, // 1
+ 3.0,
+ 4.0,
+ 5.0, // 2
+ -6.0, // 2
+ 7.0,
+ 8.0,
+ 9.0, // 3
+ -10.0, // 3
+ 11.0,
+ 12.0
+ ]);
+
+ t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function returns a reference to the input array', function test( t ) {
+ var out;
+ var zx;
+
+ zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ out = zlacgv( 4, 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 zx;
+
+ zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ expected = new Complex128Array([
+ 1.0,
+ 2.0,
+ 3.0,
+ 4.0,
+ 5.0,
+ 6.0,
+ 7.0,
+ 8.0
+ ]);
+
+ zlacgv( -1, zx, 1 );
+ t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
+
+ zlacgv( 0, zx, 1 );
+ t.ok( isSameComplex128Array( zx, 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 zx;
+
+ zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ expected = new Complex128Array([
+ 1.0,
+ 2.0,
+ 3.0,
+ 4.0,
+ 5.0,
+ 6.0,
+ 7.0,
+ 8.0
+ ]);
+
+ zlacgv( 4, zx, -1 );
+ t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
+
+ zlacgv( 4, zx, 0 );
+ t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports view offsets', function test( t ) {
+ var expected;
+ var zx0;
+ var zx1;
+
+ // 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
+ ]);
+
+ // Create offset views...
+ zx1 = new Complex128Array( zx0.buffer, zx0.BYTES_PER_ELEMENT*1 ); // begin at 2nd element
+
+ zlacgv( 3, zx1, 1 );
+
+ expected = 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
+ ]);
+
+ t.ok( isSameComplex128Array( zx0, expected ), 'returns expected value' );
+
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.zlacgv.native.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.zlacgv.native.js
new file mode 100644
index 000000000000..0a6495a4605c
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.zlacgv.native.js
@@ -0,0 +1,263 @@
+/**
+* @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 Complex128 = require( '@stdlib/complex/float64/ctor' );
+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 zlacgv = tryRequire( resolve( __dirname, './../lib/zlacgv.native.js' ) );
+var opts = {
+ 'skip': ( zlacgv instanceof Error )
+};
+
+
+// TESTS //
+
+tape( 'main export is a function', opts, function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof zlacgv, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 4', opts, function test( t ) {
+ t.strictEqual( zlacgv.length, 4, 'arity of 4' );
+ t.end();
+});
+
+tape( 'the function conjugates elements from `zx`', opts, function test( t ) {
+ var expected;
+ var delta;
+ var viewX;
+ var tol;
+ var za;
+ 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
+ ]);
+ za = new Complex128( 0.4, -0.7 );
+
+ zlacgv( 4, za, zx, 1 );
+
+ viewX = new Float64Array( zx.buffer );
+ expected = new Float64Array([
+ 0.19, // 1
+ -0.17, // 1
+ 0.2, // 2
+ -0.35, // 2
+ 0.35, // 3
+ 0.2, // 3
+ 0.14, // 4
+ 0.08 // 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 za;
+ 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
+ ]);
+ za = new Complex128( 0.4, -0.7 );
+
+ zlacgv( 3, za, zx, 2 );
+
+ viewX = new Float64Array( zx.buffer );
+ expected = new Float64Array([
+ 0.11, // 1
+ -0.03, // 1
+ 3.0,
+ 6.0,
+ -0.17, // 2
+ 0.46, // 2
+ 4.0,
+ 7.0,
+ -0.17, // 3
+ -0.19, // 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 za;
+ var zx;
+
+ zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ za = new Complex128( 2.0, 2.0 );
+
+ out = zlacgv( 4, za, 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 za;
+ var zx;
+
+ zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ za = new Complex128( 2.0, 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 ] );
+
+ zlacgv( -1, za, zx, 1 );
+ t.deepEqual( viewX, expected, 'returns expected value' );
+
+ zlacgv( 0, za, 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 za;
+ var zx;
+
+ zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ za = new Complex128( 2.0, 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 ] );
+
+ zlacgv( 4, za, zx, -1 );
+ t.deepEqual( viewX, expected, 'returns expected value' );
+
+ zlacgv( 4, za, 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 za;
+ 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
+ ]);
+ za = new Complex128( 0.4, -0.7 );
+
+ // Create offset views...
+ zx1 = new Complex128Array( zx0.buffer, zx0.BYTES_PER_ELEMENT*1 ); // begin at 2nd element
+
+ zlacgv( 3, za, zx1, 1 );
+
+ viewX = new Float64Array( zx0.buffer );
+ expected = new Float64Array([
+ 0.1,
+ -0.3,
+ 9.5, // 1
+ -2.0, // 1
+ 0.13, // 2
+ -0.39, // 2
+ 4.3, // 3
+ 0.6, // 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 b1140918226499db0e5cfee14c5016c46a4e2614 Mon Sep 17 00:00:00 2001
From: Ricky Reusser <572717+rreusser@users.noreply.github.com>
Date: Wed, 15 Jan 2025 09:45:39 -0800
Subject: [PATCH 2/6] fix: clean up incomplete implementation of zlacgv
---
.../lapack/base/zlacgv/docs/types/index.d.ts | 26 ++-
.../lapack/base/zlacgv/docs/types/test.ts | 42 +----
.../lapack/base/zlacgv/examples/c/example.c | 2 +-
.../include/stdlib/blas/base/zlacgv_fortran.h | 4 +-
.../@stdlib/lapack/base/zlacgv/lib/ndarray.js | 7 +
.../@stdlib/lapack/base/zlacgv/lib/zlacgv.js | 9 +-
.../@stdlib/lapack/base/zlacgv/src/addon.c | 6 +-
.../@stdlib/lapack/base/zlacgv/src/zlacgv.c | 8 +-
.../base/zlacgv/test/test.ndarray.native.js | 3 +-
.../base/zlacgv/test/test.zlacgv.native.js | 151 ++++++------------
10 files changed, 89 insertions(+), 169 deletions(-)
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/docs/types/index.d.ts b/lib/node_modules/@stdlib/lapack/base/zlacgv/docs/types/index.d.ts
index d5f27c9819e5..2352a44571ae 100644
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/docs/types/index.d.ts
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/docs/types/index.d.ts
@@ -27,7 +27,7 @@ import { Complex128Array } from '@stdlib/types/array';
*/
interface Routine {
/**
- * Scales a double-precision complex floating-point vector by a double-precision complex floating-point constant.
+ * Conjugates a double-precision complex floating-point vector.
*
* @param N - number of indexed elements
* @param zx - input array
@@ -36,7 +36,6 @@ interface Routine {
*
* @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' );
*
@@ -48,15 +47,15 @@ interface Routine {
* // returns
*
* var re = real( z );
- * // returns -2.0
+ * // returns 1.0
*
* var im = imag( z );
- * // returns 6.0
+ * // returns -2.0
*/
( N: number, zx: Complex128Array, strideX: number ): Complex128Array;
/**
- * Scales a double-precision complex floating-point vector by a double-precision complex floating-point constant.
+ * Conjugates a double-precision complex floating-point vector.
*
* @param N - number of indexed elements
* @param zx - input array
@@ -66,7 +65,6 @@ interface Routine {
*
* @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' );
*
@@ -78,16 +76,16 @@ interface Routine {
* // returns
*
* var re = real( z );
- * // returns -2.0
+ * // returns 1.0
*
* var im = imag( z );
- * // returns 6.0
+ * // returns -2.0
*/
ndarray( N: number, zx: Complex128Array, strideX: number, offsetX: number ): Complex128Array;
}
/**
-* Scales a double-precision complex floating-point vector by a double-precision complex floating-point constant.
+* Conjugates a double-precision complex floating-point vector.
*
* @param N - number of indexed elements
* @param zx - input array
@@ -96,7 +94,6 @@ interface Routine {
*
* @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' );
*
@@ -108,14 +105,13 @@ interface Routine {
* // returns
*
* var re = real( z );
-* // returns -2.0
+* // returns 3.0
*
* var im = imag( z );
-* // returns 14.0
+* // returns -4.0
*
* @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' );
*
@@ -127,10 +123,10 @@ interface Routine {
* // returns
*
* var re = real( z );
-* // returns -2.0
+* // returns 3.0
*
* var im = imag( z );
-* // returns 14.0
+* // returns -4.0
*/
declare var zlacgv: Routine;
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/docs/types/test.ts b/lib/node_modules/@stdlib/lapack/base/zlacgv/docs/types/test.ts
index 5741b73f1c7d..316833499da0 100644
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/docs/types/test.ts
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/docs/types/test.ts
@@ -43,22 +43,7 @@ import zlacgv = require( './index' );
zlacgv( ( zx: number ): number => zx, zx, 1 ); // $ExpectError
}
-// The compiler throws an error if the function is provided a second argument which is not a complex number...
-{
- const zx = new Complex128Array( 10 );
-
- zlacgv( zx.length, 10, zx, 1 ); // $ExpectError
- zlacgv( zx.length, '10', zx, 1 ); // $ExpectError
- zlacgv( zx.length, true, zx, 1 ); // $ExpectError
- zlacgv( zx.length, false, zx, 1 ); // $ExpectError
- zlacgv( zx.length, null, zx, 1 ); // $ExpectError
- zlacgv( zx.length, undefined, zx, 1 ); // $ExpectError
- zlacgv( zx.length, [ '1' ], zx, 1 ); // $ExpectError
- zlacgv( zx.length, {}, zx, 1 ); // $ExpectError
- zlacgv( 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...
+// The compiler throws an error if the function is provided a second argument which is not a Complex128Array...
{
const zx = new Complex128Array( 10 );
@@ -73,7 +58,7 @@ import zlacgv = require( './index' );
zlacgv( zx.length, ( zx: number ): number => zx, 1 ); // $ExpectError
}
-// The compiler throws an error if the function is provided a fourth argument which is not a number...
+// The compiler throws an error if the function is provided a third argument which is not a number...
{
const zx = new Complex128Array( 10 );
@@ -93,7 +78,6 @@ import zlacgv = require( './index' );
zlacgv(); // $ExpectError
zlacgv( zx.length ); // $ExpectError
- zlacgv( zx.length ); // $ExpectError
zlacgv( zx.length, zx ); // $ExpectError
zlacgv( zx.length, zx, 1, 10 ); // $ExpectError
}
@@ -119,22 +103,7 @@ import zlacgv = require( './index' );
zlacgv.ndarray( ( zx: number ): number => zx, zx, 1, 0 ); // $ExpectError
}
-// The compiler throws an error if the `ndarray` method is provided a second argument which is not a complex number...
-{
- const zx = new Complex128Array( 10 );
-
- zlacgv.ndarray( zx.length, 10, zx, 1, 0 ); // $ExpectError
- zlacgv.ndarray( zx.length, '10', zx, 1, 0 ); // $ExpectError
- zlacgv.ndarray( zx.length, true, zx, 1, 0 ); // $ExpectError
- zlacgv.ndarray( zx.length, false, zx, 1, 0 ); // $ExpectError
- zlacgv.ndarray( zx.length, null, zx, 1, 0 ); // $ExpectError
- zlacgv.ndarray( zx.length, undefined, zx, 1, 0 ); // $ExpectError
- zlacgv.ndarray( zx.length, [ '1' ], zx, 1, 0 ); // $ExpectError
- zlacgv.ndarray( zx.length, {}, zx, 1, 0 ); // $ExpectError
- zlacgv.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...
+// The compiler throws an error if the `ndarray` method is provided a second argument which is not a Complex128Array...
{
const zx = new Complex128Array( 10 );
@@ -149,7 +118,7 @@ import zlacgv = require( './index' );
zlacgv( zx.length, ( 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...
+// The compiler throws an error if the `ndarray` method is provided a third argument which is not a number...
{
const zx = new Complex128Array( 10 );
@@ -163,7 +132,7 @@ import zlacgv = require( './index' );
zlacgv.ndarray( zx.length, 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...
+// The compiler throws an error if the `ndarray` method is provided a fourth argument which is not a number...
{
const zx = new Complex128Array( 10 );
@@ -183,7 +152,6 @@ import zlacgv = require( './index' );
zlacgv.ndarray(); // $ExpectError
zlacgv.ndarray( zx.length ); // $ExpectError
- zlacgv.ndarray( zx.length ); // $ExpectError
zlacgv.ndarray( zx.length, zx ); // $ExpectError
zlacgv.ndarray( zx.length, zx, 1 ); // $ExpectError
zlacgv.ndarray( zx.length, zx, 1, 0, 10 ); // $ExpectError
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/examples/c/example.c b/lib/node_modules/@stdlib/lapack/base/zlacgv/examples/c/example.c
index e816ccbe46d0..9c4fda94019a 100644
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/examples/c/example.c
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/examples/c/example.c
@@ -30,7 +30,7 @@ int main( void ) {
// Specify stride length:
const int strideX = 1;
- // Scale the elements of the array:
+ // Conjugate the elements of the array:
c_zlacgv( N, (void *)zx, strideX );
// Print the result:
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/blas/base/zlacgv_fortran.h b/lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/blas/base/zlacgv_fortran.h
index af4024ad9713..77b3879b7821 100644
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/blas/base/zlacgv_fortran.h
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/blas/base/zlacgv_fortran.h
@@ -32,9 +32,9 @@ extern "C" {
#endif
/**
-* Scales a double-precision complex floating-point vector by a double-precision complex floating-point constant.
+* Conjugates a double-precision complex floating-point vector.
*/
-void zlacgv( const int *, const stdlib_complex128_t *, void *, const int * );
+void zlacgv( const int *, void *, const int * );
#ifdef __cplusplus
}
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/ndarray.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/ndarray.js
index ce4d20917402..61b2913ca2e5 100644
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/ndarray.js
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/ndarray.js
@@ -61,13 +61,20 @@ function zlacgv( N, zx, strideX, offsetX ) {
if ( N <= 0 || strideX <= 0 ) {
return zx;
}
+
+ // Interpret the complex input array as a float64 array
zx64 = reinterpret( zx, 0 );
+
+ // Compute a stride and an index to be incremented
sx = strideX*2;
ix = (offsetX*2) + 1;
+
+ // Conjugate the complex elements
for ( i = 0; i < N; i++ ) {
zx64[ ix ] = -zx64[ ix ];
ix += sx;
}
+
return zx;
}
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/zlacgv.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/zlacgv.js
index 57b753d0ffca..ecaae014ee77 100644
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/zlacgv.js
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/zlacgv.js
@@ -58,6 +58,7 @@ function zlacgv( N, zx, strideX ) {
var ix;
var i;
+ // Interpret the complex vector as a float64 array
zx64 = reinterpret( zx, 0 );
if ( N <= 0 || strideX <= 0 ) {
@@ -66,19 +67,23 @@ function zlacgv( N, zx, strideX ) {
if ( strideX === 1 ) {
N2 = N * 2;
- // Code for stride equal to `1`...
+ // Code for stride equal to `1`
for ( i = 1; i <= N2; i+=2 ) {
zx64[ i ] = -zx64[ i ];
}
return zx;
}
- // Code for stride not equal to `1`...
+
+ // Compute a stride and an index to be incremented
sx = strideX * 2;
ix = 1;
+
+ // Conjugate the complex elements for stride not equal to 1
for ( i = 0; i < N; i++ ) {
zx64[ ix ] = -zx64[ ix ];
ix += sx;
}
+
return zx;
}
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/addon.c b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/addon.c
index 376988a2dc75..9b8404f2b4a8 100644
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/addon.c
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/addon.c
@@ -32,10 +32,10 @@
* @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( env, info, argv, argc, 3 );
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
- STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 3 );
- STDLIB_NAPI_ARGV_STRIDED_COMPLEX128ARRAY( env, ZX, N, strideX, argv, 2 );
+ STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 );
+ STDLIB_NAPI_ARGV_STRIDED_COMPLEX128ARRAY( env, ZX, N, strideX, argv, 1 );
c_zlacgv( N, (void *)ZX, strideX );
return NULL;
}
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv.c b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv.c
index f561cbf32cc1..53424e6dbcab 100644
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv.c
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv.c
@@ -30,18 +30,18 @@
* @param strideX ZX stride length
*/
void API_SUFFIX(c_zlacgv)( const CBLAS_INT N, void *ZX, const CBLAS_INT strideX ) {
- stdlib_complex128_t z;
+ stdlib_complex128_t* zp;
CBLAS_INT i;
uint8_t *ip1 = (uint8_t *)ZX;
- int64_t is1 = 16 * strideX;
+ int64_t is1 = (int64_t)(16 * strideX);
if ( N <= 0 || strideX <= 0 ) {
return;
}
for ( i = 0; i < N; i++, ip1 += is1 ) {
- z = *(stdlib_complex128_t *)ip1;
- *(stdlib_complex128_t *)ip1 = stdlib_base_complex128_conj( z );
+ zp = (stdlib_complex128_t *)ip1;
+ zp->im = -zp->im;
}
return;
}
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.ndarray.native.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.ndarray.native.js
index 971c95c1d5b0..f0d3becdf623 100644
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.ndarray.native.js
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.ndarray.native.js
@@ -234,7 +234,6 @@ tape( 'if provided an `strideX` parameter less than or equal to `0`, the functio
tape( 'the function supports complex access patterns', opts, function test( t ) {
var expected;
- var za;
var zx;
zx = new Complex128Array([
@@ -254,7 +253,7 @@ tape( 'the function supports complex access patterns', opts, function test( t )
3.0 // 2
]);
- zlacgv( 2, za, zx, 3, 3 );
+ zlacgv( 2, zx, 3, 3 );
expected = new Complex128Array([
0.1,
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.zlacgv.native.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.zlacgv.native.js
index 0a6495a4605c..96baf546dd13 100644
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.zlacgv.native.js
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.zlacgv.native.js
@@ -22,11 +22,8 @@
var resolve = require( 'path' ).resolve;
var tape = require( 'tape' );
+var isSameComplex128Array = require( '@stdlib/assert/is-same-complex128array' );
var Complex128Array = require( '@stdlib/array/complex128' );
-var Complex128 = require( '@stdlib/complex/float64/ctor' );
-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' );
@@ -46,19 +43,14 @@ tape( 'main export is a function', opts, function test( t ) {
t.end();
});
-tape( 'the function has an arity of 4', opts, function test( t ) {
- t.strictEqual( zlacgv.length, 4, 'arity of 4' );
+tape( 'the function has an arity of 3', opts, function test( t ) {
+ t.strictEqual( zlacgv.length, 3, 'arity of 3' );
t.end();
});
tape( 'the function conjugates elements from `zx`', opts, function test( t ) {
var expected;
- var delta;
- var viewX;
- var tol;
- var za;
var zx;
- var k;
zx = new Complex128Array([
0.3, // 1
@@ -70,41 +62,27 @@ tape( 'the function conjugates elements from `zx`', opts, function test( t ) {
0.0, // 4
0.2 // 4
]);
- za = new Complex128( 0.4, -0.7 );
-
- zlacgv( 4, za, zx, 1 );
-
- viewX = new Float64Array( zx.buffer );
- expected = new Float64Array([
- 0.19, // 1
- -0.17, // 1
- 0.2, // 2
- -0.35, // 2
- 0.35, // 3
- 0.2, // 3
- 0.14, // 4
- 0.08 // 4
+
+ zlacgv( 4, zx, 1 );
+
+ expected = 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
]);
- 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.ok(isSameComplex128Array(zx, expected), 'returns expected value');
t.end();
});
tape( 'the function supports a `zx` stride', opts, function test( t ) {
var expected;
- var delta;
- var viewX;
- var tol;
- var za;
var zx;
- var k;
zx = new Complex128Array([
0.1, // 1
@@ -120,46 +98,35 @@ tape( 'the function supports a `zx` stride', opts, function test( t ) {
7.0,
2.0
]);
- za = new Complex128( 0.4, -0.7 );
- zlacgv( 3, za, zx, 2 );
+ zlacgv( 3, zx, 2 );
- viewX = new Float64Array( zx.buffer );
- expected = new Float64Array([
- 0.11, // 1
- -0.03, // 1
+ expected = new Complex128Array([
+ 0.1, // 1
+ -0.1, // 1
3.0,
6.0,
- -0.17, // 2
- 0.46, // 2
+ -0.6, // 2
+ -0.1, // 2
4.0,
7.0,
- -0.17, // 3
- -0.19, // 3
+ 0.1, // 3
+ 0.3, // 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.ok(isSameComplex128Array(zx, expected), 'returns expected value');
t.end();
});
tape( 'the function returns a reference to the input array', opts, function test( t ) {
var out;
- var za;
var zx;
zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- za = new Complex128( 2.0, 2.0 );
- out = zlacgv( 4, za, zx, 1 );
+ out = zlacgv( 4, zx, 1 );
t.strictEqual( out, zx, 'same reference' );
t.end();
@@ -167,55 +134,42 @@ tape( 'the function returns a reference to the input array', opts, function test
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 za;
var zx;
zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- za = new Complex128( 2.0, 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 ] );
+ expected = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- zlacgv( -1, za, zx, 1 );
- t.deepEqual( viewX, expected, 'returns expected value' );
+ zlacgv( -1, zx, 1 );
+ t.ok(isSameComplex128Array(zx, expected), 'returns expected value');
- zlacgv( 0, za, zx, 1 );
- t.deepEqual( viewX, expected, 'returns expected value' );
+ zlacgv( 0, zx, 1 );
+ t.ok(isSameComplex128Array(zx, 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 za;
var zx;
zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- za = new Complex128( 2.0, 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 ] );
+ expected = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- zlacgv( 4, za, zx, -1 );
- t.deepEqual( viewX, expected, 'returns expected value' );
+ zlacgv( 4, zx, -1 );
+ t.ok(isSameComplex128Array(zx, expected), 'returns expected value');
- zlacgv( 4, za, zx, 0 );
- t.deepEqual( viewX, expected, 'returns expected value' );
+ zlacgv( 4, zx, 0 );
+ t.ok(isSameComplex128Array(zx, 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 za;
- var k;
// Initial arrays...
zx0 = new Complex128Array([
@@ -230,34 +184,25 @@ tape( 'the function supports view offsets', opts, function test( t ) {
2.0,
3.0
]);
- za = new Complex128( 0.4, -0.7 );
// Create offset views...
zx1 = new Complex128Array( zx0.buffer, zx0.BYTES_PER_ELEMENT*1 ); // begin at 2nd element
- zlacgv( 3, za, zx1, 1 );
+ zlacgv( 3, zx1, 1 );
- viewX = new Float64Array( zx0.buffer );
- expected = new Float64Array([
+ expected = new Complex128Array([
0.1,
-0.3,
- 9.5, // 1
- -2.0, // 1
- 0.13, // 2
- -0.39, // 2
- 4.3, // 3
- 0.6, // 3
+ 8.0, // 1
+ -9.0, // 1
+ 0.5, // 2
+ 0.1, // 2
+ 2.0, // 3
+ -5.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.ok(isSameComplex128Array(zx0, expected), 'returns expected value');
+
t.end();
});
From 5215a7a5910cb33269b3d89bf32772f00efa55c5 Mon Sep 17 00:00:00 2001
From: Ricky Reusser <572717+rreusser@users.noreply.github.com>
Date: Wed, 15 Jan 2025 10:52:55 -0800
Subject: [PATCH 3/6] chore: clean up incorrect readme values and gyp config
---
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: 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: passed
- task: lint_c_benchmarks
status: passed
- 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/lapack/base/zlacgv/README.md | 36 ++++++++--------
.../zlacgv/benchmark/c/benchmark.length.c | 2 +-
.../lapack/base/zlacgv/examples/c/example.c | 2 +-
.../stdlib/{blas => lapack}/base/zlacgv.h | 0
.../{blas => lapack}/base/zlacgv_cblas.h | 0
.../{blas => lapack}/base/zlacgv_fortran.h | 0
.../@stdlib/lapack/base/zlacgv/manifest.json | 22 ++--------
.../@stdlib/lapack/base/zlacgv/src/addon.c | 43 -------------------
.../@stdlib/lapack/base/zlacgv/src/zlacgv.c | 3 +-
.../lapack/base/zlacgv/src/zlacgv_cblas.c | 4 +-
.../@stdlib/lapack/base/zlacgv/src/zlacgv_f.c | 4 +-
11 files changed, 28 insertions(+), 88 deletions(-)
rename lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/{blas => lapack}/base/zlacgv.h (100%)
rename lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/{blas => lapack}/base/zlacgv_cblas.h (100%)
rename lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/{blas => lapack}/base/zlacgv_fortran.h (100%)
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/src/addon.c
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/README.md b/lib/node_modules/@stdlib/lapack/base/zlacgv/README.md
index 36878c5f9690..24dd281bc9f4 100644
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/README.md
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/README.md
@@ -27,7 +27,7 @@ limitations under the License.
## Usage
```javascript
-var zlacgv = require( '@stdlib/blas/base/zlacgv' );
+var zlacgv = require( '@stdlib/lapack/base/zlacgv' );
```
#### zlacgv( N, zx, strideX )
@@ -41,13 +41,13 @@ var imag = require( '@stdlib/complex/float64/imag' );
var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0 ] );
-zlacgv( 4, zx, 0 );
+zlacgv( 2, zx, 1 );
var z = zx.get( 0 );
// returns
var re = real( z );
-// returns 2.0
+// returns 1.0
var im = imag( z );
// returns -2.0
@@ -68,16 +68,16 @@ 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 ] );
-zlacgv( 2, zx, 1 );
+zlacgv( 2, zx, 2 );
var z = zx.get( 0 );
// returns
-var re = imag( z );
-// returns 3.0
+var re = real( z );
+// returns 1.0
var im = imag( z );
-// returns -4.0
+// returns -2.0
```
Note that indexing is relative to the first index. To introduce an offset, use [`typed array`][mdn-typed-array] views.
@@ -103,10 +103,10 @@ var z = zx0.get( 1 );
// returns
var re = real( z );
-// returns -2.0
+// returns 3.0
var im = imag( z );
-// returns 14.0
+// returns -4.0
```
#### zlacgv.ndarray( N, zx, strideX, offsetX )
@@ -126,10 +126,10 @@ var z = zx.get( 0 );
// returns
var re = real( z );
-// returns -2.0
+// returns 1.0
var im = imag( z );
-// returns 6.0
+// returns -2.0
```
The function has the following additional parameters:
@@ -151,10 +151,10 @@ var z = zx.get( 3 );
// returns
var re = real( z );
-// returns -2.0
+// returns 7.0
var im = imag( z );
-// returns 30.0
+// returns -8.0
```
@@ -166,7 +166,7 @@ var im = imag( z );
## Notes
- If `N <= 0` or `strideX <= 0` , both functions return `zx` unchanged.
-- `zlacgv()` corresponds to the [BLAS][blas] level 1 function [`zlacgv`][zlacgv].
+- `zlacgv()` corresponds to the [LAPACK][lapack] BLAS-like level 1 function [`zlacgv`][zlacgv].
@@ -182,7 +182,7 @@ var im = imag( z );
var discreteUniform = require( '@stdlib/random/base/discrete-uniform' );
var filledarrayBy = require( '@stdlib/array/filled-by' );
var Complex128 = require( '@stdlib/complex/float64/ctor' );
-var zlacgv = require( '@stdlib/blas/base/zlacgv' );
+var zlacgv = require( '@stdlib/lapack/base/zlacgv' );
function rand() {
return new Complex128( discreteUniform( 0, 10 ), discreteUniform( -5, 5 ) );
@@ -223,7 +223,7 @@ console.log( zx.get( zx.length-1 ).toString() );
### Usage
```c
-#include "stdlib/blas/base/zlacgv.h"
+#include "stdlib/lapack/base/zlacgv.h"
```
#### c_zlacgv( N, \*ZX, strideX )
@@ -265,7 +265,7 @@ void c_zlacgv( const CBLAS_INT N, void *ZX, const CBLAS_INT strideX );
### Examples
```c
-#include "stdlib/blas/base/zlacgv.h"
+#include "stdlib/lapack/base/zlacgv.h"
#include
int main( void ) {
@@ -308,7 +308,7 @@ int main( void ) {
-[blas]: http://www.netlib.org/blas
+[lapack]: https://www.netlib.org/lapack
[zlacgv]: https://www.netlib.org/lapack/explore-html/d9/d50/group__lacgv_gae42087fcabd33130fcbac2aff031de8b.html#gae42087fcabd33130fcbac2aff031de8b
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/c/benchmark.length.c
index 96cf6b1c1ebf..9daf70dd721a 100644
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/c/benchmark.length.c
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/c/benchmark.length.c
@@ -16,7 +16,7 @@
* limitations under the License.
*/
-#include "stdlib/blas/base/zlacgv.h"
+#include "stdlib/lapack/base/zlacgv.h"
#include
#include
#include
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/examples/c/example.c b/lib/node_modules/@stdlib/lapack/base/zlacgv/examples/c/example.c
index 9c4fda94019a..6569e9c55db3 100644
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/examples/c/example.c
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/examples/c/example.c
@@ -16,7 +16,7 @@
* limitations under the License.
*/
-#include "stdlib/blas/base/zlacgv.h"
+#include "stdlib/lapack/base/zlacgv.h"
#include "stdlib/complex/float64/ctor.h"
#include
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/blas/base/zlacgv.h b/lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/lapack/base/zlacgv.h
similarity index 100%
rename from lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/blas/base/zlacgv.h
rename to lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/lapack/base/zlacgv.h
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/blas/base/zlacgv_cblas.h b/lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/lapack/base/zlacgv_cblas.h
similarity index 100%
rename from lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/blas/base/zlacgv_cblas.h
rename to lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/lapack/base/zlacgv_cblas.h
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/blas/base/zlacgv_fortran.h b/lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/lapack/base/zlacgv_fortran.h
similarity index 100%
rename from lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/blas/base/zlacgv_fortran.h
rename to lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/lapack/base/zlacgv_fortran.h
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/manifest.json b/lib/node_modules/@stdlib/lapack/base/zlacgv/manifest.json
index fc007587aa46..835b4bd0aba3 100644
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/manifest.json
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/manifest.json
@@ -48,7 +48,6 @@
"@stdlib/napi/argv",
"@stdlib/napi/argv-int64",
"@stdlib/napi/argv-strided-complex128array",
- "@stdlib/napi/argv-complex128",
"@stdlib/complex/float64/ctor"
]
},
@@ -67,7 +66,6 @@
"libpath": [],
"dependencies": [
"@stdlib/blas/base/shared",
- "@stdlib/complex/float64/base/mul",
"@stdlib/complex/float64/ctor"
]
},
@@ -86,7 +84,6 @@
"libpath": [],
"dependencies": [
"@stdlib/blas/base/shared",
- "@stdlib/complex/float64/base/mul",
"@stdlib/complex/float64/ctor"
]
},
@@ -113,7 +110,6 @@
"@stdlib/napi/argv",
"@stdlib/napi/argv-int64",
"@stdlib/napi/argv-strided-complex128array",
- "@stdlib/napi/argv-complex128",
"@stdlib/complex/float64/ctor"
]
},
@@ -134,8 +130,7 @@
],
"libpath": [],
"dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/complex/float32/ctor"
+ "@stdlib/blas/base/shared"
]
},
{
@@ -155,8 +150,7 @@
],
"libpath": [],
"dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/complex/float32/ctor"
+ "@stdlib/blas/base/shared"
]
},
@@ -180,7 +174,6 @@
"@stdlib/napi/argv",
"@stdlib/napi/argv-int64",
"@stdlib/napi/argv-strided-complex128array",
- "@stdlib/napi/argv-complex128",
"@stdlib/complex/float64/ctor"
]
},
@@ -199,7 +192,6 @@
"libpath": [],
"dependencies": [
"@stdlib/blas/base/shared",
- "@stdlib/complex/float64/base/mul",
"@stdlib/complex/float64/ctor"
]
},
@@ -218,7 +210,6 @@
"libpath": [],
"dependencies": [
"@stdlib/blas/base/shared",
- "@stdlib/complex/float64/base/mul",
"@stdlib/complex/float64/ctor"
]
},
@@ -244,7 +235,6 @@
"@stdlib/napi/argv",
"@stdlib/napi/argv-int64",
"@stdlib/napi/argv-strided-complex128array",
- "@stdlib/napi/argv-complex128",
"@stdlib/complex/float64/ctor"
]
},
@@ -311,7 +301,6 @@
"@stdlib/napi/argv",
"@stdlib/napi/argv-int64",
"@stdlib/napi/argv-strided-complex128array",
- "@stdlib/napi/argv-complex128",
"@stdlib/complex/float64/ctor"
]
},
@@ -377,9 +366,7 @@
"@stdlib/napi/argv",
"@stdlib/napi/argv-int64",
"@stdlib/napi/argv-strided-complex128array",
- "@stdlib/napi/argv-complex128",
- "@stdlib/complex/float64/ctor",
- "@stdlib/complex/float64/base/mul"
+ "@stdlib/complex/float64/ctor"
]
},
{
@@ -397,7 +384,6 @@
"libpath": [],
"dependencies": [
"@stdlib/blas/base/shared",
- "@stdlib/complex/float64/base/mul",
"@stdlib/complex/float64/ctor"
]
},
@@ -416,7 +402,6 @@
"libpath": [],
"dependencies": [
"@stdlib/blas/base/shared",
- "@stdlib/complex/float64/base/mul",
"@stdlib/complex/float64/ctor"
]
},
@@ -436,7 +421,6 @@
"libpath": [],
"dependencies": [
"@stdlib/blas/base/shared",
- "@stdlib/complex/float64/base/mul",
"@stdlib/complex/float64/ctor"
]
}
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/addon.c b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/addon.c
deleted file mode 100644
index 9b8404f2b4a8..000000000000
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/addon.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/zlacgv.h"
-#include "stdlib/napi/export.h"
-#include "stdlib/napi/argv.h"
-#include "stdlib/napi/argv_int64.h"
-#include "stdlib/napi/argv_complex128.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, 3 );
- STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
- STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 );
- STDLIB_NAPI_ARGV_STRIDED_COMPLEX128ARRAY( env, ZX, N, strideX, argv, 1 );
- c_zlacgv( N, (void *)ZX, strideX );
- return NULL;
-}
-
-STDLIB_NAPI_MODULE_EXPORT_FCN( addon )
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv.c b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv.c
index 53424e6dbcab..bcef9d3fdedf 100644
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv.c
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv.c
@@ -16,10 +16,9 @@
* limitations under the License.
*/
-#include "stdlib/blas/base/zlacgv.h"
+#include "stdlib/lapack/base/zlacgv.h"
#include "stdlib/blas/base/shared.h"
#include "stdlib/complex/float64/ctor.h"
-#include "stdlib/complex/float64/base/mul.h"
#include
/**
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv_cblas.c b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv_cblas.c
index c49770be50ea..395a0fbf6eb7 100644
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv_cblas.c
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv_cblas.c
@@ -16,8 +16,8 @@
* limitations under the License.
*/
-#include "stdlib/blas/base/zlacgv.h"
-#include "stdlib/blas/base/zlacgv_cblas.h"
+#include "stdlib/lapack/base/zlacgv.h"
+#include "stdlib/lapack/base/zlacgv_cblas.h"
#include "stdlib/blas/base/shared.h"
/**
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv_f.c b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv_f.c
index d8b600c892db..6ec8087ac550 100644
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv_f.c
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv_f.c
@@ -16,8 +16,8 @@
* limitations under the License.
*/
-#include "stdlib/blas/base/zlacgv.h"
-#include "stdlib/blas/base/zlacgv_fortran.h"
+#include "stdlib/lapack/base/zlacgv.h"
+#include "stdlib/lapack/base/zlacgv_fortran.h"
#include "stdlib/blas/base/shared.h"
/**
From 75c8e1f9e921fdf09ba5dbf1c8fbe9630e4bc65a Mon Sep 17 00:00:00 2001
From: Ricky Reusser <572717+rreusser@users.noreply.github.com>
Date: Wed, 15 Jan 2025 11:35:05 -0800
Subject: [PATCH 4/6] chore: remove native code from zlacgv
---
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/zlacgv/benchmark/benchmark.native.js | 112 -----
.../benchmark/benchmark.ndarray.native.js | 112 -----
.../lapack/base/zlacgv/benchmark/c/Makefile | 146 ------
.../zlacgv/benchmark/c/benchmark.length.c | 150 ------
.../base/zlacgv/benchmark/fortran/Makefile | 141 ------
.../benchmark/fortran/benchmark.length.f | 218 ---------
.../@stdlib/lapack/base/zlacgv/binding.gyp | 265 -----------
.../lapack/base/zlacgv/examples/c/Makefile | 146 ------
.../lapack/base/zlacgv/examples/c/example.c | 40 --
.../@stdlib/lapack/base/zlacgv/include.gypi | 70 ---
.../include/stdlib/lapack/base/zlacgv.h | 43 --
.../include/stdlib/lapack/base/zlacgv_cblas.h | 43 --
.../stdlib/lapack/base/zlacgv_fortran.h | 43 --
.../@stdlib/lapack/base/zlacgv/lib/native.js | 35 --
.../lapack/base/zlacgv/lib/ndarray.native.js | 68 ---
.../lapack/base/zlacgv/lib/zlacgv.native.js | 64 ---
.../@stdlib/lapack/base/zlacgv/manifest.json | 428 ------------------
.../@stdlib/lapack/base/zlacgv/src/Makefile | 70 ---
.../@stdlib/lapack/base/zlacgv/src/zlacgv.c | 46 --
.../@stdlib/lapack/base/zlacgv/src/zlacgv.f | 83 ----
.../lapack/base/zlacgv/src/zlacgv_cblas.c | 32 --
.../@stdlib/lapack/base/zlacgv/src/zlacgv_f.c | 32 --
.../base/zlacgv/test/test.ndarray.native.js | 277 ------------
.../base/zlacgv/test/test.zlacgv.native.js | 208 ---------
24 files changed, 2872 deletions(-)
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/benchmark.native.js
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/benchmark.ndarray.native.js
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/c/Makefile
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/c/benchmark.length.c
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/fortran/Makefile
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/fortran/benchmark.length.f
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/binding.gyp
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/examples/c/Makefile
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/examples/c/example.c
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/include.gypi
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/lapack/base/zlacgv.h
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/lapack/base/zlacgv_cblas.h
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/include/stdlib/lapack/base/zlacgv_fortran.h
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/lib/native.js
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/lib/ndarray.native.js
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/lib/zlacgv.native.js
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/manifest.json
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/src/Makefile
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv.c
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv.f
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv_cblas.c
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv_f.c
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.ndarray.native.js
delete mode 100644 lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.zlacgv.native.js
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/benchmark.native.js
deleted file mode 100644
index 765c08ae8ddc..000000000000
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/benchmark.native.js
+++ /dev/null
@@ -1,112 +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 zlacgv = tryRequire( resolve( __dirname, './../lib/zlacgv.native.js' ) );
-var opts = {
- 'skip': ( zlacgv 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 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++ ) {
- zlacgv( zx.length, 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/lapack/base/zlacgv/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/benchmark.ndarray.native.js
deleted file mode 100644
index ecc8d56e3a00..000000000000
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/benchmark.ndarray.native.js
+++ /dev/null
@@ -1,112 +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 zlacgv = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) );
-var opts = {
- 'skip': ( zlacgv 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 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++ ) {
- zlacgv( zx.length, 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/lapack/base/zlacgv/benchmark/c/Makefile b/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/c/Makefile
deleted file mode 100644
index cce2c865d7ad..000000000000
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/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/lapack/base/zlacgv/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/c/benchmark.length.c
deleted file mode 100644
index 9daf70dd721a..000000000000
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/c/benchmark.length.c
+++ /dev/null
@@ -1,150 +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/lapack/base/zlacgv.h"
-#include
-#include
-#include
-#include
-#include
-
-#define NAME "zlacgv"
-#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 zx[ len*2 ];
- double elapsed;
- double t;
- int i;
-
- 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_zlacgv( len, (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/lapack/base/zlacgv/benchmark/fortran/Makefile b/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/fortran/Makefile
deleted file mode 100644
index c5d64f80ccbc..000000000000
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/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/zlacgv.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/lapack/base/zlacgv/benchmark/fortran/benchmark.length.f b/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/fortran/benchmark.length.f
deleted file mode 100644
index d8f1af078afb..000000000000
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/benchmark/fortran/benchmark.length.f
+++ /dev/null
@@ -1,218 +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 = 'zlacgv' ! 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 zlacgv( N, zx, strideX )
- complex(kind=kind(0.0d0)) :: zx(*)
- integer :: strideX, N
- end subroutine zlacgv
- 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(:)
- ! ..
- ! Intrinsic functions:
- intrinsic random_number, cpu_time, cmplx
- ! ..
- ! Allocate array:
- allocate( x(len) )
- ! ..
- call random_number( r1 )
- 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 zlacgv( len, 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/lapack/base/zlacgv/binding.gyp b/lib/node_modules/@stdlib/lapack/base/zlacgv/binding.gyp
deleted file mode 100644
index 08de71a2020e..000000000000
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/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/lapack/base/zlacgv/examples/c/Makefile b/lib/node_modules/@stdlib/lapack/base/zlacgv/examples/c/Makefile
deleted file mode 100644
index 25ced822f96a..000000000000
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/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/lapack/base/zlacgv/examples/c/example.c b/lib/node_modules/@stdlib/lapack/base/zlacgv/examples/c/example.c
deleted file mode 100644
index 6569e9c55db3..000000000000
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/examples/c/example.c
+++ /dev/null
@@ -1,40 +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/lapack/base/zlacgv.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 };
-
- // Specify the number of elements:
- const int N = 4;
-
- // Specify stride length:
- const int strideX = 1;
-
- // Conjugate the elements of the array:
- c_zlacgv( N, (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/lapack/base/zlacgv/include.gypi b/lib/node_modules/@stdlib/lapack/base/zlacgv/include.gypi
deleted file mode 100644
index 4217944b5d20..000000000000
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/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 1.0
-*
-* var im = imag( z );
-* // returns -2.0
-*/
-function zlacgv( N, zx, strideX, offsetX ) {
- var viewZX;
- offsetX = minViewBufferIndex( N, strideX, offsetX );
- viewZX = reinterpret( zx, offsetX );
- addon( N, viewZX, strideX );
- return zx;
-}
-
-
-// EXPORTS //
-
-module.exports = zlacgv;
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/zlacgv.native.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/zlacgv.native.js
deleted file mode 100644
index 9f384ec84b69..000000000000
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/lib/zlacgv.native.js
+++ /dev/null
@@ -1,64 +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 //
-
-/**
-* Conjugates a double-precision complex floating-point vector.
-*
-* @param {PositiveInteger} N - number of indexed elements
-* @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 ] );
-*
-* zlacgv( zx.length, zx, 1 );
-*
-* var z = zx.get( 0 );
-* // returns
-*
-* var re = real( z );
-* // returns 1.0
-*
-* var im = imag( z );
-* // returns -2.0
-*/
-function zlacgv( N, zx, strideX ) {
- var viewZX = reinterpret( zx, 0 );
- addon( N, viewZX, strideX );
- return zx;
-}
-
-
-// EXPORTS //
-
-module.exports = zlacgv;
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/manifest.json b/lib/node_modules/@stdlib/lapack/base/zlacgv/manifest.json
deleted file mode 100644
index 835b4bd0aba3..000000000000
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/manifest.json
+++ /dev/null
@@ -1,428 +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/zlacgv.f",
- "./src/zlacgv_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/complex/float64/ctor"
- ]
- },
- {
- "task": "benchmark",
- "os": "linux",
- "blas": "",
- "wasm": false,
- "src": [
- "./src/zlacgv.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/complex/float64/ctor"
- ]
- },
- {
- "task": "examples",
- "os": "linux",
- "blas": "",
- "wasm": false,
- "src": [
- "./src/zlacgv.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/complex/float64/ctor"
- ]
- },
-
- {
- "task": "build",
- "os": "linux",
- "blas": "openblas",
- "wasm": false,
- "src": [
- "./src/zlacgv_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/complex/float64/ctor"
- ]
- },
- {
- "task": "benchmark",
- "os": "linux",
- "blas": "openblas",
- "wasm": false,
- "src": [
- "./src/zlacgv_cblas.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [
- "-lopenblas",
- "-lpthread"
- ],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared"
- ]
- },
- {
- "task": "examples",
- "os": "linux",
- "blas": "openblas",
- "wasm": false,
- "src": [
- "./src/zlacgv_cblas.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [
- "-lopenblas",
- "-lpthread"
- ],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared"
- ]
- },
-
- {
- "task": "build",
- "os": "mac",
- "blas": "",
- "wasm": false,
- "src": [
- "./src/zlacgv.f",
- "./src/zlacgv_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/complex/float64/ctor"
- ]
- },
- {
- "task": "benchmark",
- "os": "mac",
- "blas": "",
- "wasm": false,
- "src": [
- "./src/zlacgv.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/complex/float64/ctor"
- ]
- },
- {
- "task": "examples",
- "os": "mac",
- "blas": "",
- "wasm": false,
- "src": [
- "./src/zlacgv.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/zlacgv_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/complex/float64/ctor"
- ]
- },
- {
- "task": "benchmark",
- "os": "mac",
- "blas": "apple_accelerate_framework",
- "wasm": false,
- "src": [
- "./src/zlacgv_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/zlacgv_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/zlacgv_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/complex/float64/ctor"
- ]
- },
- {
- "task": "benchmark",
- "os": "mac",
- "blas": "openblas",
- "wasm": false,
- "src": [
- "./src/zlacgv_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/zlacgv_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/zlacgv.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/complex/float64/ctor"
- ]
- },
- {
- "task": "benchmark",
- "os": "win",
- "blas": "",
- "wasm": false,
- "src": [
- "./src/zlacgv.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/complex/float64/ctor"
- ]
- },
- {
- "task": "examples",
- "os": "win",
- "blas": "",
- "wasm": false,
- "src": [
- "./src/zlacgv.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/complex/float64/ctor"
- ]
- },
-
- {
- "task": "build",
- "os": "",
- "blas": "",
- "wasm": true,
- "src": [
- "./src/zlacgv.c"
- ],
- "include": [
- "./include"
- ],
- "libraries": [],
- "libpath": [],
- "dependencies": [
- "@stdlib/blas/base/shared",
- "@stdlib/complex/float64/ctor"
- ]
- }
- ]
-}
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/Makefile b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/Makefile
deleted file mode 100644
index 7733b6180cb4..000000000000
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/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/lapack/base/zlacgv/src/zlacgv.c b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv.c
deleted file mode 100644
index bcef9d3fdedf..000000000000
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv.c
+++ /dev/null
@@ -1,46 +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/lapack/base/zlacgv.h"
-#include "stdlib/blas/base/shared.h"
-#include "stdlib/complex/float64/ctor.h"
-#include
-
-/**
-* Conjugates a double-precision complex floating-point vector.
-*
-* @param N number of indexed elements
-* @param ZX input array
-* @param strideX ZX stride length
-*/
-void API_SUFFIX(c_zlacgv)( const CBLAS_INT N, 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->im = -zp->im;
- }
- return;
-}
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv.f b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv.f
deleted file mode 100644
index b42bda59a28a..000000000000
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv.f
+++ /dev/null
@@ -1,83 +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.
-!<
-
-!> Conjugates a double-precision complex floating-point vector.
-!
-! ## 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 {Array>} zx - input array
-! @param {integer} strideX - `zx` stride length
-!<
-subroutine zlacgv( N, zx, strideX )
- implicit none
- ! ..
- ! Scalar arguments:
- 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) = conjg( zx(i) )
- end do
- else
- ix = 1
- do i = 1, N
- zx(ix) = conjg( zx(ix) )
- ix = ix + strideX
- end do
- end if
- return
-end subroutine zlacgv
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv_cblas.c b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv_cblas.c
deleted file mode 100644
index 395a0fbf6eb7..000000000000
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv_cblas.c
+++ /dev/null
@@ -1,32 +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/lapack/base/zlacgv.h"
-#include "stdlib/lapack/base/zlacgv_cblas.h"
-#include "stdlib/blas/base/shared.h"
-
-/**
-* Conjugates a double-precision complex floating-point vector.
-*
-* @param N number of indexed elements
-* @param ZX input array
-* @param strideX ZX stride length
-*/
-void API_SUFFIX(c_zlacgv)( const CBLAS_INT N, void *ZX, const CBLAS_INT strideX ) {
- cblas_zlacgv( N, ZX, strideX );
-}
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv_f.c b/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv_f.c
deleted file mode 100644
index 6ec8087ac550..000000000000
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/src/zlacgv_f.c
+++ /dev/null
@@ -1,32 +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/lapack/base/zlacgv.h"
-#include "stdlib/lapack/base/zlacgv_fortran.h"
-#include "stdlib/blas/base/shared.h"
-
-/**
-* Conjugates a double-precision complex floating-point vector.
-*
-* @param N number of indexed elements
-* @param ZX input array
-* @param strideX ZX stride length
-*/
-void API_SUFFIX(c_zlacgv)( const CBLAS_INT N, void *ZX, const CBLAS_INT strideX ) {
- zlacgv( &N, ZX, &strideX );
-}
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.ndarray.native.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.ndarray.native.js
deleted file mode 100644
index f0d3becdf623..000000000000
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.ndarray.native.js
+++ /dev/null
@@ -1,277 +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 isSameComplex128Array = require( '@stdlib/assert/is-same-complex128array' );
-var Complex128Array = require( '@stdlib/array/complex128' );
-var tryRequire = require( '@stdlib/utils/try-require' );
-
-
-// VARIABLES //
-
-var zlacgv = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) );
-var opts = {
- 'skip': ( zlacgv instanceof Error )
-};
-
-
-// TESTS //
-
-tape( 'main export is a function', opts, function test( t ) {
- t.ok( true, __filename );
- t.strictEqual( typeof zlacgv, 'function', 'main export is a function' );
- t.end();
-});
-
-tape( 'the function has an arity of 4', opts, function test( t ) {
- t.strictEqual( zlacgv.length, 4, 'arity of 4' );
- t.end();
-});
-
-tape( 'the function conjugates elements of `zx`', opts, function test( t ) {
- var expected;
- var zx;
-
- 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
- ]);
-
- zlacgv( 4, zx, 1, 0 );
-
- expected = 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
- ]);
-
- t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
- t.end();
-});
-
-tape( 'the function supports a `zx` stride', opts, function test( t ) {
- var expected;
- var zx;
-
- 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
- ]);
-
- zlacgv( 3, zx, 2, 0 );
-
- expected = 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
- ]);
-
- t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
- t.end();
-});
-
-tape( 'the function supports a `zx` offset', opts, function test( t ) {
- var expected;
- var zx;
-
- 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
- ]);
-
- zlacgv( 3, zx, 1, 3 );
-
- expected = 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
- ]);
-
- t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
- t.end();
-});
-
-tape( 'the function returns a reference to the input array', opts, function test( t ) {
- var out;
- var zx;
-
- zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-
- out = zlacgv( 4, 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 zx;
-
- zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-
- expected = new Complex128Array([
- 1.0,
- 2.0,
- 3.0,
- 4.0,
- 5.0,
- 6.0,
- 7.0,
- 8.0
- ]);
-
- zlacgv( -1, zx, 1, 0 );
- t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
-
- zlacgv( 0, zx, 1, 0 );
- t.ok( isSameComplex128Array( zx, 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 zx;
-
- zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-
- expected = new Complex128Array([
- 1.0,
- 2.0,
- 3.0,
- 4.0,
- 5.0,
- 6.0,
- 7.0,
- 8.0
- ]);
-
- zlacgv( 4, zx, -1, 3 );
- t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
-
- zlacgv( 4, zx, 0, 3 );
- t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
-
- t.end();
-});
-
-tape( 'the function supports complex access patterns', opts, function test( t ) {
- var expected;
- var zx;
-
- 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
- ]);
-
- zlacgv( 2, zx, 3, 3 );
-
- expected = 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
- ]);
-
- t.ok( isSameComplex128Array( zx, expected ), 'returns expected value' );
- t.end();
-});
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.zlacgv.native.js b/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.zlacgv.native.js
deleted file mode 100644
index 96baf546dd13..000000000000
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/test/test.zlacgv.native.js
+++ /dev/null
@@ -1,208 +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 isSameComplex128Array = require( '@stdlib/assert/is-same-complex128array' );
-var Complex128Array = require( '@stdlib/array/complex128' );
-var tryRequire = require( '@stdlib/utils/try-require' );
-
-
-// VARIABLES //
-
-var zlacgv = tryRequire( resolve( __dirname, './../lib/zlacgv.native.js' ) );
-var opts = {
- 'skip': ( zlacgv instanceof Error )
-};
-
-
-// TESTS //
-
-tape( 'main export is a function', opts, function test( t ) {
- t.ok( true, __filename );
- t.strictEqual( typeof zlacgv, 'function', 'main export is a function' );
- t.end();
-});
-
-tape( 'the function has an arity of 3', opts, function test( t ) {
- t.strictEqual( zlacgv.length, 3, 'arity of 3' );
- t.end();
-});
-
-tape( 'the function conjugates elements from `zx`', opts, function test( t ) {
- var expected;
- var zx;
-
- 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
- ]);
-
- zlacgv( 4, zx, 1 );
-
- expected = 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
- ]);
-
- t.ok(isSameComplex128Array(zx, expected), 'returns expected value');
- t.end();
-});
-
-tape( 'the function supports a `zx` stride', opts, function test( t ) {
- var expected;
- var zx;
-
- 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
- ]);
-
- zlacgv( 3, zx, 2 );
-
- expected = 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
- ]);
-
- t.ok(isSameComplex128Array(zx, expected), 'returns expected value');
- t.end();
-});
-
-tape( 'the function returns a reference to the input array', opts, function test( t ) {
- var out;
- var zx;
-
- zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-
- out = zlacgv( 4, 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 zx;
-
- zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-
- expected = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-
- zlacgv( -1, zx, 1 );
- t.ok(isSameComplex128Array(zx, expected), 'returns expected value');
-
- zlacgv( 0, zx, 1 );
- t.ok(isSameComplex128Array(zx, 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 zx;
-
- zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-
- expected = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-
- zlacgv( 4, zx, -1 );
- t.ok(isSameComplex128Array(zx, expected), 'returns expected value');
-
- zlacgv( 4, zx, 0 );
- t.ok(isSameComplex128Array(zx, expected), 'returns expected value');
-
- t.end();
-});
-
-tape( 'the function supports view offsets', opts, function test( t ) {
- var expected;
- var zx0;
- var zx1;
-
- // 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
- ]);
-
- // Create offset views...
- zx1 = new Complex128Array( zx0.buffer, zx0.BYTES_PER_ELEMENT*1 ); // begin at 2nd element
-
- zlacgv( 3, zx1, 1 );
-
- expected = 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
- ]);
- t.ok(isSameComplex128Array(zx0, expected), 'returns expected value');
-
- t.end();
-});
From 00152da0b2752255afdc913423c5596df0096eea Mon Sep 17 00:00:00 2001
From: Ricky Reusser <572717+rreusser@users.noreply.github.com>
Date: Wed, 15 Jan 2025 11:41:29 -0800
Subject: [PATCH 5/6] 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/lapack/base/zlacgv/package.json | 3 ---
1 file changed, 3 deletions(-)
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/package.json b/lib/node_modules/@stdlib/lapack/base/zlacgv/package.json
index f9ceea075e04..d985940dab76 100644
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/package.json
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/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 24ee434b63210e94923a31f292f6975e9166d1d1 Mon Sep 17 00:00:00 2001
From: Athan Reines
Date: Fri, 17 Jan 2025 18:56:01 -0800
Subject: [PATCH 6/6] chore: clean-up and support negative strides
---
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: 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: passed
- task: lint_typescript_tests
status: na
- 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/lapack/base/zlacgv/README.md | 122 ++----------------
.../@stdlib/lapack/base/zlacgv/docs/repl.txt | 26 ++--
.../lapack/base/zlacgv/docs/types/index.d.ts | 18 +--
.../lapack/base/zlacgv/examples/index.js | 4 +-
.../@stdlib/lapack/base/zlacgv/lib/index.js | 2 +-
.../@stdlib/lapack/base/zlacgv/lib/ndarray.js | 22 ++--
.../@stdlib/lapack/base/zlacgv/lib/zlacgv.js | 43 +-----
.../@stdlib/lapack/base/zlacgv/package.json | 2 +-
.../lapack/base/zlacgv/test/test.ndarray.js | 86 ++++++------
.../lapack/base/zlacgv/test/test.zlacgv.js | 89 +++++++------
10 files changed, 156 insertions(+), 258 deletions(-)
diff --git a/lib/node_modules/@stdlib/lapack/base/zlacgv/README.md b/lib/node_modules/@stdlib/lapack/base/zlacgv/README.md
index 24dd281bc9f4..52e8cad0b2df 100644
--- a/lib/node_modules/@stdlib/lapack/base/zlacgv/README.md
+++ b/lib/node_modules/@stdlib/lapack/base/zlacgv/README.md
@@ -20,7 +20,7 @@ limitations under the License.
# zlacgv
-> Conjugates a complex vector.
+> Conjugate each element in a double-precision complex floating-point vector.
@@ -30,9 +30,9 @@ limitations under the License.
var zlacgv = require( '@stdlib/lapack/base/zlacgv' );
```
-#### zlacgv( N, zx, strideX )
+#### zlacgv( N, zx, strideZX )
-Conjugate values of `zx`.
+Conjugates each element in a double-precision complex floating-point vector.
```javascript
var Complex128Array = require( '@stdlib/array/complex128' );
@@ -57,9 +57,9 @@ The function has the following parameters:
- **N**: number of indexed elements.
- **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` conjugated. For example, to conjugate every other value in `zx`,
+The `N` and stride parameters determine which elements in `zx` are conjugated. For example, to conjugate every other element in `zx`,
```javascript
var Complex128Array = require( '@stdlib/array/complex128' );
@@ -96,7 +96,7 @@ var zx0 = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
// Create an offset view:
var zx1 = new Complex128Array( zx0.buffer, zx0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
-// Conjugates every other value from `zx1`...
+// Conjugate every element in `zx1`:
zlacgv( 3, zx1, 1 );
var z = zx0.get( 1 );
@@ -109,9 +109,9 @@ var im = imag( z );
// returns -4.0
```
-#### zlacgv.ndarray( N, zx, strideX, offsetX )
+#### zlacgv.ndarray( N, zx, strideZX, offsetZX )
-Conjugate values from `zx` using alternative indexing semantics.
+Conjugates each element in a double-precision floating-point vector using alternative indexing semantics.
```javascript
var Complex128Array = require( '@stdlib/array/complex128' );
@@ -134,9 +134,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 conjugate 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 conjugate every other element in the input strided array starting from the second element,
```javascript
var Complex128Array = require( '@stdlib/array/complex128' );
@@ -165,8 +165,8 @@ var im = imag( z );
## Notes
-- If `N <= 0` or `strideX <= 0` , both functions return `zx` unchanged.
-- `zlacgv()` corresponds to the [LAPACK][lapack] BLAS-like level 1 function [`zlacgv`][zlacgv].
+- If `N <= 0`, both functions return `zx` unchanged.
+- `zlacgv()` corresponds to the [LAPACK][lapack] BLAS-like level 1 routine [`zlacgv`][zlacgv].
@@ -191,7 +191,7 @@ function rand() {
var zx = filledarrayBy( 10, 'complex128', rand );
console.log( zx.toString() );
-// Conjugates elements from `zx`:
+// Conjugate elements:
zlacgv( zx.length, zx, 1 );
console.log( zx.get( zx.length-1 ).toString() );
```
@@ -200,102 +200,6 @@ console.log( zx.get( zx.length-1 ).toString() );
-
-
-* * *
-
-
-
-## C APIs
-
-
-
-
-
-
-
-
-
-
-
-### Usage
-
-```c
-#include "stdlib/lapack/base/zlacgv.h"
-```
-
-#### c_zlacgv( N, \*ZX, strideX )
-
-Conjugate values from `ZX`.
-
-```c
-double zx[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
-
-c_zlacgv( 4, (void *)zx, 1 );
-```
-
-The function accepts the following arguments:
-
-- **N**: `[in] CBLAS_INT` number of indexed elements.
-- **ZX**: `[inout] void*` input array.
-- **strideX**: `[in] CBLAS_INT` index increment for `ZX`.
-
-```c
-void c_zlacgv( const CBLAS_INT N, void *ZX, const CBLAS_INT strideX );
-```
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-### Examples
-
-```c
-#include "stdlib/lapack/base/zlacgv.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 };
-
- // Specify the number of elements:
- const int N = 4;
-
- // Specify stride length:
- const int strideX = 1;
-
- // Conjugate elements of the array:
- c_zlacgv( N, (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 ] );
- }
-}
-```
-
-
-
-
-
-
-
-
-