From ed20cbf30168e717f8225a1ed3cefdc4de1f021e Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Wed, 12 Feb 2025 00:22:00 +0530 Subject: [PATCH 01/18] feat: add /complex/float32/base/add --- .../complex/float32/base/add/lib/assign.js | 50 +++++++++++++++++ .../complex/float32/base/add/lib/strided.js | 55 +++++++++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 lib/node_modules/@stdlib/complex/float32/base/add/lib/assign.js create mode 100644 lib/node_modules/@stdlib/complex/float32/base/add/lib/strided.js diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/lib/assign.js b/lib/node_modules/@stdlib/complex/float32/base/add/lib/assign.js new file mode 100644 index 000000000000..b0f0e0028cb4 --- /dev/null +++ b/lib/node_modules/@stdlib/complex/float32/base/add/lib/assign.js @@ -0,0 +1,50 @@ +/** +* @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'; + +// MAIN // + +/** +* Adds two single-precision complex floating-point numbers and assigns results to a provided output array. +* +* @param {number} re1 - real component of the first complex number +* @param {number} im1 - imaginary component of the first complex number +* @param {number} re2 - real component of the second complex number +* @param {number} im2 - imaginary component of the second complex number +* @param {Collection} out - output array +* @param {integer} strideOut - stride length +* @param {NonNegativeInteger} offsetOut - starting index +* @returns {Collection} output array +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var out = assign( 5.0, 3.0, -2.0, 1.0, new Float32Array( 2 ), 1, 0 ); +* // returns [ 3.0, 4.0 ] +*/ +function assign( re1, im1, re2, im2, out, strideOut, offsetOut ) { + out[ offsetOut ] = re1 + re2; + out[ offsetOut+strideOut ] = im1 + im2; + return out; +} + + +// EXPORTS // + +module.exports = assign; \ No newline at end of file diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/lib/strided.js b/lib/node_modules/@stdlib/complex/float32/base/add/lib/strided.js new file mode 100644 index 000000000000..664804647f77 --- /dev/null +++ b/lib/node_modules/@stdlib/complex/float32/base/add/lib/strided.js @@ -0,0 +1,55 @@ +/** +* @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'; + +// MAIN // + +/** +* Adds two single-precision complex floating-point numbers stored in real-valued strided array views and assigns results to a provided strided output array. +* +* @param {Float64Array} z1 - first complex number view +* @param {integer} strideZ1 - stride length for `z1` +* @param {NonNegativeInteger} offsetZ1 - starting index for `z1` +* @param {Float64Array} z2 - second complex number view +* @param {integer} strideZ2 - stride length for `z2` +* @param {NonNegativeInteger} offsetZ2 - starting index for `z2` +* @param {Collection} out - output array +* @param {integer} strideOut - stride length for `out` +* @param {NonNegativeInteger} offsetOut - starting index for `out` +* @returns {Collection} output array +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var z1 = new Float32Array( [ 5.0, 3.0 ] ); +* var z2 = new Float32Array( [ -2.0, 1.0 ] ); +* +* var out = strided( z1, 1, 0, z2, 1, 0, new Float32Array( 2 ), 1, 0 ); +* // returns [ 3.0, 4.0 ] +*/ +function strided( z1, strideZ1, offsetZ1, z2, strideZ2, offsetZ2, out, strideOut, offsetOut ) { // eslint-disable-line max-len + out[ offsetOut ] = z1[ offsetZ1 ] + z2[ offsetZ2 ]; + out[ offsetOut+strideOut ] = z1[ offsetZ1+strideZ1 ] + z2[ offsetZ2+strideZ2 ]; // eslint-disable-line max-len + return out; +} + + +// EXPORTS // + +module.exports = strided; \ No newline at end of file From 6dac185521c892ee732ebcc56e8d327ecc5053af Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Sun, 16 Feb 2025 14:17:38 +0530 Subject: [PATCH 02/18] feat: add /complex/float32/base/add --- .../complex/float32/base/add/README.md | 55 ++++ .../base/add/benchmark/benchmark.asssign.js | 70 +++++ .../base/add/benchmark/benchmark.strided.js | 68 ++++ .../complex/float32/base/add/docs/repl.txt | 87 ++++++ .../float32/base/add/docs/types/index.d.ts | 102 +++++- .../float32/base/add/docs/types/test.ts | 290 ++++++++++++++++++ .../complex/float32/base/add/lib/assign.js | 9 +- .../complex/float32/base/add/lib/index.js | 9 + .../complex/float32/base/add/lib/strided.js | 13 +- .../float32/base/add/test/test.assign.js | 132 ++++++++ .../complex/float32/base/add/test/test.js | 80 +---- .../float32/base/add/test/test.main.js | 110 +++++++ .../float32/base/add/test/test.strided.js | 158 ++++++++++ 13 files changed, 1104 insertions(+), 79 deletions(-) create mode 100644 lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.asssign.js create mode 100644 lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.strided.js create mode 100644 lib/node_modules/@stdlib/complex/float32/base/add/test/test.assign.js create mode 100644 lib/node_modules/@stdlib/complex/float32/base/add/test/test.main.js create mode 100644 lib/node_modules/@stdlib/complex/float32/base/add/test/test.strided.js diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/README.md b/lib/node_modules/@stdlib/complex/float32/base/add/README.md index d50e2be39cf1..ef310ca78d49 100644 --- a/lib/node_modules/@stdlib/complex/float32/base/add/README.md +++ b/lib/node_modules/@stdlib/complex/float32/base/add/README.md @@ -57,6 +57,61 @@ var im = imagf( v ); // returns 5.0 ``` +#### add.assign( re1, im1, re2, im2, out, strideOut, offsetOut ) + +Adds two single-precision complex floating-point numbers and assigns results to a provided output array. + +```javascript +var Float32Array = require( '@stdlib/array/float32' ); + +var out = new Float32Array( 2 ); +var v = add.assign( 5.0, 3.0, -2.0, 1.0, out, 1, 0 ); +// returns [ 3.0, 4.0 ] + +var bool = ( out === v ); +// returns true +``` + +The function supports the following parameters: + +- **re1**: real component of the first complex number. +- **im1**: imaginary component of the first complex number. +- **re2**: real component of the second complex number. +- **im2**: imaginary component of the second complex number. +- **out**: output array. +- **strideOut**: stride length for `out`. +- **offsetOut**: starting index for `out`. + +#### add.strided( z1, sz1, oz1, z2, sz2, oz2, out, so, oo ) + +Adds two single-precision complex floating-point numbers stored in real-valued strided array views and assigns results to a provided strided output array. + +```javascript +var Float32Array = require( '@stdlib/array/float32' ); + +var z1 = new Float32Array( [ 5.0, 3.0 ] ); +var z2 = new Float32Array( [ -2.0, 1.0 ] ); +var out = new Float32Array( 2 ); + +var v = add.strided( z1, 1, 0, z2, 1, 0, out, 1, 0 ); +// returns [ 3.0, 4.0 ] + +var bool = ( out === v ); +// returns true +``` + +The function supports the following parameters: + +- **z1**: first complex number strided array view. +- **sz1**: stride length for `z1`. +- **oz1**: starting index for `z1`. +- **z2**: second complex number strided array view. +- **sz2**: stride length for `z2`. +- **oz2**: starting index for `z2`. +- **out**: output array. +- **so**: stride length for `out`. +- **oo**: starting index for `out`. + diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.asssign.js b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.asssign.js new file mode 100644 index 000000000000..e8f42f99dc54 --- /dev/null +++ b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.asssign.js @@ -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. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var Float32Array = require( '@stdlib/array/float32' ); +var pkg = require( './../package.json' ).name; +var add = require( './../lib' ); + + +// VARIABLES // + +var options = { + 'dtype': 'float32' +}; + + +// MAIN // + +bench( pkg+':assign', function benchmark( b ) { + var out; + var re; + var im; + var N; + var i; + var j; + var k; + + N = 100; + re = uniform( N, -500.0, 500.0, options ); + im = uniform( N, -500.0, 500.0, options ); + + out = new Float32Array( 2 ); + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + j = i % N; + k = ( i+1 ) % N; + out = add.assign( re[ j ], im[ j ], re[ k ], im[ k ], out, 1, 0 ); + if ( typeof out !== 'object' ) { + b.fail( 'should return an object' ); + } + } + b.toc(); + if ( isnanf( out[ 0 ] ) || isnanf( out[ 1 ] ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); \ No newline at end of file diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.strided.js b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.strided.js new file mode 100644 index 000000000000..a349a4f61936 --- /dev/null +++ b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.strided.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 bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var Float32Array = require( '@stdlib/array/float32' ); +var pkg = require( './../package.json' ).name; +var add = require( './../lib' ); + + +// VARIABLES // + +var options = { + 'dtype': 'float32' +}; + + +// MAIN // + +bench( pkg+':strided', function benchmark( b ) { + var out; + var z1; + var z2; + var N; + var i; + var j; + + N = 50; + z1 = uniform( N*2, -500.0, 500.0, options ); + z2 = uniform( N*2, -500.0, 500.0, options ); + + out = new Float32Array( 2 ); + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + j = ( i % N ) * 2; + out = add.strided( z1, 1, j, z2, 1, j, out, 1, 0 ); + if ( typeof out !== 'object' ) { + b.fail( 'should return an object' ); + } + } + b.toc(); + if ( isnanf( out[ 0 ] ) || isnanf( out[ 1 ] ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); \ No newline at end of file diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/docs/repl.txt b/lib/node_modules/@stdlib/complex/float32/base/add/docs/repl.txt index af76c86758f6..06e0737f8493 100644 --- a/lib/node_modules/@stdlib/complex/float32/base/add/docs/repl.txt +++ b/lib/node_modules/@stdlib/complex/float32/base/add/docs/repl.txt @@ -26,6 +26,93 @@ > var im = {{alias:@stdlib/complex/float32/imag}}( out ) 6.0 + +{{alias}}.assign( re1, im1, re2, im2, out, strideOut, offsetOut ) + Adds two single-precision complex floating-point numbers and assigns results + to a provided output array. + + Parameters + ---------- + re1: number + Real component of the first complex number. + + im1: number + Imaginary component of the first complex number. + + re2: number + Real component of the second complex number. + + im2: number + Imaginary component of the second complex number. + + out: ArrayLikeObject + Output array. + + strideOut: integer + Stride length. + + offsetOut: integer + Starting index. + + Returns + ------- + out: ArrayLikeObject + Output array. + + Examples + -------- + > var out = new {{alias:@stdlib/array/float32}}( 2 ); + > {{alias}}.assign( 5.0, 3.0, -2.0, 1.0, out, 1, 0 ) + [ 3.0, 4.0 ] + + +{{alias}}.strided( z1, sz1, oz1, z2, sz2, oz2, out, so, oo ) + Adds two single-precision complex floating-point numbers stored in real- + valued strided array views and assigns results to a provided strided output + array. + + Parameters + ---------- + z1: ArrayLikeObject + First complex number view. + + sz1: integer + Stride length for `z1`. + + oz1: integer + Starting index for `z1`. + + z2: ArrayLikeObject + Second complex number view. + + sz2: integer + Stride length for `z2`. + + oz2: integer + Starting index for `z2`. + + out: ArrayLikeObject + Output array. + + so: integer + Stride length for `out`. + + oo: integer + Starting index for `out`. + + Returns + ------- + out: ArrayLikeObject + Output array. + + Examples + -------- + > var z1 = new {{alias:@stdlib/array/float32}}( [ 5.0, 3.0 ] ); + > var z2 = new {{alias:@stdlib/array/float32}}( [ -2.0, 1.0 ] ); + > var out = new {{alias:@stdlib/array/float32}}( 2 ); + > {{alias}}.strided( z1, 1, 0, z2, 1, 0, out, 1, 0 ) + [ 3.0, 4.0 ] + See Also -------- diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/docs/types/index.d.ts b/lib/node_modules/@stdlib/complex/float32/base/add/docs/types/index.d.ts index c92f43197db2..3d2523147c35 100644 --- a/lib/node_modules/@stdlib/complex/float32/base/add/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/complex/float32/base/add/docs/types/index.d.ts @@ -21,6 +21,87 @@ /// import { Complex64 } from '@stdlib/types/complex'; +import { Collection, NumericArray } from '@stdlib/types/array'; + +/** +* Interface for adding two single-precision complex floating-point numbers. +*/ +interface Add { + /** + * Adds two single-precision complex floating-point numbers. + * + * @param z1 - complex number + * @param z2 - complex number + * @returns result + * + * @example + * var Complex64 = require( '@stdlib/complex/float32/ctor' ); + * var real = require( '@stdlib/complex/float32/real' ); + * var imag = require( '@stdlib/complex/float32/imag' ); + * + * var z = new Complex64( 5.0, 3.0 ); + * // returns + * + * var out = add( z, z ); + * // returns + * + * var re = real( out ); + * // returns 10.0 + * + * var im = imag( out ); + * // returns 6.0 + */ + ( z1: Complex64, z2: Complex64 ): Complex64; + + /** + * Adds two single-precision complex floating-point numbers and assigns results to a provided output array. + * + * @param re1 - real component of the first complex number + * @param im1 - imaginary component of the first complex number + * @param re2 - real component of the second complex number + * @param im2 - imaginary component of the second complex number + * @param out - output array + * @param strideOut - stride length + * @param offsetOut - starting index + * @returns output array + * + * @example + * var Float32Array = require( '@stdlib/array/float32' ); + * + * var out = new Float32Array( 2 ); + * var v = add.assign( 5.0, 3.0, 5.0, 3.0, out, 1, 0 ); + * // returns [ 10.0, 6.0 ] + * + * var bool = ( out === v ); + * // returns true + */ + assign>( re1: number, im1: number, re2: number, im2: number, out: T, strideOut: number, offsetOut: number ): T; + + /** + * Adds two single-precision complex floating-point numbers stored in real-valued strided array views and assigns results to a provided strided output array. + * + * @param z1 - first complex number view + * @param strideZ1 - stride length for `z1` + * @param offsetZ1 - starting index for `z1` + * @param z2 - second complex number view + * @param strideZ2 - stride length for `z2` + * @param offsetZ2 - starting index for `z2` + * @param out - output array + * @param strideOut - stride length for `out` + * @param offsetOut - starting index for `out` + * @returns output array + * + * @example + * var Float32Array = require( '@stdlib/array/float32' ); + * + * var z1 = new Float32Array( [ 5.0, 3.0 ] ); + * var z2 = new Float32Array( [ 5.0, 3.0 ] ); + * + * var out = add.strided( z1, 1, 0, z2, 1, 0, new Float32Array( 2 ), 1, 0 ); + * // returns [ 10.0, 6.0 ] + */ + strided, U extends NumericArray | Collection, V extends NumericArray | Collection>( z1: T, strideZ1: number, offsetZ1: number, z2: U, strideZ2: number, offsetZ2: number, out: V, strideOut: number, offsetOut: number ): V; +} /** * Adds two single-precision complex floating-point numbers. @@ -45,8 +126,27 @@ import { Complex64 } from '@stdlib/types/complex'; * * var im = imagf( out ); * // returns 6.0 +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var out = new Float32Array( 2 ); +* var v = add.assign( 5.0, 3.0, 5.0, 3.0, out, 1, 0 ); +* // returns [ 10.0, 6.0 ] +* +* var bool = ( out === v ); +* // returns true +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var z1 = new Float32Array( [ 5.0, 3.0 ] ); +* var z2 = new Float32Array( [ 5.0, 3.0 ] ); +* +* var out = add.strided( z1, 1, 0, z2, 1, 0, new Float32Array( 2 ), 1, 0 ); +* // returns [ 10.0, 6.0 ] */ -declare function add( z1: Complex64, z2: Complex64 ): Complex64; +declare var add: Add; // EXPORTS // diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/docs/types/test.ts b/lib/node_modules/@stdlib/complex/float32/base/add/docs/types/test.ts index ef556a9a3d20..f345b7f40acb 100644 --- a/lib/node_modules/@stdlib/complex/float32/base/add/docs/types/test.ts +++ b/lib/node_modules/@stdlib/complex/float32/base/add/docs/types/test.ts @@ -65,3 +65,293 @@ import add = require( './index' ); add( z ); // $ExpectError add( z, z, z ); // $ExpectError } + +// Attached to the main export is an `assign` method which returns a collection... +{ + add.assign( 1.0, 1.0, 1.0, 1.0, new Float32Array( 2 ), 1, 0 ); // $ExpectType Float32Array + add.assign( 1.0, 1.0, 1.0, 1.0, [ 0.0, 0.0 ], 1, 0 ); // $ExpectType number[] +} + +// The compiler throws an error if the `assign` method is provided a first argument which is not a number... +{ + const out = new Float32Array( 2 ); + + add.assign( true, 2.0, 3.0, 4.0, out, 1, 0 ); // $ExpectError + add.assign( false, 2.0, 3.0, 4.0, out, 1, 0 ); // $ExpectError + add.assign( null, 2.0, 3.0, 4.0, out, 1, 0 ); // $ExpectError + add.assign( undefined, 2.0, 3.0, 4.0, out, 1, 0 ); // $ExpectError + add.assign( '5', 2.0, 3.0, 4.0, out, 1, 0 ); // $ExpectError + add.assign( [], 2.0, 3.0, 4.0, out, 1, 0 ); // $ExpectError + add.assign( {}, 2.0, 3.0, 4.0, out, 1, 0 ); // $ExpectError + add.assign( ( x: number ): number => x, 2.0, 3.0, 4.0, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `assign` method is provided a second argument which is not a number... +{ + const out = new Float32Array( 2 ); + + add.assign( 1.0, true, 3.0, 4.0, out, 1, 0 ); // $ExpectError + add.assign( 1.0, false, 3.0, 4.0, out, 1, 0 ); // $ExpectError + add.assign( 1.0, null, 3.0, 4.0, out, 1, 0 ); // $ExpectError + add.assign( 1.0, undefined, 3.0, 4.0, out, 1, 0 ); // $ExpectError + add.assign( 1.0, '5', 3.0, 4.0, out, 1, 0 ); // $ExpectError + add.assign( 1.0, [], 3.0, 4.0, out, 1, 0 ); // $ExpectError + add.assign( 1.0, {}, 3.0, 4.0, out, 1, 0 ); // $ExpectError + add.assign( 1.0, ( x: number ): number => x, 3.0, 4.0, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `assign` method is provided a third argument which is not a number... +{ + const out = new Float32Array( 2 ); + + add.assign( 1.0, 2.0, true, 4.0, out, 1, 0 ); // $ExpectError + add.assign( 1.0, 2.0, false, 4.0, out, 1, 0 ); // $ExpectError + add.assign( 1.0, 2.0, null, 4.0, out, 1, 0 ); // $ExpectError + add.assign( 1.0, 2.0, undefined, 4.0, out, 1, 0 ); // $ExpectError + add.assign( 1.0, 2.0, '5', 4.0, out, 1, 0 ); // $ExpectError + add.assign( 1.0, 2.0, [], 4.0, out, 1, 0 ); // $ExpectError + add.assign( 1.0, 2.0, {}, 4.0, out, 1, 0 ); // $ExpectError + add.assign( 1.0, 2.0, ( x: number ): number => x, 4.0, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `assign` method is provided a fourth argument which is not a number... +{ + const out = new Float32Array( 2 ); + + add.assign( 1.0, 2.0, 3.0, true, out, 1, 0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, false, out, 1, 0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, null, out, 1, 0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, undefined, out, 1, 0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, '5', out, 1, 0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, [], out, 1, 0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, {}, out, 1, 0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, ( x: number ): number => x, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `assign` method is provided a fifth argument which is not a collection... +{ + add.assign( 1.0, 2.0, 3.0, 4.0, 1, 1, 0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, true, 1, 0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, false, 1, 0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, null, 1, 0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, undefined, 1, 0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, '5', 1, 0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, [ '5' ], 1, 0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, {}, 1, 0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, ( x: number ): number => x, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `assign` method is provided a sixth argument which is not a number... +{ + const out = new Float32Array( 2 ); + + add.assign( 1.0, 2.0, 3.0, 4.0, out, true, 0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, out, false, 0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, out, null, 0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, out, undefined, 0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, out, '5', 0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, out, [], 0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, out, {}, 0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, out, ( x: number ): number => x, 0 ); // $ExpectError +} + +// The compiler throws an error if the `assign` method is provided a seventh argument which is not a number... +{ + const out = new Float32Array( 2 ); + + add.assign( 1.0, 2.0, 3.0, 4.0, out, 1, true ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, out, 1, false ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, out, 1, null ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, out, 1, undefined ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, out, 1, '5' ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, out, 1, [] ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, out, 1, {} ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, out, 1, ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the `assign` method is provided an unsupported number of arguments... +{ + const out = new Float32Array( 2 ); + + add.assign(); // $ExpectError + add.assign( 1.0 ); // $ExpectError + add.assign( 1.0, 2.0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, out ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, out, 1 ); // $ExpectError + add.assign( 1.0, 2.0, 3.0, 4.0, out, 1, 0, {} ); // $ExpectError +} + +// Attached to the main export is a `strided` method which returns a collection... +{ + const z1 = new Float32Array( 2 ); + const z2 = new Float32Array( z1.length ); + + add.strided( z1, 1, 0, z2, 1, 0, new Float32Array( 2 ), 1, 0 ); // $ExpectType Float32Array + add.strided( z1, 1, 0, z2, 1, 0, new Float32Array( 2 ), 1, 0 ); // $ExpectType Float32Array + add.strided( z1, 1, 0, z2, 1, 0, [ 0.0, 0.0 ], 1, 0 ); // $ExpectType number[] +} + +// The compiler throws an error if the `strided` method is provided a first argument which is not a collection... +{ + const z1 = new Float32Array( 2 ); + const z2 = new Float32Array( z1.length ); + const out = new Float32Array( z2.length ); + + add.strided( true, 1, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( false, 1, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( null, 1, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( undefined, 1, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( '5', 1, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( [ '5' ], 1, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( {}, 1, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( ( x: number ): number => x, 1, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `strided` method is provided a second argument which is not a number... +{ + const z1 = new Float32Array( 2 ); + const z2 = new Float32Array( z1.length ); + const out = new Float32Array( z2.length ); + + add.strided( z1, true, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, false, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, null, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, undefined, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, '5', 0, z2, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, [], 0, z2, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, {}, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, ( x: number ): number => x, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `strided` method is provided a third argument which is not a number... +{ + const z1 = new Float32Array( 2 ); + const z2 = new Float32Array( z1.length ); + const out = new Float32Array( 2 ); + + add.strided( z1, 1, true, z2, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, false, z2, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, null, z2, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, undefined, z2, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, '5', z2, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, [], z2, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, {}, z2, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, ( x: number ): number => x, z2, 1, 0, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `strided` method is provided a fourth argument which is not a collection... +{ + const z1 = new Float32Array( 2 ); + const z2 = new Float32Array( z1.length ); + const out = new Float32Array( z2.length ); + + add.strided( z1, 1, 0, true, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, false, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, null, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, undefined, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, '5', 1, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, [ '5' ], 1, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, {}, 1, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, ( x: number ): number => x, 1, 0, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `strided` method is provided a fifth argument which is not a number... +{ + const z1 = new Float32Array( 2 ); + const z2 = new Float32Array( z1.length ); + const out = new Float32Array( z2.length ); + + add.strided( z1, 1, 0, z2, true, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, false, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, null, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, undefined, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, '5', 0, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, [], 0, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, {}, 0, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, ( x: number ): number => x, 0, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `strided` method is provided a sixth argument which is not a number... +{ + const z1 = new Float32Array( 2 ); + const z2 = new Float32Array( z1.length ); + const out = new Float32Array( z2.length ); + + add.strided( z1, 1, 0, z2, 1, true, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, false, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, null, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, undefined, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, '5', out, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, [], out, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, {}, out, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, ( x: number ): number => x, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `strided` method is provided a seventh argument which is not a collection... +{ + const z1 = new Float32Array( 2 ); + const z2 = new Float32Array( z1.length ); + + add.strided( z1, 1, 0, z2, 1, 0, 1, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, true, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, false, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, null, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, undefined, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, '5', 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, [ '5' ], 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, {}, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, ( x: number ): number => x, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `strided` method is provided an eighth argument which is not a number... +{ + const z1 = new Float32Array( 2 ); + const z2 = new Float32Array( z1.length ); + const out = new Float32Array( z2.length ); + + add.strided( z1, 1, 0, z2, 1, 0, out, true, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, out, false, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, out, null, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, out, undefined, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, out, '5', 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, out, [], 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, out, {}, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, out, ( x: number ): number => x, 0 ); // $ExpectError +} + +// The compiler throws an error if the `strided` method is provided a ninth argument which is not a number... +{ + const z1 = new Float32Array( 2 ); + const z2 = new Float32Array( z1.length ); + const out = new Float32Array( z2.length ); + + add.strided( z1, 1, 0, z2, 1, 0, out, 1, true ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, out, 1, false ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, out, 1, null ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, out, 1, undefined ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, out, 1, '5' ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, out, 1, [] ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, out, 1, {} ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, out, 1, ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the `strided` method is provided an unsupported number of arguments... +{ + const z1 = new Float32Array( 2 ); + const z2 = new Float32Array( z1.length ); + const out = new Float32Array( z2.length ); + + add.strided(); // $ExpectError + add.strided( z1 ); // $ExpectError + add.strided( z1, 1 ); // $ExpectError + add.strided( z1, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, out ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, out, 1 ); // $ExpectError + add.strided( z1, 1, 0, z2, 1, 0, out, 1, 0, {} ); // $ExpectError +} + diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/lib/assign.js b/lib/node_modules/@stdlib/complex/float32/base/add/lib/assign.js index b0f0e0028cb4..bdf3260ceaf3 100644 --- a/lib/node_modules/@stdlib/complex/float32/base/add/lib/assign.js +++ b/lib/node_modules/@stdlib/complex/float32/base/add/lib/assign.js @@ -18,6 +18,11 @@ 'use strict'; +// MODULES // + +var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' ); + + // MAIN // /** @@ -39,8 +44,8 @@ * // returns [ 3.0, 4.0 ] */ function assign( re1, im1, re2, im2, out, strideOut, offsetOut ) { - out[ offsetOut ] = re1 + re2; - out[ offsetOut+strideOut ] = im1 + im2; + out[ offsetOut ] = float64ToFloat32( re1 + re2 ); + out[ offsetOut+strideOut ] = float64ToFloat32( im1 + im2 ); return out; } diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/lib/index.js b/lib/node_modules/@stdlib/complex/float32/base/add/lib/index.js index d9c476391adc..071df540f25d 100644 --- a/lib/node_modules/@stdlib/complex/float32/base/add/lib/index.js +++ b/lib/node_modules/@stdlib/complex/float32/base/add/lib/index.js @@ -44,7 +44,16 @@ // MODULES // +var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' ); var main = require( './main.js' ); +var assign = require( './assign.js' ); +var strided = require( './strided.js' ); + + +// MAIN // + +setReadOnly( main, 'assign', assign ); +setReadOnly( main, 'strided', strided ); // EXPORTS // diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/lib/strided.js b/lib/node_modules/@stdlib/complex/float32/base/add/lib/strided.js index 664804647f77..6c86067df6f5 100644 --- a/lib/node_modules/@stdlib/complex/float32/base/add/lib/strided.js +++ b/lib/node_modules/@stdlib/complex/float32/base/add/lib/strided.js @@ -18,15 +18,20 @@ 'use strict'; +// MODULES // + +var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' ); + + // MAIN // /** * Adds two single-precision complex floating-point numbers stored in real-valued strided array views and assigns results to a provided strided output array. * -* @param {Float64Array} z1 - first complex number view +* @param {Float32Array} z1 - first complex number view * @param {integer} strideZ1 - stride length for `z1` * @param {NonNegativeInteger} offsetZ1 - starting index for `z1` -* @param {Float64Array} z2 - second complex number view +* @param {Float32Array} z2 - second complex number view * @param {integer} strideZ2 - stride length for `z2` * @param {NonNegativeInteger} offsetZ2 - starting index for `z2` * @param {Collection} out - output array @@ -44,8 +49,8 @@ * // returns [ 3.0, 4.0 ] */ function strided( z1, strideZ1, offsetZ1, z2, strideZ2, offsetZ2, out, strideOut, offsetOut ) { // eslint-disable-line max-len - out[ offsetOut ] = z1[ offsetZ1 ] + z2[ offsetZ2 ]; - out[ offsetOut+strideOut ] = z1[ offsetZ1+strideZ1 ] + z2[ offsetZ2+strideZ2 ]; // eslint-disable-line max-len + out[ offsetOut ] = float64ToFloat32( z1[ offsetZ1 ] + z2[ offsetZ2 ] ); + out[ offsetOut+strideOut ] = float64ToFloat32( z1[ offsetZ1+strideZ1 ] + z2[ offsetZ2+strideZ2 ] ); // eslint-disable-line max-len return out; } diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.assign.js b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.assign.js new file mode 100644 index 000000000000..10af95f26bb6 --- /dev/null +++ b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.assign.js @@ -0,0 +1,132 @@ +/** +* @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 isSameFloat32Array = require( '@stdlib/assert/is-same-Float32Array' ); +var Float32Array = require( '@stdlib/array/float32' ); +var add = require( './../lib/assign.js' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof add, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function adds two complex numbers', function test( t ) { + var expected; + var out; + var v; + + out = new Float32Array( 2 ); + v = add( 5.0, 3.0, -2.0, 1.0, out, 1, 0 ); + + expected = new Float32Array( [ 3.0, 4.0 ] ); + + t.strictEqual( v, out, 'returns expected value' ); + t.strictEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); + + out = new Float32Array( 4 ); + v = add( 5.0, 3.0, -2.0, 1.0, out, 2, 0 ); + + expected = new Float32Array( [ 3.0, 0.0, 4.0, 0.0 ] ); + + t.strictEqual( v, out, 'returns expected value' ); + t.strictEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); + + out = new Float32Array( 4 ); + v = add( 5.0, 3.0, -2.0, 1.0, out, 2, 1 ); + + expected = new Float32Array( [ 0.0, 3.0, 0.0, 4.0 ] ); + + t.strictEqual( v, out, 'returns expected value' ); + t.strictEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); + + out = new Float32Array( 4 ); + v = add( 5.0, 3.0, -2.0, 1.0, out, -2, 3 ); + + expected = new Float32Array( [ 0.0, 4.0, 0.0, 3.0 ] ); + + t.strictEqual( v, out, 'returns expected value' ); + t.strictEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'if a real or imaginary component is `NaN`, the output component is `NaN`', function test( t ) { + var expected; + var out; + var v; + + out = new Float32Array( 2 ); + expected = new Float32Array( [ NaN, 4.0 ] ); + + v = add( NaN, 3.0, -2.0, 1.0, out, 1, 0 ); + t.strictEqual( v, out, 'returns expected value' ); + t.strictEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); + + out = new Float32Array( 2 ); + expected = new Float32Array( [ NaN, 4.0 ] ); + + v = add( 5.0, 3.0, NaN, 1.0, out, 1, 0 ); + t.strictEqual( v, out, 'returns expected value' ); + t.strictEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); + + out = new Float32Array( 2 ); + expected = new Float32Array( [ NaN, 4.0 ] ); + + v = add( NaN, 3.0, NaN, 1.0, out, 1, 0 ); + t.strictEqual( v, out, 'returns expected value' ); + t.strictEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); + + out = new Float32Array( 2 ); + expected = new Float32Array( [ 3.0, NaN ] ); + + v = add( 5.0, NaN, -2.0, 1.0, out, 1, 0 ); + t.strictEqual( v, out, 'returns expected value' ); + t.strictEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); + + out = new Float32Array( 2 ); + expected = new Float32Array( [ 3.0, NaN ] ); + + v = add( 5.0, 3.0, -2.0, NaN, out, 1, 0 ); + t.strictEqual( v, out, 'returns expected value' ); + t.strictEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); + + out = new Float32Array( 2 ); + expected = new Float32Array( [ 3.0, NaN ] ); + + v = add( 5.0, NaN, -2.0, NaN, out, 1, 0 ); + t.strictEqual( v, out, 'returns expected value' ); + t.strictEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); + + out = new Float32Array( 2 ); + expected = new Float32Array( [ NaN, NaN ] ); + + v = add( NaN, NaN, NaN, NaN, out, 1, 0 ); + t.strictEqual( v, out, 'returns expected value' ); + t.strictEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); + + t.end(); +}); \ No newline at end of file diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.js b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.js index 9bd2c4813402..b6267b0d0a85 100644 --- a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.js +++ b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.js @@ -21,10 +21,7 @@ // MODULES // var tape = require( 'tape' ); -var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); -var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/float32/real' ); -var imagf = require( '@stdlib/complex/float32/imag' ); +var isMethod = require( '@stdlib/assert/is-method' ); var add = require( './../lib' ); @@ -36,75 +33,14 @@ tape( 'main export is a function', function test( t ) { t.end(); }); -tape( 'the function adds two complex numbers', function test( t ) { - var z1; - var z2; - var v; - - z1 = new Complex64( 5.0, 3.0 ); - z2 = new Complex64( -2.0, 1.0 ); - - v = add( z1, z2 ); - - t.strictEqual( realf( v ), 3.0, 'returns expected value' ); - t.strictEqual( imagf( v ), 4.0, 'returns expected value' ); - +tape( 'attached to the main export is an `assign` method', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( isMethod( add, 'assign' ), true, 'returns expected value' ); t.end(); }); -tape( 'if a real or imaginary component is `NaN`, the resulting component is `NaN`', function test( t ) { - var z1; - var z2; - var v; - - z1 = new Complex64( NaN, 3.0 ); - z2 = new Complex64( -2.0, 1.0 ); - - v = add( z1, z2 ); - t.strictEqual( isnanf( realf( v ) ), true, 'returns expected value' ); - t.strictEqual( imagf( v ), 4.0, 'returns expected value' ); - - z1 = new Complex64( 5.0, 3.0 ); - z2 = new Complex64( NaN, 1.0 ); - - v = add( z1, z2 ); - t.strictEqual( isnanf( realf( v ) ), true, 'returns expected value' ); - t.strictEqual( imagf( v ), 4.0, 'returns expected value' ); - - z1 = new Complex64( NaN, 3.0 ); - z2 = new Complex64( NaN, 1.0 ); - - v = add( z1, z2 ); - t.strictEqual( isnanf( realf( v ) ), true, 'returns expected value' ); - t.strictEqual( imagf( v ), 4.0, 'returns expected value' ); - - z1 = new Complex64( 5.0, NaN ); - z2 = new Complex64( -2.0, 1.0 ); - - v = add( z1, z2 ); - t.strictEqual( realf( v ), 3.0, 'returns expected value' ); - t.strictEqual( isnanf( imagf( v ) ), true, 'returns expected value' ); - - z1 = new Complex64( 5.0, 3.0 ); - z2 = new Complex64( -2.0, NaN ); - - v = add( z1, z2 ); - t.strictEqual( realf( v ), 3.0, 'returns expected value' ); - t.strictEqual( isnanf( imagf( v ) ), true, 'returns expected value' ); - - z1 = new Complex64( 5.0, NaN ); - z2 = new Complex64( -2.0, NaN ); - - v = add( z1, z2 ); - t.strictEqual( realf( v ), 3.0, 'returns expected value' ); - t.strictEqual( isnanf( imagf( v ) ), true, 'returns expected value' ); - - z1 = new Complex64( NaN, NaN ); - z2 = new Complex64( NaN, NaN ); - - v = add( z1, z2 ); - t.strictEqual( isnanf( realf( v ) ), true, 'returns expected value' ); - t.strictEqual( isnanf( imagf( v ) ), true, 'returns expected value' ); - +tape( 'attached to the main export is a `strided` method', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( isMethod( add, 'strided' ), true, 'returns expected value' ); t.end(); -}); +}); \ No newline at end of file diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.main.js b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.main.js new file mode 100644 index 000000000000..fb1f0e6b62d7 --- /dev/null +++ b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.main.js @@ -0,0 +1,110 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2018 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 isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var Complex64 = require( '@stdlib/complex/float32/ctor' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); +var add = require( './../lib' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof add, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function adds two complex numbers', function test( t ) { + var z1; + var z2; + var v; + + z1 = new Complex64( 5.0, 3.0 ); + z2 = new Complex64( -2.0, 1.0 ); + + v = add( z1, z2 ); + + t.strictEqual( real( v ), 3.0, 'returns expected value' ); + t.strictEqual( imag( v ), 4.0, 'returns expected value' ); + + t.end(); +}); + +tape( 'if a real or imaginary component is `NaN`, the resulting component is `NaN`', function test( t ) { + var z1; + var z2; + var v; + + z1 = new Complex64( NaN, 3.0 ); + z2 = new Complex64( -2.0, 1.0 ); + + v = add( z1, z2 ); + t.strictEqual( isnanf( real( v ) ), true, 'returns expected value' ); + t.strictEqual( imag( v ), 4.0, 'returns expected value' ); + + z1 = new Complex64( 5.0, 3.0 ); + z2 = new Complex64( NaN, 1.0 ); + + v = add( z1, z2 ); + t.strictEqual( isnanf( real( v ) ), true, 'returns expected value' ); + t.strictEqual( imag( v ), 4.0, 'returns expected value' ); + + z1 = new Complex64( NaN, 3.0 ); + z2 = new Complex64( NaN, 1.0 ); + + v = add( z1, z2 ); + t.strictEqual( isnanf( real( v ) ), true, 'returns expected value' ); + t.strictEqual( imag( v ), 4.0, 'returns expected value' ); + + z1 = new Complex64( 5.0, NaN ); + z2 = new Complex64( -2.0, 1.0 ); + + v = add( z1, z2 ); + t.strictEqual( real( v ), 3.0, 'returns expected value' ); + t.strictEqual( isnanf( imag( v ) ), true, 'returns expected value' ); + + z1 = new Complex64( 5.0, 3.0 ); + z2 = new Complex64( -2.0, NaN ); + + v = add( z1, z2 ); + t.strictEqual( real( v ), 3.0, 'returns expected value' ); + t.strictEqual( isnanf( imag( v ) ), true, 'returns expected value' ); + + z1 = new Complex64( 5.0, NaN ); + z2 = new Complex64( -2.0, NaN ); + + v = add( z1, z2 ); + t.strictEqual( real( v ), 3.0, 'returns expected value' ); + t.strictEqual( isnanf( imag( v ) ), true, 'returns expected value' ); + + z1 = new Complex64( NaN, NaN ); + z2 = new Complex64( NaN, NaN ); + + v = add( z1, z2 ); + t.strictEqual( isnanf( real( v ) ), true, 'returns expected value' ); + t.strictEqual( isnanf( imag( v ) ), true, 'returns expected value' ); + + t.end(); +}); \ No newline at end of file diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.strided.js b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.strided.js new file mode 100644 index 000000000000..383acadbe2b4 --- /dev/null +++ b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.strided.js @@ -0,0 +1,158 @@ +/** +* @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 isSameFloat32Array = require( '@stdlib/assert/is-same-float32array' ); +var Float32Array = require( '@stdlib/array/float64' ); +var add = require( './../lib/strided.js' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.deepEqual( typeof add, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function adds two complex numbers', function test( t ) { + var expected; + var out; + var z1; + var z2; + var v; + + z1 = new Float32Array( [ 5.0, 3.0 ] ); + z2 = new Float32Array( [ -2.0, 1.0 ] ); + out = new Float32Array( 2 ); + v = add( z1, 1, 0, z2, 1, 0, out, 1, 0 ); + + expected = new Float32Array( [ 3.0, 4.0 ] ); + + t.deepEqual( v, out, 'returns expected value' ); + t.deepEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); + + z1 = new Float32Array( [ 5.0, 0.0, 3.0, 0.0 ] ); + z2 = new Float32Array( [ -2.0, 1.0 ] ); + out = new Float32Array( 4 ); + v = add( z1, 2, 0, z2, 1, 0, out, 2, 0 ); + + expected = new Float32Array( [ 3.0, 0.0, 4.0, 0.0 ] ); + console.log( v ); + t.deepEqual( v, out, 'returns expected value' ); + t.deepEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); + + z1 = new Float32Array( [ 5.0, 3.0 ] ); + z2 = new Float32Array( [ 0.0, -2.0, 0.0, 1.0 ] ); + out = new Float32Array( 4 ); + v = add( z1, 1, 0, z2, 2, 1, out, 2, 1 ); + + expected = new Float32Array( [ 0.0, 3.0, 0.0, 4.0 ] ); + + t.deepEqual( v, out, 'returns expected value' ); + t.deepEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); + + z1 = new Float32Array( [ 3.0, 5.0 ] ); + z2 = new Float32Array( [ 1.0, -2.0 ] ); + out = new Float32Array( 4 ); + v = add( z1, -1, 1, z2, -1, 1, out, -2, 3 ); + + expected = new Float32Array( [ 0.0, 4.0, 0.0, 3.0 ] ); + + t.deepEqual( v, out, 'returns expected value' ); + t.deepEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'if a real or imaginary component is `NaN`, the output component is `NaN`', function test( t ) { + var expected; + var out; + var z1; + var z2; + var v; + + z1 = new Float32Array( [ NaN, 3.0 ] ); + z2 = new Float32Array( [ -2.0, 1.0 ] ); + out = new Float32Array( 2 ); + expected = new Float32Array( [ NaN, 4.0 ] ); + + v = add( z1, 1, 0, z2, 1, 0, out, 1, 0 ); + t.deepEqual( v, out, 'returns expected value' ); + t.deepEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); + + z1 = new Float32Array( [ 5.0, 3.0 ] ); + z2 = new Float32Array( [ NaN, 1.0 ] ); + out = new Float32Array( 2 ); + expected = new Float32Array( [ NaN, 4.0 ] ); + + v = add( z1, 1, 0, z2, 1, 0, out, 1, 0 ); + t.deepEqual( v, out, 'returns expected value' ); + t.deepEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); + + z1 = new Float32Array( [ NaN, 3.0 ] ); + z2 = new Float32Array( [ NaN, 1.0 ] ); + out = new Float32Array( 2 ); + expected = new Float32Array( [ NaN, 4.0 ] ); + + v = add( z1, 1, 0, z2, 1, 0, out, 1, 0 ); + t.deepEqual( v, out, 'returns expected value' ); + t.deepEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); + + z1 = new Float32Array( [ 5.0, NaN ] ); + z2 = new Float32Array( [ -2.0, 1.0 ] ); + out = new Float32Array( 2 ); + expected = new Float32Array( [ 3.0, NaN ] ); + + v = add( z1, 1, 0, z2, 1, 0, out, 1, 0 ); + t.deepEqual( v, out, 'returns expected value' ); + t.deepEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); + + z1 = new Float32Array( [ 5.0, 3.0 ] ); + z2 = new Float32Array( [ -2.0, NaN ] ); + out = new Float32Array( 2 ); + expected = new Float32Array( [ 3.0, NaN ] ); + + v = add( z1, 1, 0, z2, 1, 0, out, 1, 0 ); + t.deepEqual( v, out, 'returns expected value' ); + t.deepEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); + + z1 = new Float32Array( [ 5.0, NaN ] ); + z2 = new Float32Array( [ -2.0, NaN ] ); + out = new Float32Array( 2 ); + expected = new Float32Array( [ 3.0, NaN ] ); + + v = add( z1, 1, 0, z2, 1, 0, out, 1, 0 ); + t.deepEqual( v, out, 'returns expected value' ); + t.deepEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); + + z1 = new Float32Array( [ NaN, NaN ] ); + z2 = new Float32Array( [ NaN, NaN ] ); + out = new Float32Array( 2 ); + expected = new Float32Array( [ NaN, NaN ] ); + + v = add( z1, 1, 0, z2, 1, 0, out, 1, 0 ); + t.deepEqual( v, out, 'returns expected value' ); + t.deepEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); + + t.end(); +}); \ No newline at end of file From 36f1bceaf6557d3162f91c92afbc12742708ae71 Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Wed, 19 Feb 2025 23:02:02 +0530 Subject: [PATCH 03/18] docs: files completed --- lib/node_modules/@stdlib/complex/float32/base/add/README.md | 0 .../complex/float32/base/add/benchmark/benchmark.asssign.js | 0 .../@stdlib/complex/float32/base/add/benchmark/benchmark.js | 0 .../complex/float32/base/add/benchmark/benchmark.native.js | 0 .../complex/float32/base/add/benchmark/benchmark.strided.js | 0 .../@stdlib/complex/float32/base/add/benchmark/c/Makefile | 0 .../@stdlib/complex/float32/base/add/benchmark/c/benchmark.c | 0 .../@stdlib/complex/float32/base/add/benchmark/c/native/Makefile | 0 .../complex/float32/base/add/benchmark/c/native/benchmark.c | 0 .../@stdlib/complex/float32/base/add/benchmark/julia/REQUIRE | 0 lib/node_modules/@stdlib/complex/float32/base/add/binding.gyp | 0 lib/node_modules/@stdlib/complex/float32/base/add/docs/repl.txt | 0 .../@stdlib/complex/float32/base/add/docs/types/index.d.ts | 0 .../@stdlib/complex/float32/base/add/docs/types/test.ts | 0 .../@stdlib/complex/float32/base/add/examples/c/Makefile | 0 .../@stdlib/complex/float32/base/add/examples/c/example.c | 0 .../@stdlib/complex/float32/base/add/examples/index.js | 0 lib/node_modules/@stdlib/complex/float32/base/add/include.gypi | 0 .../float32/base/add/include/stdlib/complex/float32/base/add.h | 0 lib/node_modules/@stdlib/complex/float32/base/add/lib/assign.js | 0 lib/node_modules/@stdlib/complex/float32/base/add/lib/index.js | 0 lib/node_modules/@stdlib/complex/float32/base/add/lib/main.js | 0 lib/node_modules/@stdlib/complex/float32/base/add/lib/native.js | 0 lib/node_modules/@stdlib/complex/float32/base/add/lib/strided.js | 0 lib/node_modules/@stdlib/complex/float32/base/add/manifest.json | 0 lib/node_modules/@stdlib/complex/float32/base/add/package.json | 0 lib/node_modules/@stdlib/complex/float32/base/add/src/Makefile | 0 lib/node_modules/@stdlib/complex/float32/base/add/src/addon.c | 0 lib/node_modules/@stdlib/complex/float32/base/add/src/main.c | 0 .../@stdlib/complex/float32/base/add/test/test.assign.js | 0 lib/node_modules/@stdlib/complex/float32/base/add/test/test.js | 0 .../@stdlib/complex/float32/base/add/test/test.main.js | 0 .../@stdlib/complex/float32/base/add/test/test.native.js | 0 .../@stdlib/complex/float32/base/add/test/test.strided.js | 0 34 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/README.md mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.asssign.js mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.js mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.native.js mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.strided.js mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/benchmark/c/Makefile mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/benchmark/c/benchmark.c mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/benchmark/c/native/Makefile mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/benchmark/c/native/benchmark.c mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/benchmark/julia/REQUIRE mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/binding.gyp mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/docs/repl.txt mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/docs/types/index.d.ts mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/docs/types/test.ts mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/examples/c/Makefile mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/examples/c/example.c mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/examples/index.js mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/include.gypi mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/include/stdlib/complex/float32/base/add.h mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/lib/assign.js mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/lib/index.js mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/lib/main.js mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/lib/native.js mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/lib/strided.js mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/manifest.json mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/package.json mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/src/Makefile mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/src/addon.c mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/src/main.c mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/test/test.assign.js mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/test/test.js mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/test/test.main.js mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/test/test.native.js mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/test/test.strided.js diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/README.md b/lib/node_modules/@stdlib/complex/float32/base/add/README.md old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.asssign.js b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.asssign.js old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.js b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.js old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.native.js old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.strided.js b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.strided.js old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/c/Makefile b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/c/Makefile old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/c/benchmark.c old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/c/native/Makefile b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/c/native/Makefile old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/c/native/benchmark.c old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/julia/REQUIRE b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/julia/REQUIRE old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/binding.gyp b/lib/node_modules/@stdlib/complex/float32/base/add/binding.gyp old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/docs/repl.txt b/lib/node_modules/@stdlib/complex/float32/base/add/docs/repl.txt old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/docs/types/index.d.ts b/lib/node_modules/@stdlib/complex/float32/base/add/docs/types/index.d.ts old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/docs/types/test.ts b/lib/node_modules/@stdlib/complex/float32/base/add/docs/types/test.ts old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/examples/c/Makefile b/lib/node_modules/@stdlib/complex/float32/base/add/examples/c/Makefile old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/examples/c/example.c b/lib/node_modules/@stdlib/complex/float32/base/add/examples/c/example.c old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/examples/index.js b/lib/node_modules/@stdlib/complex/float32/base/add/examples/index.js old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/include.gypi b/lib/node_modules/@stdlib/complex/float32/base/add/include.gypi old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/include/stdlib/complex/float32/base/add.h b/lib/node_modules/@stdlib/complex/float32/base/add/include/stdlib/complex/float32/base/add.h old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/lib/assign.js b/lib/node_modules/@stdlib/complex/float32/base/add/lib/assign.js old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/lib/index.js b/lib/node_modules/@stdlib/complex/float32/base/add/lib/index.js old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/lib/main.js b/lib/node_modules/@stdlib/complex/float32/base/add/lib/main.js old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/lib/native.js b/lib/node_modules/@stdlib/complex/float32/base/add/lib/native.js old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/lib/strided.js b/lib/node_modules/@stdlib/complex/float32/base/add/lib/strided.js old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/manifest.json b/lib/node_modules/@stdlib/complex/float32/base/add/manifest.json old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/package.json b/lib/node_modules/@stdlib/complex/float32/base/add/package.json old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/src/Makefile b/lib/node_modules/@stdlib/complex/float32/base/add/src/Makefile old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/src/addon.c b/lib/node_modules/@stdlib/complex/float32/base/add/src/addon.c old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/src/main.c b/lib/node_modules/@stdlib/complex/float32/base/add/src/main.c old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.assign.js b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.assign.js old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.js b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.js old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.main.js b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.main.js old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.native.js b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.native.js old mode 100644 new mode 100755 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.strided.js b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.strided.js old mode 100644 new mode 100755 From bef5c38688285f2ec3f63fac9875baee99a5c918 Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Wed, 19 Feb 2025 17:34:09 +0000 Subject: [PATCH 04/18] chore: update copyright years --- .../@stdlib/complex/float32/base/add/test/test.main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.main.js b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.main.js index fb1f0e6b62d7..56d30ef98aee 100755 --- a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.main.js +++ b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.main.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2018 The Stdlib Authors. +* 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. From e2db89fc77b8cb95643eb71a255c3ab0891f7c43 Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Wed, 19 Feb 2025 23:06:03 +0530 Subject: [PATCH 05/18] fix: update test.strided.js --- .../@stdlib/complex/float32/base/add/test/test.strided.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.strided.js b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.strided.js index 383acadbe2b4..2fa26c251889 100755 --- a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.strided.js +++ b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.strided.js @@ -57,7 +57,6 @@ tape( 'the function adds two complex numbers', function test( t ) { v = add( z1, 2, 0, z2, 1, 0, out, 2, 0 ); expected = new Float32Array( [ 3.0, 0.0, 4.0, 0.0 ] ); - console.log( v ); t.deepEqual( v, out, 'returns expected value' ); t.deepEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); From 6bec2349e0b3af483394f1ec2085cc180d9d773b Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Wed, 19 Feb 2025 23:07:21 +0530 Subject: [PATCH 06/18] fix: update test.strided.js Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- .../@stdlib/complex/float32/base/add/test/test.strided.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.strided.js b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.strided.js index 383acadbe2b4..f734d80554b8 100755 --- a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.strided.js +++ b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.strided.js @@ -57,7 +57,6 @@ tape( 'the function adds two complex numbers', function test( t ) { v = add( z1, 2, 0, z2, 1, 0, out, 2, 0 ); expected = new Float32Array( [ 3.0, 0.0, 4.0, 0.0 ] ); - console.log( v ); t.deepEqual( v, out, 'returns expected value' ); t.deepEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); @@ -155,4 +154,4 @@ tape( 'if a real or imaginary component is `NaN`, the output component is `NaN`' t.deepEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); t.end(); -}); \ No newline at end of file +}); From 4d5b8f9276d08a6392ae6d05bcbefcf91540d0b9 Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Thu, 20 Feb 2025 00:32:55 +0530 Subject: [PATCH 07/18] fix: update test.assign.js Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- .../@stdlib/complex/float32/base/add/test/test.assign.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.assign.js b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.assign.js index 10af95f26bb6..07af96668e07 100755 --- a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.assign.js +++ b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.assign.js @@ -21,7 +21,7 @@ // MODULES // var tape = require( 'tape' ); -var isSameFloat32Array = require( '@stdlib/assert/is-same-Float32Array' ); +var isSameFloat32Array = require( '@stdlib/assert/is-same-lfoat32array' ); var Float32Array = require( '@stdlib/array/float32' ); var add = require( './../lib/assign.js' ); @@ -129,4 +129,4 @@ tape( 'if a real or imaginary component is `NaN`, the output component is `NaN`' t.strictEqual( isSameFloat32Array( out, expected ), true, 'returns expected value' ); t.end(); -}); \ No newline at end of file +}); From b1de61dc338bf8434dd5e814a2a5e568592f5485 Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Thu, 20 Feb 2025 00:39:58 +0530 Subject: [PATCH 08/18] fix: update test.assign.js Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- .../@stdlib/complex/float32/base/add/test/test.assign.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.assign.js b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.assign.js index 07af96668e07..81a983778978 100755 --- a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.assign.js +++ b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.assign.js @@ -21,7 +21,7 @@ // MODULES // var tape = require( 'tape' ); -var isSameFloat32Array = require( '@stdlib/assert/is-same-lfoat32array' ); +var isSameFloat32Array = require( '@stdlib/assert/is-same-float32array' ); var Float32Array = require( '@stdlib/array/float32' ); var add = require( './../lib/assign.js' ); From 6de04493f18f9d2a5b851cb591d842c5573346d1 Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Thu, 20 Feb 2025 12:27:16 +0530 Subject: [PATCH 09/18] fix: update test.strided.js Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- .../@stdlib/complex/float32/base/add/test/test.strided.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.strided.js b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.strided.js index f734d80554b8..28544176f150 100755 --- a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.strided.js +++ b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.strided.js @@ -22,7 +22,7 @@ var tape = require( 'tape' ); var isSameFloat32Array = require( '@stdlib/assert/is-same-float32array' ); -var Float32Array = require( '@stdlib/array/float64' ); +var Float32Array = require( '@stdlib/array/float32' ); var add = require( './../lib/strided.js' ); From 57194890fb508963b6d9a3dc7cfdf695a0667664 Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Thu, 20 Feb 2025 07:06:32 +0000 Subject: [PATCH 10/18] fix: resolve lint errors --- .../@stdlib/complex/float32/base/add/README.md | 14 -------------- .../base/add/benchmark/benchmark.asssign.js | 2 +- .../base/add/benchmark/benchmark.strided.js | 2 +- .../@stdlib/complex/float32/base/add/lib/assign.js | 2 +- .../complex/float32/base/add/lib/strided.js | 2 +- .../@stdlib/complex/float32/base/add/test/test.js | 2 +- .../complex/float32/base/add/test/test.main.js | 2 +- 7 files changed, 6 insertions(+), 20 deletions(-) mode change 100755 => 100644 lib/node_modules/@stdlib/complex/float32/base/add/README.md diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/README.md b/lib/node_modules/@stdlib/complex/float32/base/add/README.md old mode 100755 new mode 100644 index ef310ca78d49..b96be8c893e6 --- a/lib/node_modules/@stdlib/complex/float32/base/add/README.md +++ b/lib/node_modules/@stdlib/complex/float32/base/add/README.md @@ -261,14 +261,6 @@ int main( void ) { @@ -279,12 +271,6 @@ int main( void ) { -[@stdlib/complex/float64/base/add]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/complex/float64/base/add - -[@stdlib/complex/float32/base/mul]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/complex/float32/base/mul - -[@stdlib/math/base/ops/csubf]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/ops/csubf - diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.asssign.js b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.asssign.js index e8f42f99dc54..a10dba181bef 100755 --- a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.asssign.js +++ b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.asssign.js @@ -67,4 +67,4 @@ bench( pkg+':assign', function benchmark( b ) { } b.pass( 'benchmark finished' ); b.end(); -}); \ No newline at end of file +}); diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.strided.js b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.strided.js index a349a4f61936..6c058f37c9cb 100755 --- a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.strided.js +++ b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.strided.js @@ -65,4 +65,4 @@ bench( pkg+':strided', function benchmark( b ) { } b.pass( 'benchmark finished' ); b.end(); -}); \ No newline at end of file +}); diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/lib/assign.js b/lib/node_modules/@stdlib/complex/float32/base/add/lib/assign.js index bdf3260ceaf3..f02833a32252 100755 --- a/lib/node_modules/@stdlib/complex/float32/base/add/lib/assign.js +++ b/lib/node_modules/@stdlib/complex/float32/base/add/lib/assign.js @@ -52,4 +52,4 @@ function assign( re1, im1, re2, im2, out, strideOut, offsetOut ) { // EXPORTS // -module.exports = assign; \ No newline at end of file +module.exports = assign; diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/lib/strided.js b/lib/node_modules/@stdlib/complex/float32/base/add/lib/strided.js index 6c86067df6f5..2434c820f289 100755 --- a/lib/node_modules/@stdlib/complex/float32/base/add/lib/strided.js +++ b/lib/node_modules/@stdlib/complex/float32/base/add/lib/strided.js @@ -57,4 +57,4 @@ function strided( z1, strideZ1, offsetZ1, z2, strideZ2, offsetZ2, out, strideOut // EXPORTS // -module.exports = strided; \ No newline at end of file +module.exports = strided; diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.js b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.js index b6267b0d0a85..2fd75094c8a3 100755 --- a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.js +++ b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.js @@ -43,4 +43,4 @@ tape( 'attached to the main export is a `strided` method', function test( t ) { t.ok( true, __filename ); t.strictEqual( isMethod( add, 'strided' ), true, 'returns expected value' ); t.end(); -}); \ No newline at end of file +}); diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.main.js b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.main.js index 56d30ef98aee..9d2e13c1eff0 100755 --- a/lib/node_modules/@stdlib/complex/float32/base/add/test/test.main.js +++ b/lib/node_modules/@stdlib/complex/float32/base/add/test/test.main.js @@ -107,4 +107,4 @@ tape( 'if a real or imaginary component is `NaN`, the resulting component is `Na t.strictEqual( isnanf( imag( v ) ), true, 'returns expected value' ); t.end(); -}); \ No newline at end of file +}); From bebfcb04588ba0311c6d4264a7879fd395b0f48c Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 22 Feb 2025 04:09:20 -0800 Subject: [PATCH 11/18] Apply suggestions from code review Signed-off-by: Athan --- .../@stdlib/complex/float32/base/add/README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/README.md b/lib/node_modules/@stdlib/complex/float32/base/add/README.md index b96be8c893e6..ef310ca78d49 100644 --- a/lib/node_modules/@stdlib/complex/float32/base/add/README.md +++ b/lib/node_modules/@stdlib/complex/float32/base/add/README.md @@ -261,6 +261,14 @@ int main( void ) { @@ -271,6 +279,12 @@ int main( void ) { +[@stdlib/complex/float64/base/add]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/complex/float64/base/add + +[@stdlib/complex/float32/base/mul]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/complex/float32/base/mul + +[@stdlib/math/base/ops/csubf]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/ops/csubf + From 36986fd735c732fb6934bafbcf7462eac5c00c67 Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Sat, 22 Feb 2025 18:40:55 +0530 Subject: [PATCH 12/18] fix: rename benchmark.assign.js Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- .../add/benchmark/{benchmark.asssign.js => benchmark.assign.js} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename lib/node_modules/@stdlib/complex/float32/base/add/benchmark/{benchmark.asssign.js => benchmark.assign.js} (100%) diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.asssign.js b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.assign.js similarity index 100% rename from lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.asssign.js rename to lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.assign.js From 87e75b3936315376ee41e15fde4c9b6fc3ce219b Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Sat, 22 Feb 2025 19:05:02 +0530 Subject: [PATCH 13/18] fix: updated file permissions --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- From f6d17f3c465dab1e102819326d0464e0233ba30b Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Sat, 22 Feb 2025 19:13:21 +0530 Subject: [PATCH 14/18] fix: updated file permissions --- 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 --- --- 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: passed - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: passed - task: run_julia_benchmarks status: failed --- --- 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: passed - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: passed - task: run_julia_benchmarks status: passed - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests 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: passed - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: passed - task: run_julia_benchmarks status: passed - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: passed --- --- .../@stdlib/complex/float32/base/add/benchmark/julia/benchmark.jl | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 lib/node_modules/@stdlib/complex/float32/base/add/benchmark/julia/benchmark.jl diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/julia/benchmark.jl b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/julia/benchmark.jl old mode 100755 new mode 100644 From d22cd19e150ce08048ab66c9a0383ec2c2801148 Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Sat, 22 Feb 2025 19:23:09 +0530 Subject: [PATCH 15/18] fix: updated file permissions --- 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 --- --- 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: passed - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: passed - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: passed --- --- .../@stdlib/complex/float32/base/add/benchmark/julia/benchmark.jl | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 lib/node_modules/@stdlib/complex/float32/base/add/benchmark/julia/benchmark.jl diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/julia/benchmark.jl b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/julia/benchmark.jl old mode 100644 new mode 100755 From fcc8072bd338221f2f2693d1b6b748611316ee88 Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Sun, 23 Feb 2025 11:02:42 +0530 Subject: [PATCH 16/18] fix: changed permissions --- .../complex/float32/base/add/benchmark/benchmark.assign.js | 0 .../@stdlib/complex/float32/base/add/benchmark/benchmark.js | 0 .../complex/float32/base/add/benchmark/benchmark.native.js | 0 .../complex/float32/base/add/benchmark/benchmark.strided.js | 0 4 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.assign.js mode change 100755 => 100644 lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.js mode change 100755 => 100644 lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.native.js mode change 100755 => 100644 lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.strided.js diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.assign.js b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.assign.js old mode 100755 new mode 100644 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.js b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.js old mode 100755 new mode 100644 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.native.js old mode 100755 new mode 100644 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.strided.js b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/benchmark.strided.js old mode 100755 new mode 100644 From f128e2a7257a2661401bf3abab7125db5717f121 Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Sun, 23 Feb 2025 11:07:19 +0530 Subject: [PATCH 17/18] fix: changed permissions --- .../@stdlib/complex/float32/base/add/benchmark/c/Makefile | 0 .../@stdlib/complex/float32/base/add/benchmark/c/benchmark.c | 0 2 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 lib/node_modules/@stdlib/complex/float32/base/add/benchmark/c/Makefile mode change 100755 => 100644 lib/node_modules/@stdlib/complex/float32/base/add/benchmark/c/benchmark.c diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/c/Makefile b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/c/Makefile old mode 100755 new mode 100644 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/c/benchmark.c old mode 100755 new mode 100644 From 70c96a1d409a0312f477dcce98a8638f55677c28 Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Sun, 23 Feb 2025 11:11:15 +0530 Subject: [PATCH 18/18] fix: changed permissions --- .../@stdlib/complex/float32/base/add/benchmark/c/native/Makefile | 0 .../complex/float32/base/add/benchmark/c/native/benchmark.c | 0 2 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 lib/node_modules/@stdlib/complex/float32/base/add/benchmark/c/native/Makefile mode change 100755 => 100644 lib/node_modules/@stdlib/complex/float32/base/add/benchmark/c/native/benchmark.c diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/c/native/Makefile b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/c/native/Makefile old mode 100755 new mode 100644 diff --git a/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/complex/float32/base/add/benchmark/c/native/benchmark.c old mode 100755 new mode 100644