diff --git a/lib/node_modules/@stdlib/blas/base/csscal/README.md b/lib/node_modules/@stdlib/blas/base/csscal/README.md
index 9e14ecd19994..278bf5859091 100644
--- a/lib/node_modules/@stdlib/blas/base/csscal/README.md
+++ b/lib/node_modules/@stdlib/blas/base/csscal/README.md
@@ -149,6 +149,150 @@ console.log( x.toString() );
+
+
+* * *
+
+
+
+## C APIs
+
+
+
+
+
+
+
+
+
+
+
+### Usage
+
+```c
+#include "stdlib/blas/base/csscal.h"
+```
+
+#### c_csscal( N, alpha, \*X, strideX )
+
+Scales a single-precision complex floating-point vector by a single-precision floating-point constant.
+
+```c
+#include "stdlib/complex/float32/ctor.h"
+
+stdlib_complex64_t x[] = {
+ stdlib_complex64( 1.0f, 2.0f ),
+ stdlib_complex64( 3.0f, 4.0f ),
+ stdlib_complex64( 5.0f, 6.0f )
+};
+
+c_csscal( 3, 2.0f, x, 1 );
+```
+
+The function accepts the following arguments:
+
+- **N**: `[in] CBLAS_INT` number of indexed elements.
+- **alpha**: `[in] float` scalar constant.
+- **X**: `[inout] stdlib_complex64_t*` input array.
+- **strideX**: `[in] CBLAS_INT` index increment for `x`.
+
+```c
+void c_csscal( const CBLAS_INT N, const float alpha, void *X, const CBLAS_INT strideX );
+```
+
+#### c_csscal_ndarray( N, alpha, \*X, strideX, offsetX )
+
+Scales a single-precision complex floating-point vector by a single-precision floating-point constant using alternative indexing semantics.
+
+```c
+#include "stdlib/complex/float32/ctor.h"
+
+stdlib_complex64_t x[] = {
+ stdlib_complex64( 1.0f, 2.0f ),
+ stdlib_complex64( 3.0f, 4.0f ),
+ stdlib_complex64( 5.0f, 6.0f )
+};
+
+c_csscal_ndarray( 3, 2.0f, x, 1, 0 );
+```
+
+The function accepts the following arguments:
+
+- **N**: `[in] CBLAS_INT` number of indexed elements.
+- **alpha**: `[in] float` scalar constant.
+- **X**: `[inout] void*` input array.
+- **strideX**: `[in] CBLAS_INT` index increment for `x`.
+- **offsetX**: `[in] CBLAS_INT` starting index for `x`.
+
+```c
+void c_csscal_ndarray( const CBLAS_INT N, const float alpha, void *X, const CBLAS_INT strideX, const CBLAS_INT offsetX );
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+### Examples
+
+```c
+#include "stdlib/blas/base/csscal.h"
+#include "stdlib/complex/float32/ctor.h"
+#include "stdlib/complex/float32/real.h"
+#include "stdlib/complex/float32/imag.h"
+#include
+
+int main( void ) {
+ stdlib_complex64_t x[] = {
+ stdlib_complex64( 1.0f, 2.0f ),
+ stdlib_complex64( 3.0f, 4.0f ),
+ stdlib_complex64( 5.0f, 6.0f ),
+ stdlib_complex64( 7.0f, 8.0f )
+ };
+
+ // Specify the number of elements:
+ const int N = 4;
+
+ // Specify the stride length:
+ const int strideX = 1;
+
+ c_csscal( N, 2.0f, (void *)x, strideX );
+
+ // Print the result:
+ for ( int i = 0; i < N; i++ ) {
+ printf( "x[ %i ] = %f + %fj\n", i, stdlib_complex64_real( x[ i ] ), stdlib_complex64_imag( x[ i ] ) );
+ }
+
+ c_csscal_ndarray( N, 2.0f, (void *)x, strideX, 0 );
+
+ // Print the result:
+ for ( int i = 0; i < N; i++ ) {
+ printf( "x[ %i ] = %f + %fj\n", i, stdlib_complex64_real( x[ i ] ), stdlib_complex64_imag( x[ i ] ) );
+ }
+}
+```
+
+
+
+
+
+
+
+
+
+
diff --git a/lib/node_modules/@stdlib/blas/base/csscal/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/csscal/benchmark/benchmark.native.js
new file mode 100644
index 000000000000..69bb73a278df
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/csscal/benchmark/benchmark.native.js
@@ -0,0 +1,111 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 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 isnanf = require( '@stdlib/math/base/assert/is-nanf' );
+var pow = require( '@stdlib/math/base/special/pow' );
+var Complex64Array = require( '@stdlib/array/complex64' );
+var reinterpret = require( '@stdlib/strided/base/reinterpret-complex64' );
+var tryRequire = require( '@stdlib/utils/try-require' );
+var pkg = require( './../package.json' ).name;
+
+
+// VARIABLES //
+
+var csscal = tryRequire( resolve( __dirname, './../lib/csscal.native.js' ) );
+var opts = {
+ 'skip': ( csscal instanceof Error )
+};
+var options = {
+ 'dtype': 'float32'
+};
+
+
+// FUNCTIONS //
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {PositiveInteger} len - array length
+* @returns {Function} benchmark function
+*/
+function createBenchmark( len ) {
+ var x = new Complex64Array( uniform( len*2, -100.0, 100.0, options ) );
+
+ return benchmark;
+
+ /**
+ * Benchmark function.
+ *
+ * @private
+ * @param {Benchmark} b - benchmark instance
+ */
+ function benchmark( b ) {
+ var viewX;
+ var i;
+
+ viewX = reinterpret( x, 0 );
+ b.tic();
+ for ( i = 0; i < b.iterations; i++ ) {
+ csscal( x.length, 2.0, x, 1 );
+ if ( isnanf( viewX[ i%(len*2) ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ }
+ b.toc();
+ if ( isnanf( viewX[ i%(len*2) ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ b.pass( 'benchmark finished' );
+ b.end();
+ }
+}
+
+
+// MAIN //
+
+/**
+* Main execution sequence.
+*
+* @private
+*/
+function main() {
+ var len;
+ var min;
+ var max;
+ var f;
+ var i;
+
+ min = 1; // 10^min
+ max = 6; // 10^max
+
+ for ( i = min; i <= max; i++ ) {
+ len = pow( 10, i );
+ f = createBenchmark( len );
+ bench( pkg+'::native:len='+len, opts, f );
+ }
+}
+
+main();
diff --git a/lib/node_modules/@stdlib/blas/base/csscal/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/csscal/benchmark/benchmark.ndarray.native.js
new file mode 100644
index 000000000000..078c58d8395e
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/csscal/benchmark/benchmark.ndarray.native.js
@@ -0,0 +1,111 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 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 isnanf = require( '@stdlib/math/base/assert/is-nanf' );
+var pow = require( '@stdlib/math/base/special/pow' );
+var Complex64Array = require( '@stdlib/array/complex64' );
+var reinterpret = require( '@stdlib/strided/base/reinterpret-complex64' );
+var tryRequire = require( '@stdlib/utils/try-require' );
+var pkg = require( './../package.json' ).name;
+
+
+// VARIABLES //
+
+var csscal = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) );
+var opts = {
+ 'skip': ( csscal instanceof Error )
+};
+var options = {
+ 'dtype': 'float32'
+};
+
+
+// FUNCTIONS //
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {PositiveInteger} len - array length
+* @returns {Function} benchmark function
+*/
+function createBenchmark( len ) {
+ var x = new Complex64Array( uniform( len*2, -100.0, 100.0, options ) );
+
+ return benchmark;
+
+ /**
+ * Benchmark function.
+ *
+ * @private
+ * @param {Benchmark} b - benchmark instance
+ */
+ function benchmark( b ) {
+ var viewX;
+ var i;
+
+ viewX = reinterpret( x, 0 );
+ b.tic();
+ for ( i = 0; i < b.iterations; i++ ) {
+ csscal( x.length, 2.0, x, 1, 0 );
+ if ( isnanf( viewX[ i%(len*2) ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ }
+ b.toc();
+ if ( isnanf( viewX[ i%(len*2) ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ b.pass( 'benchmark finished' );
+ b.end();
+ }
+}
+
+
+// MAIN //
+
+/**
+* Main execution sequence.
+*
+* @private
+*/
+function main() {
+ var len;
+ var min;
+ var max;
+ var f;
+ var i;
+
+ min = 1; // 10^min
+ max = 6; // 10^max
+
+ for ( i = min; i <= max; i++ ) {
+ len = pow( 10, i );
+ f = createBenchmark( len );
+ bench( pkg+'::native:ndarray:len='+len, opts, f );
+ }
+}
+
+main();
diff --git a/lib/node_modules/@stdlib/blas/base/csscal/benchmark/c/Makefile b/lib/node_modules/@stdlib/blas/base/csscal/benchmark/c/Makefile
new file mode 100644
index 000000000000..0756dc7da20a
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/csscal/benchmark/c/Makefile
@@ -0,0 +1,146 @@
+#/
+# @license Apache-2.0
+#
+# Copyright (c) 2026 The Stdlib Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#/
+
+# VARIABLES #
+
+ifndef VERBOSE
+ QUIET := @
+else
+ QUIET :=
+endif
+
+# Determine the OS ([1][1], [2][2]).
+#
+# [1]: https://en.wikipedia.org/wiki/Uname#Examples
+# [2]: http://stackoverflow.com/a/27776822/2225624
+OS ?= $(shell uname)
+ifneq (, $(findstring MINGW,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring MSYS,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring CYGWIN,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring Windows_NT,$(OS)))
+ OS := WINNT
+endif
+endif
+endif
+endif
+
+# Define the program used for compiling C source files:
+ifdef C_COMPILER
+ CC := $(C_COMPILER)
+else
+ CC := gcc
+endif
+
+# Define the command-line options when compiling C files:
+CFLAGS ?= \
+ -std=c99 \
+ -O3 \
+ -Wall \
+ -pedantic
+
+# Determine whether to generate position independent code ([1][1], [2][2]).
+#
+# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options
+# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option
+ifeq ($(OS), WINNT)
+ fPIC ?=
+else
+ fPIC ?= -fPIC
+endif
+
+# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`):
+INCLUDE ?=
+
+# List of source files:
+SOURCE_FILES ?=
+
+# List of libraries (e.g., `-lopenblas -lpthread`):
+LIBRARIES ?=
+
+# List of library paths (e.g., `-L /foo/bar -L /beep/boop`):
+LIBPATH ?=
+
+# List of C targets:
+c_targets := benchmark.length.out
+
+
+# RULES #
+
+#/
+# Compiles source files.
+#
+# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`)
+# @param {string} [CFLAGS] - C compiler options
+# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
+# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`)
+# @param {string} [SOURCE_FILES] - list of source files
+# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`)
+# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`)
+#
+# @example
+# make
+#
+# @example
+# make all
+#/
+all: $(c_targets)
+
+.PHONY: all
+
+#/
+# Compiles C source files.
+#
+# @private
+# @param {string} CC - C compiler (e.g., `gcc`)
+# @param {string} CFLAGS - C compiler options
+# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
+# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`)
+# @param {string} SOURCE_FILES - list of source files
+# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`)
+# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`)
+#/
+$(c_targets): %.out: %.c
+ $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES)
+
+#/
+# Runs compiled benchmarks.
+#
+# @example
+# make run
+#/
+run: $(c_targets)
+ $(QUIET) ./$<
+
+.PHONY: run
+
+#/
+# Removes generated files.
+#
+# @example
+# make clean
+#/
+clean:
+ $(QUIET) -rm -f *.o *.out
+
+.PHONY: clean
diff --git a/lib/node_modules/@stdlib/blas/base/csscal/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/blas/base/csscal/benchmark/c/benchmark.length.c
new file mode 100644
index 000000000000..a6ad6aab3661
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/csscal/benchmark/c/benchmark.length.c
@@ -0,0 +1,191 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 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/csscal.h"
+#include "stdlib/math/base/assert/is_nanf.h"
+#include "stdlib/complex/float32/ctor.h"
+#include "stdlib/complex/float32/real.h"
+#include "stdlib/complex/float32/imag.h"
+#include
+#include
+#include
+#include
+#include
+
+#define NAME "csscal"
+#define ITERATIONS 10000000
+#define REPEATS 3
+#define MIN 1
+#define MAX 5
+
+/**
+* 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 float rand_float( void ) {
+ int r = rand();
+ return (float)r / ( (float)RAND_MAX + 1.0f );
+}
+
+/**
+* Runs a benchmark.
+*
+* @param iterations number of iterations
+* @param len array length
+* @return elapsed time in seconds
+*/
+static double benchmark1( int iterations, int len ) {
+ stdlib_complex64_t x[ len ];
+ double elapsed;
+ double t;
+ int i;
+
+ for ( i = 0; i < len; i++ ) {
+ x[ i ] = stdlib_complex64( (rand_float()*10000.0f)-5000.0f, (rand_float()*10000.0f)-5000.0f );
+ }
+ t = tic();
+ for ( i = 0; i < iterations; i++ ) {
+ c_csscal( len, 2.0f, (void *)x, 1 );
+ if ( stdlib_base_is_nanf( stdlib_complex64_real( x[ i%len ] ) ) ) {
+ printf( "should not return NaN\n" );
+ break;
+ }
+ }
+ elapsed = tic() - t;
+ if ( stdlib_base_is_nanf( stdlib_complex64_imag( x[ i%len ] ) ) ) {
+ printf( "should not return NaN\n" );
+ }
+ return elapsed;
+}
+
+/**
+* Runs a benchmark.
+*
+* @param iterations number of iterations
+* @param len array length
+* @return elapsed time in seconds
+*/
+static double benchmark2( int iterations, int len ) {
+ stdlib_complex64_t x[ len ];
+ double elapsed;
+ double t;
+ int i;
+
+ for ( i = 0; i < len; i++ ) {
+ x[ i ] = stdlib_complex64( (rand_float()*10000.0f)-5000.0f, (rand_float()*10000.0f)-5000.0f );
+ }
+ t = tic();
+ for ( i = 0; i < iterations; i++ ) {
+ c_csscal_ndarray( len, 2.0f, (void *)x, 1, 0 );
+ if ( stdlib_base_is_nanf( stdlib_complex64_real( x[ i%len ] ) ) ) {
+ printf( "should not return NaN\n" );
+ break;
+ }
+ }
+ elapsed = tic() - t;
+ if ( stdlib_base_is_nanf( stdlib_complex64_real( x[ i%len ] ) ) ) {
+ 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 = benchmark1( iter, len );
+ print_results( iter, elapsed );
+ printf( "ok %d benchmark finished\n", count );
+ }
+ for ( j = 0; j < REPEATS; j++ ) {
+ count += 1;
+ printf( "# c::%s:ndarray:len=%d\n", NAME, len );
+ elapsed = benchmark2( iter, len );
+ print_results( iter, elapsed );
+ printf( "ok %d benchmark finished\n", count );
+ }
+ }
+ print_summary( count, count );
+}
diff --git a/lib/node_modules/@stdlib/blas/base/csscal/benchmark/fortran/Makefile b/lib/node_modules/@stdlib/blas/base/csscal/benchmark/fortran/Makefile
new file mode 100644
index 000000000000..39509aabcddb
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/csscal/benchmark/fortran/Makefile
@@ -0,0 +1,141 @@
+#/
+# @license Apache-2.0
+#
+# Copyright (c) 2026 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/csscal.f
+
+# List of Fortran targets:
+f_targets := benchmark.length.out
+
+
+# RULES #
+
+#/
+# Compiles Fortran source files.
+#
+# @param {string} SOURCE_FILES - list of Fortran source files
+# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop`)
+# @param {string} [FORTRAN_COMPILER] - Fortran compiler
+# @param {string} [FFLAGS] - Fortran compiler flags
+# @param {(string|void)} [fPIC] - compiler flag indicating whether to generate position independent code
+#
+# @example
+# make
+#
+# @example
+# make all
+#/
+all: $(f_targets)
+
+.PHONY: all
+
+#/
+# Compiles Fortran source files.
+#
+# @private
+# @param {string} SOURCE_FILES - list of Fortran source files
+# @param {(string|void)} INCLUDE - list of includes (e.g., `-I /foo/bar -I /beep/boop`)
+# @param {string} FC - Fortran compiler
+# @param {string} FFLAGS - Fortran compiler flags
+# @param {(string|void)} fPIC - compiler flag indicating whether to generate position independent code
+#/
+$(f_targets): %.out: %.f
+ $(QUIET) $(FC) $(FFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $<
+
+#/
+# Runs compiled benchmarks.
+#
+# @example
+# make run
+#/
+run: $(f_targets)
+ $(QUIET) ./$<
+
+.PHONY: run
+
+#/
+# Removes generated files.
+#
+# @example
+# make clean
+#/
+clean:
+ $(QUIET) -rm -f *.o *.out
+
+.PHONY: clean
diff --git a/lib/node_modules/@stdlib/blas/base/csscal/benchmark/fortran/benchmark.length.f b/lib/node_modules/@stdlib/blas/base/csscal/benchmark/fortran/benchmark.length.f
new file mode 100644
index 000000000000..0d19b262dc51
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/csscal/benchmark/fortran/benchmark.length.f
@@ -0,0 +1,210 @@
+!>
+! @license Apache-2.0
+!
+! Copyright (c) 2026 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.
+!<
+
+program bench
+ implicit none
+ ! ..
+ ! Local constants:
+ character(6), parameter :: name = 'csscal' ! 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, '(f100.9)') elapsed
+ tmp = adjustl( str )
+ print '(A,A)', ' elapsed: ', trim( tmp )
+ ! ..
+ write( str, '(f100.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 csscal( N, alpha, x, strideX )
+ complex :: x(*)
+ integer :: strideX, N
+ real :: alpha
+ end subroutine csscal
+ end interface
+ ! ..
+ ! Scalar arguments:
+ integer, intent(in) :: iterations, len
+ ! ..
+ ! Local scalars:
+ double precision :: elapsed, r1, r2
+ real :: t1, t2
+ integer :: i
+ ! ..
+ ! Local arrays:
+ complex, allocatable :: x(:)
+ ! ..
+ ! Intrinsic functions:
+ intrinsic random_number, cpu_time, cmplx
+ ! ..
+ ! Allocate arrays:
+ allocate( x(len) )
+ ! ..
+ do i = 1, len
+ call random_number( r1 )
+ call random_number( r2 )
+ x( i ) = cmplx( (real(r1)*10000.0)-5000.0, (real(r2)*10000.0)-5000.0 )
+ end do
+ ! ..
+ call cpu_time( t1 )
+ ! ..
+ do i = 1, iterations
+ call csscal( len, 2.0e0, 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 arrays:
+ deallocate( x )
+ ! ..
+ benchmark = elapsed
+ return
+ end function benchmark
+ ! ..
+ ! Main execution sequence.
+ ! ..
+ subroutine main()
+ ! ..
+ ! Local variables:
+ integer :: count, iter, len, i, j
+ double precision :: elapsed
+ character(len=999) :: str, tmp
+ ! ..
+ ! Intrinsic functions:
+ intrinsic adjustl, trim
+ ! ..
+ call print_version()
+ count = 0
+ do i = min, max
+ len = 10**i
+ iter = iterations / 10**(i-1)
+ do j = 1, repeats
+ count = count + 1
+ ! ..
+ write (str, '(I15)') len
+ tmp = adjustl( str )
+ print '(A,A,A,A)', '# fortran::', name, ':len=', trim( tmp )
+ ! ..
+ elapsed = benchmark( iter, len )
+ ! ..
+ call print_results( iter, elapsed )
+ ! ..
+ write (str, '(I15)') count
+ tmp = adjustl( str )
+ print '(A,A,A)', 'ok ', trim( tmp ), ' benchmark finished'
+ end do
+ end do
+ call print_summary( count, count )
+ end subroutine main
+end program bench
diff --git a/lib/node_modules/@stdlib/blas/base/csscal/binding.gyp b/lib/node_modules/@stdlib/blas/base/csscal/binding.gyp
new file mode 100644
index 000000000000..60dce9d0b31a
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/csscal/binding.gyp
@@ -0,0 +1,265 @@
+# @license Apache-2.0
+#
+# Copyright (c) 2026 The Stdlib Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# A `.gyp` file for building a Node.js native add-on.
+#
+# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md
+# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md
+{
+ # List of files to include in this file:
+ 'includes': [
+ './include.gypi',
+ ],
+
+ # Define variables to be used throughout the configuration for all targets:
+ 'variables': {
+ # Target name should match the add-on export name:
+ 'addon_target_name%': 'addon',
+
+ # Fortran compiler (to override -Dfortran_compiler=):
+ 'fortran_compiler%': 'gfortran',
+
+ # Fortran compiler flags:
+ 'fflags': [
+ # Specify the Fortran standard to which a program is expected to conform:
+ '-std=f95',
+
+ # Indicate that the layout is free-form source code:
+ '-ffree-form',
+
+ # Aggressive optimization:
+ '-O3',
+
+ # Enable commonly used warning options:
+ '-Wall',
+
+ # Warn if source code contains problematic language features:
+ '-Wextra',
+
+ # Warn if a procedure is called without an explicit interface:
+ '-Wimplicit-interface',
+
+ # Do not transform names of entities specified in Fortran source files by appending underscores (i.e., don't mangle names, thus allowing easier usage in C wrappers):
+ '-fno-underscoring',
+
+ # Warn if source code contains Fortran 95 extensions and C-language constructs:
+ '-pedantic',
+
+ # Compile but do not link (output is an object file):
+ '-c',
+ ],
+
+ # Set variables based on the host OS:
+ 'conditions': [
+ [
+ 'OS=="win"',
+ {
+ # Define the object file suffix:
+ 'obj': 'obj',
+ },
+ {
+ # Define the object file suffix:
+ 'obj': 'o',
+ }
+ ], # end condition (OS=="win")
+ ], # end conditions
+ }, # end variables
+
+ # Define compile targets:
+ 'targets': [
+
+ # Target to generate an add-on:
+ {
+ # The target name should match the add-on export name:
+ 'target_name': '<(addon_target_name)',
+
+ # Define dependencies:
+ 'dependencies': [],
+
+ # Define directories which contain relevant include headers:
+ 'include_dirs': [
+ # Local include directory:
+ '<@(include_dirs)',
+ ],
+
+ # List of source files:
+ 'sources': [
+ '<@(src_files)',
+ ],
+
+ # Settings which should be applied when a target's object files are used as linker input:
+ 'link_settings': {
+ # Define libraries:
+ 'libraries': [
+ '<@(libraries)',
+ ],
+
+ # Define library directories:
+ 'library_dirs': [
+ '<@(library_dirs)',
+ ],
+ },
+
+ # C/C++ compiler flags:
+ 'cflags': [
+ # Enable commonly used warning options:
+ '-Wall',
+
+ # Aggressive optimization:
+ '-O3',
+ ],
+
+ # C specific compiler flags:
+ 'cflags_c': [
+ # Specify the C standard to which a program is expected to conform:
+ '-std=c99',
+ ],
+
+ # C++ specific compiler flags:
+ 'cflags_cpp': [
+ # Specify the C++ standard to which a program is expected to conform:
+ '-std=c++11',
+ ],
+
+ # Linker flags:
+ 'ldflags': [],
+
+ # Apply conditions based on the host OS:
+ 'conditions': [
+ [
+ 'OS=="mac"',
+ {
+ # Linker flags:
+ 'ldflags': [
+ '-undefined dynamic_lookup',
+ '-Wl,-no-pie',
+ '-Wl,-search_paths_first',
+ ],
+ },
+ ], # end condition (OS=="mac")
+ [
+ 'OS!="win"',
+ {
+ # C/C++ flags:
+ 'cflags': [
+ # Generate platform-independent code:
+ '-fPIC',
+ ],
+ },
+ ], # end condition (OS!="win")
+ ], # end conditions
+
+ # Define custom build actions for particular inputs:
+ 'rules': [
+ {
+ # Define a rule for processing Fortran files:
+ 'extension': 'f',
+
+ # Define the pathnames to be used as inputs when performing processing:
+ 'inputs': [
+ # Full path of the current input:
+ '<(RULE_INPUT_PATH)'
+ ],
+
+ # Define the outputs produced during processing:
+ 'outputs': [
+ # Store an output object file in a directory for placing intermediate results (only accessible within a single target):
+ '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).<(obj)'
+ ],
+
+ # Define the rule for compiling Fortran based on the host OS:
+ 'conditions': [
+ [
+ 'OS=="win"',
+
+ # Rule to compile Fortran on Windows:
+ {
+ 'rule_name': 'compile_fortran_windows',
+ 'message': 'Compiling Fortran file <(RULE_INPUT_PATH) on Windows...',
+
+ 'process_outputs_as_sources': 0,
+
+ # Define the command-line invocation:
+ 'action': [
+ '<(fortran_compiler)',
+ '<@(fflags)',
+ '<@(_inputs)',
+ '-o',
+ '<@(_outputs)',
+ ],
+ },
+
+ # Rule to compile Fortran on non-Windows:
+ {
+ 'rule_name': 'compile_fortran_linux',
+ 'message': 'Compiling Fortran file <(RULE_INPUT_PATH) on Linux...',
+
+ 'process_outputs_as_sources': 1,
+
+ # Define the command-line invocation:
+ 'action': [
+ '<(fortran_compiler)',
+ '<@(fflags)',
+ '-fPIC', # generate platform-independent code
+ '<@(_inputs)',
+ '-o',
+ '<@(_outputs)',
+ ],
+ }
+ ], # end condition (OS=="win")
+ ], # end conditions
+ }, # end rule (extension=="f")
+ ], # end rules
+ }, # end target <(addon_target_name)
+
+ # Target to copy a generated add-on to a standard location:
+ {
+ 'target_name': 'copy_addon',
+
+ # Declare that the output of this target is not linked:
+ 'type': 'none',
+
+ # Define dependencies:
+ 'dependencies': [
+ # Require that the add-on be generated before building this target:
+ '<(addon_target_name)',
+ ],
+
+ # Define a list of actions:
+ 'actions': [
+ {
+ 'action_name': 'copy_addon',
+ 'message': 'Copying addon...',
+
+ # Explicitly list the inputs in the command-line invocation below:
+ 'inputs': [],
+
+ # Declare the expected outputs:
+ 'outputs': [
+ '<(addon_output_dir)/<(addon_target_name).node',
+ ],
+
+ # Define the command-line invocation:
+ 'action': [
+ 'cp',
+ '<(PRODUCT_DIR)/<(addon_target_name).node',
+ '<(addon_output_dir)/<(addon_target_name).node',
+ ],
+ },
+ ], # end actions
+ }, # end target copy_addon
+ ], # end targets
+}
diff --git a/lib/node_modules/@stdlib/blas/base/csscal/examples/c/Makefile b/lib/node_modules/@stdlib/blas/base/csscal/examples/c/Makefile
new file mode 100644
index 000000000000..c8f8e9a1517b
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/csscal/examples/c/Makefile
@@ -0,0 +1,146 @@
+#/
+# @license Apache-2.0
+#
+# Copyright (c) 2026 The Stdlib Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#/
+
+# VARIABLES #
+
+ifndef VERBOSE
+ QUIET := @
+else
+ QUIET :=
+endif
+
+# Determine the OS ([1][1], [2][2]).
+#
+# [1]: https://en.wikipedia.org/wiki/Uname#Examples
+# [2]: http://stackoverflow.com/a/27776822/2225624
+OS ?= $(shell uname)
+ifneq (, $(findstring MINGW,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring MSYS,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring CYGWIN,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring Windows_NT,$(OS)))
+ OS := WINNT
+endif
+endif
+endif
+endif
+
+# Define the program used for compiling C source files:
+ifdef C_COMPILER
+ CC := $(C_COMPILER)
+else
+ CC := gcc
+endif
+
+# Define the command-line options when compiling C files:
+CFLAGS ?= \
+ -std=c99 \
+ -O3 \
+ -Wall \
+ -pedantic
+
+# Determine whether to generate position independent code ([1][1], [2][2]).
+#
+# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options
+# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option
+ifeq ($(OS), WINNT)
+ fPIC ?=
+else
+ fPIC ?= -fPIC
+endif
+
+# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`):
+INCLUDE ?=
+
+# List of source files:
+SOURCE_FILES ?=
+
+# List of libraries (e.g., `-lopenblas -lpthread`):
+LIBRARIES ?=
+
+# List of library paths (e.g., `-L /foo/bar -L /beep/boop`):
+LIBPATH ?=
+
+# List of C targets:
+c_targets := example.out
+
+
+# RULES #
+
+#/
+# Compiles source files.
+#
+# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`)
+# @param {string} [CFLAGS] - C compiler options
+# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
+# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`)
+# @param {string} [SOURCE_FILES] - list of source files
+# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`)
+# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`)
+#
+# @example
+# make
+#
+# @example
+# make all
+#/
+all: $(c_targets)
+
+.PHONY: all
+
+#/
+# Compiles C source files.
+#
+# @private
+# @param {string} CC - C compiler (e.g., `gcc`)
+# @param {string} CFLAGS - C compiler options
+# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
+# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`)
+# @param {string} SOURCE_FILES - list of source files
+# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`)
+# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`)
+#/
+$(c_targets): %.out: %.c
+ $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES)
+
+#/
+# Runs compiled examples.
+#
+# @example
+# make run
+#/
+run: $(c_targets)
+ $(QUIET) ./$<
+
+.PHONY: run
+
+#/
+# Removes generated files.
+#
+# @example
+# make clean
+#/
+clean:
+ $(QUIET) -rm -f *.o *.out
+
+.PHONY: clean
diff --git a/lib/node_modules/@stdlib/blas/base/csscal/examples/c/example.c b/lib/node_modules/@stdlib/blas/base/csscal/examples/c/example.c
new file mode 100644
index 000000000000..d437841dd354
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/csscal/examples/c/example.c
@@ -0,0 +1,52 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 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/csscal.h"
+#include "stdlib/complex/float32/ctor.h"
+#include "stdlib/complex/float32/real.h"
+#include "stdlib/complex/float32/imag.h"
+#include
+
+int main( void ) {
+ stdlib_complex64_t x[] = {
+ stdlib_complex64( 1.0f, 2.0f ),
+ stdlib_complex64( 3.0f, 4.0f ),
+ stdlib_complex64( 5.0f, 6.0f ),
+ stdlib_complex64( 7.0f, 8.0f )
+ };
+
+ // Specify the number of elements:
+ const int N = 4;
+
+ // Specify the stride length:
+ const int strideX = 1;
+
+ c_csscal( N, 2.0f, (void *)x, strideX );
+
+ // Print the result:
+ for ( int i = 0; i < N; i++ ) {
+ printf( "x[ %i ] = %f + %fj\n", i, stdlib_complex64_real( x[ i ] ), stdlib_complex64_imag( x[ i ] ) );
+ }
+
+ c_csscal_ndarray( N, 2.0f, (void *)x, strideX, 0 );
+
+ // Print the result:
+ for ( int i = 0; i < N; i++ ) {
+ printf( "x[ %i ] = %f + %fj\n", i, stdlib_complex64_real( x[ i ] ), stdlib_complex64_imag( x[ i ] ) );
+ }
+}
diff --git a/lib/node_modules/@stdlib/blas/base/csscal/include.gypi b/lib/node_modules/@stdlib/blas/base/csscal/include.gypi
new file mode 100644
index 000000000000..dcb556d250e8
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/csscal/include.gypi
@@ -0,0 +1,70 @@
+# @license Apache-2.0
+#
+# Copyright (c) 2026 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)',
+ ' [ 2.0, 4.0, 6.0, 8.0, 10.0, 12.0 ]
+*/
+function csscal( N, alpha, x, strideX ) {
+ var viewX = reinterpret( x, 0 );
+ addon( N, alpha, viewX, strideX );
+ return x;
+}
+
+
+// EXPORTS //
+
+module.exports = csscal;
diff --git a/lib/node_modules/@stdlib/blas/base/csscal/lib/native.js b/lib/node_modules/@stdlib/blas/base/csscal/lib/native.js
new file mode 100644
index 000000000000..a1e7b5f923a7
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/csscal/lib/native.js
@@ -0,0 +1,35 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 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 csscal = require( './csscal.native.js' );
+var ndarray = require( './ndarray.native.js' );
+
+
+// MAIN //
+
+setReadOnly( csscal, 'ndarray', ndarray );
+
+
+// EXPORTS //
+
+module.exports = csscal;
diff --git a/lib/node_modules/@stdlib/blas/base/csscal/lib/ndarray.native.js b/lib/node_modules/@stdlib/blas/base/csscal/lib/ndarray.native.js
new file mode 100644
index 000000000000..fa8cfaf18385
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/csscal/lib/ndarray.native.js
@@ -0,0 +1,56 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 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-complex64' );
+var addon = require( './../src/addon.node' );
+
+
+// MAIN //
+
+/**
+* Scales a single-precision complex floating-point vector by a single-precision floating-point constant.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @param {number} alpha - scalar constant
+* @param {Complex64Array} x - input array
+* @param {integer} strideX - `x` stride length
+* @param {NonNegativeInteger} offsetX - starting `x` index
+* @returns {Complex64Array} input array
+*
+* @example
+* var Complex64Array = require( '@stdlib/array/complex64' );
+*
+* var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+*
+* csscal( 3, 2.0, x, 1, 0 );
+* // x => [ 2.0, 4.0, 6.0, 8.0, 10.0, 12.0 ]
+*/
+function csscal( N, alpha, x, strideX, offsetX ) {
+ var viewX = reinterpret( x, 0 );
+ addon.ndarray( N, alpha, viewX, strideX, offsetX );
+ return x;
+}
+
+
+// EXPORTS //
+
+module.exports = csscal;
diff --git a/lib/node_modules/@stdlib/blas/base/csscal/manifest.json b/lib/node_modules/@stdlib/blas/base/csscal/manifest.json
new file mode 100644
index 000000000000..f9f7fc2c2085
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/csscal/manifest.json
@@ -0,0 +1,501 @@
+{
+ "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/csscal.f",
+ "./src/csscal_f.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/napi/export",
+ "@stdlib/napi/argv",
+ "@stdlib/blas/base/shared",
+ "@stdlib/napi/argv-float",
+ "@stdlib/napi/argv-int64",
+ "@stdlib/napi/argv-strided-complex64array",
+ "@stdlib/strided/base/min-view-buffer-index",
+ "@stdlib/complex/float32/ctor"
+ ]
+ },
+ {
+ "task": "benchmark",
+ "os": "linux",
+ "blas": "",
+ "wasm": false,
+ "src": [
+ "./src/csscal.c",
+ "./src/csscal_ndarray.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/strided/base/stride2offset",
+ "@stdlib/math/base/assert/is-nanf",
+ "@stdlib/complex/float32/ctor",
+ "@stdlib/complex/float32/real",
+ "@stdlib/complex/float32/imag",
+ "@stdlib/complex/float32/base/scale"
+ ]
+ },
+ {
+ "task": "examples",
+ "os": "linux",
+ "blas": "",
+ "wasm": false,
+ "src": [
+ "./src/csscal.c",
+ "./src/csscal_ndarray.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/strided/base/stride2offset",
+ "@stdlib/complex/float32/ctor",
+ "@stdlib/complex/float32/real",
+ "@stdlib/complex/float32/imag",
+ "@stdlib/complex/float32/base/scale"
+ ]
+ },
+
+ {
+ "task": "build",
+ "os": "linux",
+ "blas": "openblas",
+ "wasm": false,
+ "src": [
+ "./src/csscal_cblas.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [
+ "-lopenblas",
+ "-lpthread"
+ ],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/napi/export",
+ "@stdlib/napi/argv",
+ "@stdlib/blas/base/shared",
+ "@stdlib/napi/argv-float",
+ "@stdlib/napi/argv-int64",
+ "@stdlib/napi/argv-strided-complex64array",
+ "@stdlib/strided/base/min-view-buffer-index",
+ "@stdlib/complex/float32/ctor"
+ ]
+ },
+ {
+ "task": "benchmark",
+ "os": "linux",
+ "blas": "openblas",
+ "wasm": false,
+ "src": [
+ "./src/csscal_cblas.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [
+ "-lopenblas",
+ "-lpthread"
+ ],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/strided/base/min-view-buffer-index",
+ "@stdlib/math/base/assert/is-nanf",
+ "@stdlib/complex/float32/ctor",
+ "@stdlib/complex/float32/real",
+ "@stdlib/complex/float32/imag"
+ ]
+ },
+ {
+ "task": "examples",
+ "os": "linux",
+ "blas": "openblas",
+ "wasm": false,
+ "src": [
+ "./src/csscal_cblas.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [
+ "-lopenblas",
+ "-lpthread"
+ ],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/strided/base/min-view-buffer-index",
+ "@stdlib/complex/float32/ctor",
+ "@stdlib/complex/float32/real",
+ "@stdlib/complex/float32/imag"
+ ]
+ },
+
+ {
+ "task": "build",
+ "os": "mac",
+ "blas": "",
+ "wasm": false,
+ "src": [
+ "./src/csscal.f",
+ "./src/csscal_f.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/napi/export",
+ "@stdlib/napi/argv",
+ "@stdlib/blas/base/shared",
+ "@stdlib/napi/argv-float",
+ "@stdlib/napi/argv-int64",
+ "@stdlib/napi/argv-strided-complex64array",
+ "@stdlib/strided/base/min-view-buffer-index",
+ "@stdlib/complex/float32/ctor"
+ ]
+ },
+ {
+ "task": "benchmark",
+ "os": "mac",
+ "blas": "",
+ "wasm": false,
+ "src": [
+ "./src/csscal.c",
+ "./src/csscal_ndarray.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/strided/base/stride2offset",
+ "@stdlib/math/base/assert/is-nanf",
+ "@stdlib/complex/float32/ctor",
+ "@stdlib/complex/float32/real",
+ "@stdlib/complex/float32/imag",
+ "@stdlib/complex/float32/base/scale"
+ ]
+ },
+ {
+ "task": "examples",
+ "os": "mac",
+ "blas": "",
+ "wasm": false,
+ "src": [
+ "./src/csscal.c",
+ "./src/csscal_ndarray.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/strided/base/stride2offset",
+ "@stdlib/complex/float32/ctor",
+ "@stdlib/complex/float32/real",
+ "@stdlib/complex/float32/imag",
+ "@stdlib/complex/float32/base/scale"
+ ]
+ },
+
+ {
+ "task": "build",
+ "os": "mac",
+ "blas": "apple_accelerate_framework",
+ "wasm": false,
+ "src": [
+ "./src/csscal_cblas.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [
+ "-lblas"
+ ],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/napi/export",
+ "@stdlib/napi/argv",
+ "@stdlib/blas/base/shared",
+ "@stdlib/napi/argv-float",
+ "@stdlib/napi/argv-int64",
+ "@stdlib/napi/argv-strided-complex64array",
+ "@stdlib/strided/base/min-view-buffer-index",
+ "@stdlib/complex/float32/ctor"
+ ]
+ },
+ {
+ "task": "benchmark",
+ "os": "mac",
+ "blas": "apple_accelerate_framework",
+ "wasm": false,
+ "src": [
+ "./src/csscal_cblas.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [
+ "-lblas"
+ ],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/strided/base/min-view-buffer-index",
+ "@stdlib/math/base/assert/is-nanf",
+ "@stdlib/complex/float32/ctor",
+ "@stdlib/complex/float32/real",
+ "@stdlib/complex/float32/imag"
+ ]
+ },
+ {
+ "task": "examples",
+ "os": "mac",
+ "blas": "apple_accelerate_framework",
+ "wasm": false,
+ "src": [
+ "./src/csscal_cblas.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [
+ "-lblas"
+ ],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/strided/base/min-view-buffer-index",
+ "@stdlib/complex/float32/ctor",
+ "@stdlib/complex/float32/real",
+ "@stdlib/complex/float32/imag"
+ ]
+ },
+
+ {
+ "task": "build",
+ "os": "mac",
+ "blas": "openblas",
+ "wasm": false,
+ "src": [
+ "./src/csscal_cblas.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [
+ "-lopenblas",
+ "-lpthread"
+ ],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/napi/export",
+ "@stdlib/napi/argv",
+ "@stdlib/blas/base/shared",
+ "@stdlib/napi/argv-float",
+ "@stdlib/napi/argv-int64",
+ "@stdlib/napi/argv-strided-complex64array",
+ "@stdlib/strided/base/min-view-buffer-index",
+ "@stdlib/complex/float32/ctor"
+ ]
+ },
+ {
+ "task": "benchmark",
+ "os": "mac",
+ "blas": "openblas",
+ "wasm": false,
+ "src": [
+ "./src/csscal_cblas.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [
+ "-lopenblas",
+ "-lpthread"
+ ],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/strided/base/min-view-buffer-index",
+ "@stdlib/math/base/assert/is-nanf",
+ "@stdlib/complex/float32/ctor",
+ "@stdlib/complex/float32/real",
+ "@stdlib/complex/float32/imag"
+ ]
+ },
+ {
+ "task": "examples",
+ "os": "mac",
+ "blas": "openblas",
+ "wasm": false,
+ "src": [
+ "./src/csscal_cblas.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [
+ "-lopenblas",
+ "-lpthread"
+ ],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/strided/base/min-view-buffer-index",
+ "@stdlib/complex/float32/ctor",
+ "@stdlib/complex/float32/real",
+ "@stdlib/complex/float32/imag"
+ ]
+ },
+
+ {
+ "task": "build",
+ "os": "win",
+ "blas": "",
+ "wasm": false,
+ "src": [
+ "./src/csscal.c",
+ "./src/csscal_ndarray.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/napi/export",
+ "@stdlib/napi/argv",
+ "@stdlib/blas/base/shared",
+ "@stdlib/napi/argv-float",
+ "@stdlib/napi/argv-int64",
+ "@stdlib/napi/argv-strided-complex64array",
+ "@stdlib/strided/base/stride2offset",
+ "@stdlib/complex/float32/ctor",
+ "@stdlib/complex/float32/base/scale"
+ ]
+ },
+ {
+ "task": "benchmark",
+ "os": "win",
+ "blas": "",
+ "wasm": false,
+ "src": [
+ "./src/csscal.c",
+ "./src/csscal_ndarray.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/strided/base/stride2offset",
+ "@stdlib/math/base/assert/is-nanf",
+ "@stdlib/complex/float32/ctor",
+ "@stdlib/complex/float32/real",
+ "@stdlib/complex/float32/imag",
+ "@stdlib/complex/float32/base/scale"
+ ]
+ },
+ {
+ "task": "examples",
+ "os": "win",
+ "blas": "",
+ "wasm": false,
+ "src": [
+ "./src/csscal.c",
+ "./src/csscal_ndarray.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/strided/base/stride2offset",
+ "@stdlib/complex/float32/ctor",
+ "@stdlib/complex/float32/real",
+ "@stdlib/complex/float32/imag",
+ "@stdlib/complex/float32/base/scale"
+ ]
+ },
+
+ {
+ "task": "build",
+ "os": "",
+ "blas": "",
+ "wasm": true,
+ "src": [
+ "./src/csscal.c",
+ "./src/csscal_ndarray.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/strided/base/stride2offset",
+ "@stdlib/complex/float32/ctor",
+ "@stdlib/complex/float32/base/scale"
+ ]
+ }
+ ]
+}
diff --git a/lib/node_modules/@stdlib/blas/base/csscal/package.json b/lib/node_modules/@stdlib/blas/base/csscal/package.json
index a0a82c29e5a7..0c9198426822 100644
--- a/lib/node_modules/@stdlib/blas/base/csscal/package.json
+++ b/lib/node_modules/@stdlib/blas/base/csscal/package.json
@@ -15,11 +15,14 @@
],
"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",
diff --git a/lib/node_modules/@stdlib/blas/base/csscal/src/Makefile b/lib/node_modules/@stdlib/blas/base/csscal/src/Makefile
new file mode 100644
index 000000000000..2caf905cedbe
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/csscal/src/Makefile
@@ -0,0 +1,70 @@
+#/
+# @license Apache-2.0
+#
+# Copyright (c) 2026 The Stdlib Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#/
+
+# VARIABLES #
+
+ifndef VERBOSE
+ QUIET := @
+else
+ QUIET :=
+endif
+
+# Determine the OS ([1][1], [2][2]).
+#
+# [1]: https://en.wikipedia.org/wiki/Uname#Examples
+# [2]: http://stackoverflow.com/a/27776822/2225624
+OS ?= $(shell uname)
+ifneq (, $(findstring MINGW,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring MSYS,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring CYGWIN,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring Windows_NT,$(OS)))
+ OS := WINNT
+endif
+endif
+endif
+endif
+
+
+# RULES #
+
+#/
+# Removes generated files for building an add-on.
+#
+# @example
+# make clean-addon
+#/
+clean-addon:
+ $(QUIET) -rm -f *.o *.node
+
+.PHONY: clean-addon
+
+#/
+# Removes generated files.
+#
+# @example
+# make clean
+#/
+clean: clean-addon
+
+.PHONY: clean
diff --git a/lib/node_modules/@stdlib/blas/base/csscal/src/addon.c b/lib/node_modules/@stdlib/blas/base/csscal/src/addon.c
new file mode 100644
index 000000000000..f79cdf1b7f4e
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/csscal/src/addon.c
@@ -0,0 +1,63 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 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/csscal.h"
+#include "stdlib/blas/base/shared.h"
+#include "stdlib/napi/export.h"
+#include "stdlib/napi/argv.h"
+#include "stdlib/napi/argv_float.h"
+#include "stdlib/napi/argv_int64.h"
+#include "stdlib/napi/argv_strided_complex64array.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_FLOAT( env, alpha, argv, 1 );
+ STDLIB_NAPI_ARGV_STRIDED_COMPLEX64ARRAY( env, X, N, strideX, argv, 2 );
+ API_SUFFIX(c_csscal)( N, alpha, (void *)X, strideX );
+ return NULL;
+}
+
+/**
+* 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_method( napi_env env, napi_callback_info info ) {
+ STDLIB_NAPI_ARGV( env, info, argv, argc, 5 );
+ STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
+ STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 3 );
+ STDLIB_NAPI_ARGV_INT64( env, offsetX, argv, 4 );
+ STDLIB_NAPI_ARGV_FLOAT( env, alpha, argv, 1 );
+ STDLIB_NAPI_ARGV_STRIDED_COMPLEX64ARRAY( env, X, N, strideX, argv, 2 );
+ API_SUFFIX(c_csscal_ndarray)( N, alpha, (void *)X, strideX, offsetX );
+ return NULL;
+}
+
+STDLIB_NAPI_MODULE_EXPORT_FCN_WITH_METHOD( addon, "ndarray", addon_method )
diff --git a/lib/node_modules/@stdlib/blas/base/csscal/src/csscal.c b/lib/node_modules/@stdlib/blas/base/csscal/src/csscal.c
new file mode 100644
index 000000000000..5c68c475ca73
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/csscal/src/csscal.c
@@ -0,0 +1,34 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 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/csscal.h"
+#include "stdlib/strided/base/stride2offset.h"
+#include "stdlib/blas/base/shared.h"
+
+/**
+* Scales a single-precision complex floating-point vector by a single-precision floating-point constant.
+*
+* @param N number of indexed elements
+* @param alpha scalar constant
+* @param X input array
+* @param strideX X stride length
+*/
+void API_SUFFIX(c_csscal)( const CBLAS_INT N, const float alpha, void *X, const CBLAS_INT strideX ) {
+ CBLAS_INT ox = stdlib_strided_stride2offset( N, strideX );
+ API_SUFFIX(c_csscal_ndarray)( N, alpha, X, strideX, ox );
+}
diff --git a/lib/node_modules/@stdlib/blas/base/csscal/src/csscal.f b/lib/node_modules/@stdlib/blas/base/csscal/src/csscal.f
new file mode 100644
index 000000000000..10fc31c5f8ff
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/csscal/src/csscal.f
@@ -0,0 +1,81 @@
+!>
+! @license Apache-2.0
+!
+! Copyright (c) 2026 The Stdlib Authors.
+!
+! Licensed under the Apache License, Version 2.0 (the "License");
+! you may not use this file except in compliance with the License.
+! You may obtain a copy of the License at
+!
+! http://www.apache.org/licenses/LICENSE-2.0
+!
+! Unless required by applicable law or agreed to in writing, software
+! distributed under the License is distributed on an "AS IS" BASIS,
+! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+! See the License for the specific language governing permissions and
+! limitations under the License.
+!<
+
+!> Scales a single-precision complex floating-point vector by a single-precision floating-point constant.
+!
+! ## Notes
+!
+! * Modified version of reference BLAS level1 routine (version 3.9.0). Updated to "free form" Fortran 95.
+!
+! ## Authors
+!
+! * Univ. of Tennessee
+! * Univ. of California Berkeley
+! * Univ. of Colorado Denver
+! * NAG Ltd.
+!
+! ## 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 {real} alpha - scalar constant
+! @param {Array>} x - input array
+! @param {integer} strideX - `x` stride length
+!<
+subroutine csscal( N, alpha, x, strideX )
+ implicit none
+ ! ..
+ ! Scalar arguments:
+ integer :: strideX, N
+ real :: alpha
+ ! ..
+ ! Array arguments:
+ complex :: x(*)
+ ! ..
+ ! Local scalars:
+ integer :: i, ix
+ ! ..
+ ! Intrinsic functions:
+ intrinsic real, cmplx, aimag
+ ! ..
+ if ( N <= 0 .OR. strideX <= 0 .OR. alpha == 1.0e0 ) then
+ return
+ end if
+ ! ..
+ if ( strideX == 1 ) then
+ do i = 1, N
+ x( i ) = cmplx( alpha*real(x(i)), alpha*aimag(x(i)) )
+ end do
+ else
+ ix = 1
+ do i = 1, N
+ x( ix ) = cmplx( alpha*real(x(ix)), alpha*aimag(x(ix)) )
+ ix = ix + strideX
+ end do
+ end if
+ return
+end subroutine csscal
diff --git a/lib/node_modules/@stdlib/blas/base/csscal/src/csscal_cblas.c b/lib/node_modules/@stdlib/blas/base/csscal/src/csscal_cblas.c
new file mode 100644
index 000000000000..9d9bf85ded88
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/csscal/src/csscal_cblas.c
@@ -0,0 +1,59 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 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/csscal.h"
+#include "stdlib/blas/base/csscal_cblas.h"
+#include "stdlib/blas/base/shared.h"
+#include "stdlib/complex/float32/ctor.h"
+#include "stdlib/strided/base/min_view_buffer_index.h"
+
+/**
+* Scales a single-precision complex floating-point vector by a single-precision floating-point constant.
+*
+* @param N number of indexed elements
+* @param alpha scalar constant
+* @param X input array
+* @param strideX X stride length
+*/
+void API_SUFFIX(c_csscal)( const CBLAS_INT N, const float alpha, void *X, const CBLAS_INT strideX ) {
+ CBLAS_INT sx = strideX;
+ if ( sx < 0 ) {
+ sx = -sx;
+ }
+ API_SUFFIX(cblas_csscal)( N, alpha, X, sx );
+}
+
+/**
+* Scales a single-precision complex floating-point vector by a single-precision floating-point constant using alternative indexing semantics.
+*
+* @param N number of indexed elements
+* @param alpha scalar constant
+* @param X input array
+* @param strideX X stride length
+* @param offsetX starting index for X
+*/
+void API_SUFFIX(c_csscal_ndarray)( const CBLAS_INT N, const float alpha, void *X, const CBLAS_INT strideX, const CBLAS_INT offsetX ) {
+ stdlib_complex64_t *x = (stdlib_complex64_t *)X;
+ CBLAS_INT sx = strideX;
+
+ x += stdlib_strided_min_view_buffer_index( N, strideX, offsetX ); // adjust array pointer
+ if ( sx < 0 ) {
+ sx = -sx;
+ }
+ API_SUFFIX(cblas_csscal)( N, alpha, (void *)x, sx );
+}
diff --git a/lib/node_modules/@stdlib/blas/base/csscal/src/csscal_f.c b/lib/node_modules/@stdlib/blas/base/csscal/src/csscal_f.c
new file mode 100644
index 000000000000..307d9cb82485
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/csscal/src/csscal_f.c
@@ -0,0 +1,59 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 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/csscal.h"
+#include "stdlib/blas/base/csscal_fortran.h"
+#include "stdlib/blas/base/shared.h"
+#include "stdlib/complex/float32/ctor.h"
+#include "stdlib/strided/base/min_view_buffer_index.h"
+
+/**
+* Scales a single-precision complex floating-point vector by a single-precision floating-point constant.
+*
+* @param N number of indexed elements
+* @param alpha scalar constant
+* @param X input array
+* @param strideX X stride length
+*/
+void API_SUFFIX(c_csscal)( const CBLAS_INT N, const float alpha, void *X, const CBLAS_INT strideX ) {
+ CBLAS_INT sx = strideX;
+ if ( sx < 0 ) {
+ sx = -sx;
+ }
+ csscal( &N, &alpha, X, &sx );
+}
+
+/**
+* Scales a single-precision complex floating-point vector by a single-precision floating-point constant using alternative indexing semantics.
+*
+* @param N number of indexed elements
+* @param alpha scalar constant
+* @param X input array
+* @param strideX X stride length
+* @param offsetX starting index for X
+*/
+void API_SUFFIX(c_csscal_ndarray)( const CBLAS_INT N, const float alpha, void *X, const CBLAS_INT strideX, const CBLAS_INT offsetX ) {
+ stdlib_complex64_t *x = (stdlib_complex64_t *)X;
+ CBLAS_INT sx = strideX;
+
+ x += stdlib_strided_min_view_buffer_index( N, strideX, offsetX );
+ if ( sx < 0 ) {
+ sx = -sx;
+ }
+ csscal( &N, &alpha, (void *)x, &sx );
+}
diff --git a/lib/node_modules/@stdlib/blas/base/csscal/src/csscal_ndarray.c b/lib/node_modules/@stdlib/blas/base/csscal/src/csscal_ndarray.c
new file mode 100644
index 000000000000..89b21ef1f510
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/csscal/src/csscal_ndarray.c
@@ -0,0 +1,47 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 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/csscal.h"
+#include "stdlib/blas/base/shared.h"
+#include "stdlib/complex/float32/ctor.h"
+#include "stdlib/complex/float32/base/scale.h"
+
+/**
+* Scales a single-precision complex floating-point vector by a single-precision floating-point constant using alternative indexing semantics.
+*
+* @param N number of indexed elements
+* @param alpha scalar constant
+* @param X input array
+* @param strideX X stride length
+* @param offsetX starting index for X
+*/
+void API_SUFFIX(c_csscal_ndarray)( const CBLAS_INT N, const float alpha, void *X, const CBLAS_INT strideX, const CBLAS_INT offsetX ) {
+ stdlib_complex64_t *x = (stdlib_complex64_t *)X;
+ CBLAS_INT ix;
+ CBLAS_INT i;
+
+ if ( N <= 0 || alpha == 1.0f ) {
+ return;
+ }
+ ix = offsetX;
+ for ( i = 0; i < N; i++ ) {
+ x[ ix ] = stdlib_base_complex64_scale( alpha, x[ ix ] );
+ ix += strideX;
+ }
+ return;
+}
diff --git a/lib/node_modules/@stdlib/blas/base/csscal/test/test.csscal.js b/lib/node_modules/@stdlib/blas/base/csscal/test/test.csscal.js
index 83f87c9aa8cd..693b37eeb693 100644
--- a/lib/node_modules/@stdlib/blas/base/csscal/test/test.csscal.js
+++ b/lib/node_modules/@stdlib/blas/base/csscal/test/test.csscal.js
@@ -178,11 +178,11 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function retu
tape( 'the function supports view offsets', function test( t ) {
var expected;
- var x0;
- var x1;
+ var cx0;
+ var cx1;
// Initial array:
- x0 = new Complex64Array([
+ cx0 = new Complex64Array([
0.1,
-0.3,
8.0, // 1
@@ -196,9 +196,9 @@ tape( 'the function supports view offsets', function test( t ) {
]);
// Create offset view:
- x1 = new Complex64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // begin at 2nd element
+ cx1 = new Complex64Array( cx0.buffer, cx0.BYTES_PER_ELEMENT*1 ); // begin at 2nd element
- csscal( 3, 2.0, x1, 1 );
+ csscal( 3, 2.0, cx1, 1 );
expected = new Complex64Array([
0.1,
@@ -212,6 +212,6 @@ tape( 'the function supports view offsets', function test( t ) {
2.0,
3.0
]);
- t.strictEqual( isSameComplex64Array( x0, expected ), true, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( cx0, expected ), true, 'returns expected value' );
t.end();
});
diff --git a/lib/node_modules/@stdlib/blas/base/csscal/test/test.csscal.native.js b/lib/node_modules/@stdlib/blas/base/csscal/test/test.csscal.native.js
new file mode 100644
index 000000000000..f8870e8e8bb6
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/csscal/test/test.csscal.native.js
@@ -0,0 +1,226 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 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 isSameComplex64Array = require( '@stdlib/assert/is-same-complex64array' );
+var Complex64Array = require( '@stdlib/array/complex64' );
+var tryRequire = require( '@stdlib/utils/try-require' );
+
+
+// VARIABLES //
+
+var csscal = tryRequire( resolve( __dirname, './../lib/csscal.native.js' ) );
+var opts = {
+ 'skip': ( csscal instanceof Error )
+};
+
+
+// TESTS //
+
+tape( 'main export is a function', opts, function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof csscal, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 4', opts, function test( t ) {
+ t.strictEqual( csscal.length, 4, 'arity of 4' );
+ t.end();
+});
+
+tape( 'the function scales elements from `x` by `alpha`', opts, function test( t ) {
+ var expected;
+ var x;
+
+ x = new Complex64Array([
+ 0.3, // 1
+ 0.1, // 1
+ 0.5, // 2
+ 0.0, // 2
+ 0.0, // 3
+ 0.5, // 3
+ 0.0, // 4
+ 0.2 // 4
+ ]);
+
+ csscal( 4, 2.0, x, 1 );
+
+ expected = new Complex64Array([
+ 0.6, // 1
+ 0.2, // 1
+ 1.0, // 2
+ 0.0, // 2
+ 0.0, // 3
+ 1.0, // 3
+ 0.0, // 4
+ 0.4 // 4
+ ]);
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports a `x` stride', opts, function test( t ) {
+ var expected;
+ var x;
+
+ x = new Complex64Array([
+ 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
+ ]);
+
+ csscal( 3, 2.0, x, 2 );
+
+ expected = new Complex64Array([
+ 0.2, // 1
+ 0.2, // 1
+ 3.0,
+ 6.0,
+ -1.2, // 2
+ 0.2, // 2
+ 4.0,
+ 7.0,
+ 0.2, // 3
+ -0.6, // 3
+ 7.0,
+ 2.0
+ ]);
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports a negative `x` stride', opts, function test( t ) {
+ var expected;
+ var x;
+
+ x = new Complex64Array([
+ 0.1, // 3
+ 0.1, // 3
+ 3.0,
+ 6.0,
+ -0.6, // 2
+ 0.1, // 2
+ 4.0,
+ 7.0,
+ 0.1, // 1
+ -0.3, // 1
+ 7.0,
+ 2.0
+ ]);
+
+ csscal( 3, 2.0, x, -2 );
+
+ expected = new Complex64Array([
+ 0.2, // 3
+ 0.2, // 3
+ 3.0,
+ 6.0,
+ -1.2, // 2
+ 0.2, // 2
+ 4.0,
+ 7.0,
+ 0.2, // 1
+ -0.6, // 1
+ 7.0,
+ 2.0
+ ]);
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns a reference to the input array', opts, function test( t ) {
+ var out;
+ var x;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ out = csscal( 4, 2.0, x, 1 );
+
+ t.strictEqual( out, x, '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 x;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ csscal( -1, 2.0, x, 1 );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ csscal( 0, 2.0, x, 1 );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports view offsets', opts, function test( t ) {
+ var expected;
+ var cx0;
+ var cx1;
+
+ // Initial array:
+ cx0 = new Complex64Array([
+ 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 view:
+ cx1 = new Complex64Array( cx0.buffer, cx0.BYTES_PER_ELEMENT*1 ); // begin at 2nd element
+
+ csscal( 3, 2.0, cx1, 1 );
+
+ expected = new Complex64Array([
+ 0.1,
+ -0.3,
+ 16.0, // 1
+ 18.0, // 1
+ 1.0, // 2
+ -0.2, // 2
+ 4.0, // 3
+ 10.0, // 3
+ 2.0,
+ 3.0
+ ]);
+ t.strictEqual( isSameComplex64Array( cx0, expected ), true, 'returns expected value' );
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/blas/base/csscal/test/test.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/csscal/test/test.ndarray.native.js
new file mode 100644
index 000000000000..01035b53fb25
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/base/csscal/test/test.ndarray.native.js
@@ -0,0 +1,276 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 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 isSameComplex64Array = require( '@stdlib/assert/is-same-complex64array' );
+var Complex64Array = require( '@stdlib/array/complex64' );
+var tryRequire = require( '@stdlib/utils/try-require' );
+
+
+// VARIABLES //
+
+var csscal = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) );
+var opts = {
+ 'skip': ( csscal instanceof Error )
+};
+
+
+// TESTS //
+
+tape( 'main export is a function', opts, function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof csscal, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 5', opts, function test( t ) {
+ t.strictEqual( csscal.length, 5, 'arity of 5' );
+ t.end();
+});
+
+tape( 'the function scales elements from `x` by `alpha`', opts, function test( t ) {
+ var expected;
+ var x;
+
+ x = new Complex64Array([
+ 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
+ ]);
+
+ csscal( 4, 2.0, x, 1, 0 );
+
+ expected = new Complex64Array([
+ 0.6, // 1
+ 0.2, // 1
+ 1.0, // 2
+ 0.0, // 2
+ 0.0, // 3
+ 1.0, // 3
+ 0.0, // 4
+ 0.4, // 4
+ 2.0,
+ 3.0,
+ 2.0,
+ 3.0
+ ]);
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports a `x` stride', opts, function test( t ) {
+ var expected;
+ var x;
+
+ x = new Complex64Array([
+ 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
+ ]);
+
+ csscal( 3, 2.0, x, 2, 0 );
+
+ expected = new Complex64Array([
+ 0.2, // 1
+ 0.2, // 1
+ 3.0,
+ 6.0,
+ -1.2, // 2
+ 0.2, // 2
+ 4.0,
+ 7.0,
+ 0.2, // 3
+ -0.6, // 3
+ 7.0,
+ 2.0
+ ]);
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports a negative `x` stride', opts, function test( t ) {
+ var expected;
+ var x;
+
+ x = new Complex64Array([
+ 0.1, // 3
+ 0.1, // 3
+ 3.0,
+ 6.0,
+ -0.6, // 2
+ 0.1, // 2
+ 4.0,
+ 7.0,
+ 0.1, // 1
+ -0.3, // 1
+ 7.0,
+ 2.0
+ ]);
+
+ csscal( 3, 2.0, x, -2, 4 );
+
+ expected = new Complex64Array([
+ 0.2, // 3
+ 0.2, // 3
+ 3.0,
+ 6.0,
+ -1.2, // 2
+ 0.2, // 2
+ 4.0,
+ 7.0,
+ 0.2, // 1
+ -0.6, // 1
+ 7.0,
+ 2.0
+ ]);
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports a `x` offset', opts, function test( t ) {
+ var expected;
+ var x;
+
+ x = new Complex64Array([
+ 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
+ ]);
+
+ csscal( 3, 2.0, x, 1, 3 );
+
+ expected = new Complex64Array([
+ 0.1,
+ 0.1,
+ 3.0,
+ 6.0,
+ -0.6,
+ 0.1,
+ 8.0, // 1
+ 12.0, // 1
+ 0.2, // 2
+ -0.6, // 2
+ 14.0, // 3
+ 4.0 // 3
+ ]);
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns a reference to the input array', opts, function test( t ) {
+ var out;
+ var x;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ out = csscal( 4, 2.0, x, 1, 0 );
+
+ t.strictEqual( out, x, '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 x;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ csscal( -1, 2.0, x, 1, 0 );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ csscal( 0, 2.0, x, 1, 0 );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports complex access patterns', opts, function test( t ) {
+ var expected;
+ var x;
+
+ x = new Complex64Array([
+ 0.1,
+ 0.1,
+ 3.0,
+ 6.0,
+ -0.6,
+ 0.1,
+ 4.0, // 2
+ 6.0, // 2
+ 0.1,
+ -0.3,
+ 7.0,
+ 2.0,
+ 2.0, // 1
+ 3.0 // 1
+ ]);
+
+ csscal( 2, 2.0, x, -3, 6 );
+
+ expected = new Complex64Array([
+ 0.1,
+ 0.1,
+ 3.0,
+ 6.0,
+ -0.6,
+ 0.1,
+ 8.0, // 2
+ 12.0, // 2
+ 0.1,
+ -0.3,
+ 7.0,
+ 2.0,
+ 4.0, // 1
+ 6.0 // 1
+ ]);
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});