From 36fac40529ef0b91880a1915e953a0f8854336a0 Mon Sep 17 00:00:00 2001 From: Neerajpathak07 Date: Sun, 24 Nov 2024 01:20:51 +0530 Subject: [PATCH 01/15] feat: add implementation for array/base/broadcasted-quinary3d --- .../base/broadcasted-quinary3d/README.md | 159 +++++++++ .../benchmark/benchmark.js | 150 ++++++++ .../base/broadcasted-quinary3d/docs/repl.txt | 32 ++ .../docs/types/index.d.ts | 127 +++++++ .../broadcasted-quinary3d/docs/types/test.ts | 125 +++++++ .../examples/examples.js | 58 +++ .../base/broadcasted-quinary3d/lib/index.js | 64 ++++ .../base/broadcasted-quinary3d/lib/main.js | 222 ++++++++++++ .../base/broadcasted-quinary3d/package.json | 67 ++++ .../base/broadcasted-quinary3d/test/test.js | 329 ++++++++++++++++++ 10 files changed, 1333 insertions(+) create mode 100644 lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md create mode 100644 lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/examples/examples.js create mode 100644 lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/index.js create mode 100644 lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/main.js create mode 100644 lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/package.json create mode 100644 lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/test/test.js diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md new file mode 100644 index 000000000000..d8152aac3529 --- /dev/null +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md @@ -0,0 +1,159 @@ + + +# bquinary3d + +> Apply a quinary callback to elements in four [broadcasted][@stdlib/array/base/broadcast-array] nested input arrays and assign results to elements in a three-dimensional nested output array. + +
+ +
+ + + +
+ +## Usage + +```javascript +var bquinary3d = require( '@stdlib/array/base/broadcasted-quinary2d' ); +``` + +#### bquinary3d( arrays, shapes, fcn ) + +Applies a quinary callback to elements in four [broadcasted][@stdlib/array/base/broadcast-array] nested input arrays and assigns results to elements in a three-dimensional nested output array. + +```javascript +var zero32d = require( '@stdlib/array/base/zeros3d' ); + +function add( x, y, z, w, v ) { + return x + y + z + w + v; +} + +var x = [ [ [ 1.0, 2.0 ] ] ]; +var y = [ [ [ 3.0 ], [ 4.0 ] ] ]; +var z = [ [ [ 5.0 ] ] ]; +var w = [ [ [ 2.0 ] ] ]; +var v = [ [ [ 1.0 ] ] ]; +var out = zeros3d( [ 2, 2, 2 ] ); + +var shapes = [ + [ 1, 2, 1 ], + [ 2, 1, 1 ], + [ 1, 1, 1 ], + [ 2, 2, 1 ], + [ 1, 1, 2 ], + [ 2, 2, 2 ] +]; + +bquinary3d( [ x, y, z, w, v, out ], shapes, add ); +// out => [ [ [ 12.0, 13.0 ], [ 13.0, 14.0 ] ] 3 +``` + +The function accepts the following arguments: + +- **arrays**: array-like object containing five input nested arrays and one output nested array. +- **shapes**: array shapes. +- **fcn**: quinary function to apply. + +
+ + + +
+ +## Notes + +- The input and output array shapes must be broadcast [compatible][@stdlib/ndarray/base/broadcast-shapes]. + +
+ + + +
+ +## Examples + + + +```javascript +var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; +var filled3dBy = require( '@stdlib/array/base/filled3d-by' ); +var zeros3d = require( '@stdlib/array/base/zeros3d' ); +var bquinary3d = require( '@stdlib/array/base/broadcasted-quinary3d' ); + +function add( x, y, z, w, v ) { + return x + y + z + w + v; +} + +var shapes = [ + [ 1, 3, 1 ], + [ 3, 1, 1 ], + [ 1, 1, 3 ], + [ 3, 3, 1 ], + [ 1, 3, 3 ], + [ 3, 3, 3 ] +]; + +var x = filled3dBy( shapes[ 0 ], discreteUniform( -100, 100 ) ); +console.log( x ); + +var y = filled3dBy( shapes[ 1 ], discreteUniform( -100, 100 ) ); +console.log( y ); + +var z = filled3dBy( shapes[ 2 ], discreteUniform( -100, 100 ) ); +console.log( z ); + +var w = filled3dBy( shapes[ 3 ], discreteUniform( -100, 100 ) ); +console.log( w ); + +var v = filled3dBy( shapes[ 4 ], discreteUniform( -100, 100 ) ); +console.log( v ); + +var out = zeros3d( shapes[ 5 ] ); +console.log( out ); + +bquinary3d( [ x, y, z, w, v, out ], shapes, add ); +console.log( out ); +``` + +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/benchmark/benchmark.js new file mode 100644 index 000000000000..004c7389e6c2 --- /dev/null +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/benchmark/benchmark.js @@ -0,0 +1,150 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/base/uniform' ).factory; +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var pow = require( '@stdlib/math/base/special/pow' ); +var floor = require( '@stdlib/math/base/special/floor' ); +var filled3dBy = require( '@stdlib/array/base/filled3d-by' ); +var zeros3d = require( '@stdlib/array/base/zeros3d' ); +var numel = require( '@stdlib/ndarray/base/numel' ); +var pkg = require( './../package.json' ).name; +var bquinary3d = require( './../lib' ); + + +// FUNCTIONS // + +/** +* Returns the sum. +* +* @private +* @param {number} x - first value +* @param {number} y - second value +* @param {number} z - third value +* @param {number} w - fourth value +* @param {number} v - fifth value +* @returns {number} sum +*/ +function add( x, y, z, w, v ) { + return x + y + z + w + v; +} + +/** +* Creates a benchmark function. +* +* @private +* @param {PositiveIntegerArray} shape - output array shape +* @returns {Function} benchmark function +*/ +function createBenchmark( shape ) { + var arrays; + var shapes; + var out; + var x; + var y; + var z; + var w; + var v; + + shapes = [ + [ 1, 1, shape[ 2 ] ], + [ 1, shape[ 1 ], 1 ], + [ 1, 1, shape[ 0 ] ], + [ 1, 1, 1 ], + [ shape[ 0 ], shape[ 1 ], shape[ 2 ] ], + shape + ]; + x = filled3dBy( shapes[ 0 ], uniform( -100.0, 100.0 ) ); + y = filled3dBy( shapes[ 1 ], uniform( -100.0, 100.0 ) ); + z = filled3dBy( shapes[ 2 ], uniform( -100.0, 100.0 ) ); + w = filled3dBy( shapes[ 3 ], uniform( -100.0, 100.0 ) ); + v = filled3dBy( shapes[ 4 ], uniform( -100.0, 100.0 ) ); + out = zeros3d( shapes[ 5 ] ); + + arrays = [ x, y, z, w, v, out ]; + + return benchmark; + + /** + * Benchmark function. + * + * @private + * @param {Benchmark} b - benchmark instance + */ + function benchmark( b ) { + var i0; + var i1; + var i2; + var i; + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + bquinary3d( arrays, shapes, add ); + i2 = i % shapes[ 1 ][ 0 ]; + i1 = i % shapes[ 1 ][ 1 ]; + i0 = i % shapes[ 1 ][ 2 ]; + if ( isnan( arrays[ 5 ][ i2 ][ i1 ][ i0 ] ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + + i2 = i % shapes[ 1 ][ 0 ]; + i1 = i % shapes[ 1 ][ 1 ]; + i0 = i % shapes[ 1 ][ 2 ]; + if ( isnan( arrays[ 5 ][ i2 ][ i1 ][ i0 ] ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); + } +} + + +// MAIN // + +/** +* Main execution sequence. +* +* @private +*/ +function main() { + var min; + var max; + var sh; + var N; + var f; + var i; + + min = 1; // 10^min + max = 6; // 10^max + + for ( i = min; i <= max; i++ ) { + N = floor( pow( pow( 10, i ), 1.0/3.0 ) ); + sh = [ N, N, N ]; + f = createBenchmark( sh ); + bench( pkg+'::square_matrix:size='+numel( sh ), f ); + } +} + +main(); \ No newline at end of file diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt new file mode 100644 index 000000000000..05209d65ea4c --- /dev/null +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt @@ -0,0 +1,32 @@ +{{alias}}( arrays, shapes, fcn ) + Applies a quinary callback to elements in five broadcasted input arrays + and assigns results to elements in a three-dimensional nested output array. + + Parameters + ---------- + arrays: ArrayLikeObject + Array-like object containing five input nested arrays and one output + nested array. + + shapes: Array> + Array shapes. + + fcn: Function + Quinary callback. + + Examples + -------- + > function fcn( x, y, z, w, v ) { return x + y + z + w + v; }; + > var x = [ 1.0, 2.0 ]; + > var y = [ [ [ 3.0 ], [ 4.0 ] ] ]; + > var z = [ [ [ 1.0 ] ] ]; + > var w = [ 2.0 ]; + > var v = [ 1.0 ]; + > var out = [ [ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ] ]; + > var shapes = [ [ 2 ], [ 2, 1, 1 ] [ 1, 2, 2 ], [ 1, 1, 2 ], [ 1 ], [ 1, 2, 1 ], [ 2, 2, 2 ] ]; + > {{alias}}( [ x, y, z, w, v, out ], shapes, fcn ); + > out + [ [ [ 8.0, 9.0 ], [ 9.0, 10.0 ] ] ] + + See Also + -------- diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/index.d.ts b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/index.d.ts new file mode 100644 index 000000000000..3a6cafcafdda --- /dev/null +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/index.d.ts @@ -0,0 +1,127 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +// TypeScript Version: 4.1 + +/// + +import { Array1D, Array2D, Array3D } from '@stdlib/types/array'; +import { Shape1D, Shape2D, Shape3D } from '@stdlib/types/ndarray'; + +/** +* Quinary callback. +* +* @param v1 - element from first input array +* @param v2 - element from second input array +* @param v3 - element from third input array +* @param v4 - element from fourth input array +* @param v5 - element from fifth input array +* @returns result +*/ +type Quinary = ( v1: T, v2: U, v3: V, v4: W, v5: X ) => Y; + +/** +* Input array. +*/ +type InputArray = Array1D | Array2D | Array3D; + +/** +* Input array shape. +*/ +type InputArrayShape = Shape1D | Shape2D | Shape3D; + +/** +* Output array. +*/ +type OutputArray = Array3D; + +/** +* Output array shape. +*/ +type OutputArrayShape = Shape3D; + +/** +* Input and output arrays. +*/ +type InOutArrays = [ + InputArray, + InputArray, + InputArray, + InputArray, + InputArray, + OutputArray +]; + +/** +* Input and output array shapes. +*/ +type InOutShapes = [ + InputArrayShape, + InputArrayShape, + InputArrayShape, + InputArrayShape, + InputArrayShape, + OutputArrayShape +]; + +/** +* Applies a quinary callback to elements in five broadcasted input arrays and assigns results to elements in a three-dimensional nested output array. +* +* ## Notes +* +* - The input array shapes must be broadcast compatible with the output array shape. +* +* @param arrays - array containing five input nested arrays and one output nested array +* @param shapes - array shapes +* @param fcn - quinary callback +* +* @example +* var ones3d = require( '@stdlib/array/base/ones3d' ); +* var zeros3d = require( '@stdlib/array/base/zeros3d' ); +* +* function add( x, y, z, w, v ) { +* return x + y + z + w + v; +* } +* +* var shapes = [ +* [ 1, 2, 1 ], +* [ 2, 1, 1 ], +* [ 1, 1, 1 ], +* [ 2, 2, 1 ], +* [ 1, 1, 2 ], +* [ 2, 2, 2 ] +* ]; +* +* var x = ones3d( shapes[ 0 ] ); +* var y = ones3d( shapes[ 1 ] ); +* var z = ones3d( shapes[ 2 ] ); +* var w = ones3d( shapes[ 3 ] ); +* var v = ones3d( shapes[ 4 ] ); +* var out = zeros3d( shapes[ 5 ] ); +* +* bquinary3d( [ x, y, z, w, v, out ], shapes, add ); +* +* console.log( out ); +* // => [ [ [ 5.0, 5.0 ], [ 5.0, 5.0 ] ] ] +*/ +declare function bquinary3d( arrays: InOutArrays, shapes: InOutShapes, fcn: Quinary ): void; + + +// EXPORTS // + +export = bquinary3d; diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/test.ts b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/test.ts new file mode 100644 index 000000000000..3fa6f71320fb --- /dev/null +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/test.ts @@ -0,0 +1,125 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import bquinary3d = require( './index' ); + +/** +* Quinary function. +* +* @param x - input value +* @param y - input value +* @param z - input value +* @param w - input value +* @param v - input value +* @returns result +*/ +function fcn( x: number, y: number, z: number, w: number, v: number ): number { + return x + y + z + w + v; +} + +/** +* List of input and output array shapes. +*/ +type InOutShapes = [ Array, Array, Array, Array, Array, Array ]; + + +// TESTS // + +// The function returns undefined... +{ + const x = [ [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ] ]; + const y = [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ]; + const z = [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ]; + const w = [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ]; + const v = [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ]; + const out = [ [ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ] ]; + + const shapes: InOutShapes = [ [ [ 2, 2, 2 ], [ 2, 2, 2 ], [ 2, 2, 2 ], [ 2, 2, 2 ], [ 2, 2 ,2 ], [ 2, 2, 2 ] ] ]; + + bquinary3d( [ x, y, z, w, v, out ], shapes, fcn ); // $ExpectType void + bquinary3d( [ x[ 0 ], y, z, w, v, out ], [ [ shapes[ 0 ][ 1 ][ 2 ], shapes[ 1 ], shapes[ 2 ], ] shapes[ 3 ], shapes[ 4 ], shapes[ 5 ] ], fcn ); // $ExpectType void +} + +// The compiler throws an error if the function is provided a first argument which is not an array of nested arrays... +{ + const shapes: InOutShapes = [ [ [ 2, 2, 2 ] , [ 2, 2, 2 ], [ 2, 2, 2 ], [ 2, 2, 2 ], [ 2, 2, 2 ], [ 2, 2, 2 ] ] ]; + + bquinary3d( 'abc', shapes, fcn ); // $ExpectError + bquinary3d( 3.14, shapes, fcn ); // $ExpectError + bquinary3d( true, shapes, fcn ); // $ExpectError + bquinary3d( false, shapes, fcn ); // $ExpectError + bquinary3d( null, shapes, fcn ); // $ExpectError + bquinary3d( [ '1' ], shapes, fcn ); // $ExpectError + bquinary3d( {}, shapes, fcn ); // $ExpectError + bquinary3d( ( x: number ): number => x, shapes, fcn ); // $ExpectError +} + +// The compiler throws an error if the function is provided a second argument which is not an array of arrays... +{ + const x = [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ]; + const y = [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ]; + const z = [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ]; + const w = [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ]; + const v = [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ]; + const out = [ [ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ] ]; + + bquinary3d( [ x, y, z, w, v, out ], 'abc', fcn ); // $ExpectError + bquinary3d( [ x, y, z, w, v, out ], 3.14, fcn ); // $ExpectError + bquinary3d( [ x, y, z, w, v, out ], true, fcn ); // $ExpectError + bquinary3d( [ x, y, z, w, v, out ], false, fcn ); // $ExpectError + bquinary3d( [ x, y, z, w, v, out ], null, fcn ); // $ExpectError + bquinary3d( [ x, y, z, w, v, out ], [ '1' ], fcn ); // $ExpectError + bquinary3d( [ x, y, z, w, v, out ], {}, fcn ); // $ExpectError + bquinary3d( [ x, y, z, w, v, out ], ( x: number ): number => x, fcn ); // $ExpectError +} + +// The compiler throws an error if the function is provided a third argument which is not a valid callback... +{ + const x = [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ]; + const y = [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ]; + const z = [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ]; + const w = [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ]; + const v = [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ]; + const out = [ [ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ] ]; + + const shapes: InOutShapes = [ [ [ 2, 2, 2 ], [ 2, 2, 2 ], [ 2, 2, 2 ], [ 2, 2, 2 ], [ 2, 2, 2 ], [ 2, 2, 2 ] ] ]; + + bquinary3d( [ x, y, z, w, v, out ], shapes, 'abc' ); // $ExpectError + bquinary3d( [ x, y, z, w, v, out ], shapes, 3.14 ); // $ExpectError + bquinary3d( [ x, y, z, w, v, out ], shapes, true ); // $ExpectError + bquinary3d( [ x, y, z, w, v, out ], shapes, false ); // $ExpectError + bquinary3d( [ x, y, z, w, v, out ], shapes, null ); // $ExpectError + bquinary3d( [ x, y, z, w, v, out ], shapes, [ '1' ] ); // $ExpectError + bquinary3d( [ x, y, z, w, v, out ], shapes, {} ); // $ExpectError +} + +// The compiler throws an error if the function is provided an unsupported number of arguments... +{ + const x = [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ]; + const y = [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ]; + const z = [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ]; + const w = [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ]; + const v = [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ]; + const out = [ [ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ] ]; + + const shapes: InOutShapes = [ [ [ 2, 2, 2 ], [ 2, 2, 2 ], [ 2, 2, 2 ], [ 2, 2, 2 ], [ 2, 2, 2 ], [ 2, 2, 2 ] ] ]; + + bquinary3d(); // $ExpectError + bquinary3d( [ x, y, z, w, v, out ] ); // $ExpectError + bquinary3d( [ x, y, z, w, v, out ], shapes, fcn, {} ); // $ExpectError +} \ No newline at end of file diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/examples/examples.js b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/examples/examples.js new file mode 100644 index 000000000000..a92133823dfe --- /dev/null +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/examples/examples.js @@ -0,0 +1,58 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; +var filled3dBy = require( '@stdlib/array/base/filled3d-by' ); +var zeros3d = require( '@stdlib/array/base/zeros3d' ); +var bquinary3d = require( './../lib' ); + +function add( x, y, z, w, v ) { + return x + y + z + w + v; +} + +var shapes = [ + [ 1, 1, 3 ], + [ 1, 3, 1 ], + [ 1, 1, 3 ], + [ 1, 1, 1 ], + [ 3, 3, 3 ], + [ 3, 3, 3 ] +]; + +var x = filled3dBy( shapes[ 0 ], discreteUniform( -100, 100 ) ); +console.log( x ); + +var y = filled3dBy( shapes[ 1 ], discreteUniform( -100, 100 ) ); +console.log( y ); + +var z = filled3dBy( shapes[ 2 ], discreteUniform( -100, 100 ) ); +console.log( z ); + +var w = filled3dBy( shapes[ 3 ], discreteUniform( -100, 100 ) ); +console.log( w ); + +var v = filled3dBy( shapes[ 4 ], discreteUniform( -100, 100 ) ); +console.log( v ); + +var out = zeros3d( shapes[ 5 ] ); +console.log( out ); + +bquinary3d( [ x, y, z, w, v, out ], shapes, add ); +console.log( out ); diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/index.js b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/index.js new file mode 100644 index 000000000000..4b47be9bbac7 --- /dev/null +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/index.js @@ -0,0 +1,64 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +/** +* Apply a quinary callback to elements in five broadcasted input arrays and assign results to elements in a three-dimensional nested output array. +* +* @module @stdlib/array/base/broadcasted-quinary3d +* +* @example +* var ones3d = require( '@stdlib/array/base/ones3d' ); +* var zeros3d = require( '@stdlib/array/base/zeros3d' ); +* var bquinary3d = require( '@stdlib/array/base/broadcasted-quinary3d' ); +* +* function add( x, y, z, w, v ) { +* return x + y + z + w + v; +* } +* +* var shapes = [ +* [ 1, 1, 2 ], +* [ 1, 2, 1 ], +* [ 1, 1, 2 ], +* [ 1, 1, 1 ], +* [ 2, 2, 2 ], +* [ 2, 2, 2 ] +* ]; +* +* var x = ones3d( shapes[ 0 ] ); +* var y = ones3d( shapes[ 1 ] ); +* var z = ones3d( shapes[ 2 ] ); +* var w = ones3d( shapes[ 3 ] ); +* var v = ones3d( shapes[ 4 ] ); +* var out = zeros3d( shapes[ 5 ] ); +* +* bquinary3d( [ x, y, z, w, v, out ], shapes, add ); +* +* console.log( out ); +* // => [ [ [ 5.0, 5.0 ], [ 5.0, 5.0 ] ] +*/ + +// MODULES // + +var main = require( './main.js' ); + + +// EXPORTS // + +module.exports = main; diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/main.js b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/main.js new file mode 100644 index 000000000000..134aef1fb84d --- /dev/null +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/main.js @@ -0,0 +1,222 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var broadcastArray = require( '@stdlib/array/base/broadcast-array' ); + + +// MAIN // + +/** +* Applies a quinary callback to elements in five broadcasted input arrays and assigns results to elements in a three-dimensional nested output array. +* +* @param {ArrayLikeObject>} arrays - array-like object containing five input nested arrays and one output nested array +* @param {ArrayLikeObject} shapes - array shapes +* @param {Callback} fcn - quinary callback +* @returns {void} +* +* @example +* var ones3d = require( '@stdlib/array/base/ones3d' ); +* var zeros3d = require( '@stdlib/array/base/zeros3d' ); +* +* function add( x, y, z, w, v ) { +* return x + y + z + w + v; +* } +* +* var shapes = [ +* [ 1, 1, 2 ], +* [ 1, 2, 1 ], +* [ 1, 1, 2 ], +* [ 1, 1, 1 ], +* [ 2, 2, 2 ], +* [ 2, 2, 2 ] +* ]; +* +* var x = ones3d( shapes[ 0 ] ); +* var y = ones3d( shapes[ 1 ] ); +* var z = ones3d( shapes[ 2 ] ); +* var w = ones3d( shapes[ 3 ] ); +* var v = ones3d( shapes[ 4 ] ); +* var out = zeros3d( shapes[ 5 ] ); +* +* bquinary3d( [ x, y, z, w, v, out ], shapes, add ); +* +* console.log( out ); +* // => [ [ [ 5.0, 5.0 ], [ 5.0, 5.0 ] ] ] +*/ +function bquinary3d( arrays, shapes, fcn ) { + var dx0; + var dx1; + var dx2; + var dy0; + var dy1; + var dy2; + var dz0; + var dz1; + var dz2; + var dw0; + var dw1; + var dw2; + var du0; + var du1; + var du2; + var S0; + var S1; + var S2; + var i0; + var i1; + var i2; + var j0; + var j1; + var j2; + var k0; + var k1; + var k2; + var m0; + var m1; + var m2; + var n0; + var n1; + var n2; + var p0; + var p1; + var p2; + var x0; + var x1; + var y0; + var y1; + var z0; + var z1; + var w0; + var w1; + var u0; + var u1; + var v0; + var v1; + var sh; + var st; + var o; + var x; + var y; + var z; + var w; + var u; + var v; + + sh = shapes[ 5 ]; + S0 = sh[ 2 ]; + S1 = sh[ 1 ]; + S2 = sh[ 0 ]; + if ( S0 <= 0 || S1 <= 0 || S2 <= 0 ) { + return; + } + o = broadcastArray( arrays[ 0 ], shapes[ 0 ], sh ); + x = o.data; + st = o.strides; + dx0 = st[ 2 ]; + dx1 = st[ 1 ]; + dx2 = st[ 0 ]; + + o = broadcastArray( arrays[ 1 ], shapes[ 1 ], sh ); + y = o.data; + st = o.strides; + dy0 = st[ 2 ]; + dy1 = st[ 1 ]; + dy2 = st[ 0 ]; + + o = broadcastArray( arrays[ 2 ], shapes[ 2 ], sh ); + z = o.data; + st = o.strides; + dz0 = st[ 2 ]; + dz1 = st[ 1 ]; + dz2 = st[ 0 ]; + + o = broadcastArray( arrays[ 3 ], shapes[ 3 ], sh ); + w = o.data; + st = o.strides; + dw0 = st[ 2 ]; + dw1 = st[ 1 ]; + dw2 = st[ 0 ]; + + o = broadcastArray( arrays[ 4 ], shapes[ 4 ], sh ); + u = o.data; + st = o.strides; + du0 = st[ 2 ]; + du1 = st[ 1 ]; + du2 = st[ 0 ]; + + v = arrays[ 5 ]; + + j2 = 0; + k2 = 0; + m2 = 0; + n2 = 0; + p2 = 0; + for ( i2 = 0; i2 < S2; i2++ ) { + j1 = 0; + k1 = 0; + m1 = 0; + n1 = 0; + p1 = 0; + x1 = x[ j2 ]; + y1 = y[ k2 ]; + z1 = z[ m2 ]; + w1 = w[ n2 ]; + u1 = u[ p2 ]; + v1 = v[ i2 ]; + for ( i1 = 0; i1 < S1; i1++ ) { + j0 = 0; + k0 = 0; + m0 = 0; + n0 = 0; + p0 = 0; + x0 = x1[ j1 ]; + y0 = y1[ k1 ]; + z0 = z1[ m1 ]; + w0 = w1[ n1 ]; + u0 = u1[ p1 ]; + v0 = v1[ i1 ]; + for ( i0 = 0; i0 < S0; i0++ ) { + v0[ i0 ] = fcn( x0[ j0 ], y0[ k0 ], z0[ m0 ], w0[ n0 ], u0[ p0 ] ); + j0 += dx0; + k0 += dy0; + m0 += dz0; + n0 += dw0; + p0 += du0; + } + j1 += dx1; + k1 += dy1; + m1 += dz1; + n1 += dw1; + p1 += du1; + } + j2 += dx2; + k2 += dy2; + m2 += dz2; + n2 += dw2; + p2 += du2; + } +} + + +// EXPORTS // + +module.exports = bquinary3d; \ No newline at end of file diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/package.json b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/package.json new file mode 100644 index 000000000000..b2c7bf48e468 --- /dev/null +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/package.json @@ -0,0 +1,67 @@ +{ + "name": "@stdlib/array/base/broadcasted-quinary3d", + "version": "0.0.0", + "description": "Apply a quinary callback to elements in five broadcasted input arrays and assign results to elements in a three-dimensional nested output array.", + "license": "Apache-2.0", + "author": { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + }, + "contributors": [ + { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + } + ], + "main": "./lib", + "directories": { + "benchmark": "./benchmark", + "doc": "./docs", + "example": "./examples", + "lib": "./lib", + "test": "./test" + }, + "types": "./docs/types", + "scripts": {}, + "homepage": "https://github.com/stdlib-js/stdlib", + "repository": { + "type": "git", + "url": "git://github.com/stdlib-js/stdlib.git" + }, + "bugs": { + "url": "https://github.com/stdlib-js/stdlib/issues" + }, + "dependencies": {}, + "devDependencies": {}, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "base", + "array", + "multidimensional", + "ndarray", + "matrix", + "3d", + "quinary", + "apply", + "foreach", + "map", + "transform", + "broadcast" + ], + "__stdlib__": {} + } \ No newline at end of file diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/test/test.js b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/test/test.js new file mode 100644 index 000000000000..0ff4696040ab --- /dev/null +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/test/test.js @@ -0,0 +1,329 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var zeros3d = require( '@stdlib/array/base/zeros3d' ); +var bquinary3d = require( './../lib' ); + + +// FUNCTIONS // + +/** +* Returns the sum. +* +* @private +* @param {number} x - first value +* @param {number} y - second value +* @param {number} z - third value +* @param {number} w - fourth value +* @param {number} v - fifth value +* @returns {number} sum +*/ +function add( x, y, z, w, v ) { + return x + y + z + w + v; +} + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof bquinary3d, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function applies a provided callback to broadcasted input arrays and assigns results to a nested output array', function test( t ) { + var expected; + var shapes; + var out; + var x; + var y; + var z; + var w; + var u; + + shapes = [ + [ 1, 1, 2 ], + [ 1, 2, 1 ], + [ 1, 1, 1 ], + [ 1, 1, 2 ], + [ 1, 2, 2 ], + [ 2, 2, 2 ] + ]; + x = [ + [ + [ 1.0, 2.0 ] + ] + ]; + y = [ + [ + [ 3.0 ], + [ 4.0 ] + ] + ]; + z = [ + [ + [ 5.0 ] + ] + ]; + w = [ + [ + [ 3.0, 4.0 ] + ] + ]; + u = [ + [ + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] + ] + ]; + out = zeros3d( shapes[ 5 ] ); + + expected = [ + [ + [ 13.0, 16.0 ], + [ 16.0, 19.0 ] + ], + [ + [ 13.0, 16.0 ], + [ 16.0, 19.0 ] + ] + ]; + bquinary3d( [ x, y, z, w, u, out ], shapes, add ); + t.deepEqual( out, expected, 'returns expected value' ); + + shapes = [ + [ 1, 1, 2 ], + [ 1, 2, 1 ], + [ 1, 1, 1 ], + [ 1, 1, 2 ], + [ 1, 2, 2 ], + [ 2, 2, 2 ] + ]; + x = [ + [ + [ 1.0, 2.0 ] + ] + ]; + y = [ + [ + [ 3.0 ], + [ 4.0 ] + ] + ]; + z = [ + [ + [ 5.0 ] + ] + ]; + w = [ + [ + [ 3.0, 4.0 ] + ] + ]; + u = [ + [ + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] + ] + ]; + out = zeros3d( shapes[ 5 ] ); + + expected = [ + [ + [ 13.0, 16.0 ], + [ 16.0, 19.0 ] + ], + [ + [ 13.0, 16.0 ], + [ 16.0, 19.0 ] + ] + ]; + bquinary3d( [ x, y, z, w, u, out ], shapes, add ); + t.deepEqual( out, expected, 'returns expected value' ); + + // Same shapes: + shapes = [ + [ 2, 2, 2 ], + [ 2, 2, 2 ], + [ 2, 2, 2 ], + [ 2, 2, 2 ], + [ 2, 2, 2 ], + [ 2, 2, 2 ] + ]; + x = [ + [ + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] + ], + [ + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] + ] + ]; + y = [ + [ + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] + ], + [ + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] + ] + ]; + z = [ + [ + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] + ], + [ + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] + ] + ]; + w = [ + [ + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] + ], + [ + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] + ] + ]; + u = [ + [ + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] + ], + [ + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] + ] + ]; + out = zeros3d( shapes[ 5 ] ); + + expected = [ + [ + [ 5.0, 10.0 ], + [ 15.0, 20.0 ] + ], + [ + [ 5.0, 10.0 ], + [ 15.0, 20.0 ] + ] + ]; + bquinary3d( [ x, y, z, w, u, out ], shapes, add ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function does not invoke a provided callback if provided an output shape having a first element equal to zero', function test( t ) { + var expected; + var shapes; + var out; + var x; + var y; + var z; + var w; + var u; + + shapes = [ + [ 2, 2, 2 ], + [ 2, 2, 2 ], + [ 2, 2, 2 ], + [ 2, 2, 2 ], + [ 2, 2, 2 ], + [ 0, 2, 2 ] + ]; + x = [ + [ + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] + ], + [ + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] + ] + ]; + y = x; + z = x; + w = x; + u = x; + out = zeros3d( [ 2, 2, 2 ] ); + + expected = zeros3d( [ 2, 2, 2 ] ); + bquinary3d( [ x, y, z, w, u, out ], shapes, clbk ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); + + function clbk() { + t.ok( false, 'should not invoke callback' ); + } +}); + +tape( 'the function does not invoke a provided callback if provided an output shape having a second element equal to zero', function test( t ) { + var expected; + var shapes; + var out; + var x; + var y; + var z; + var w; + var u; + + shapes = [ + [ 2, 2, 2 ], + [ 2, 2, 2 ], + [ 2, 2, 2 ], + [ 2, 2, 2 ], + [ 2, 2, 2 ], + [ 2, 0, 2 ] + ]; + x = [ + [ + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] + ], + [ + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] + ] + ]; + y = x; + z = x; + w = x; + u = x; + out = zeros3d( [ 2, 2, 2 ] ); + + expected = zeros3d( [ 2, 2, 2 ] ); + bquinary3d( [ x, y, z, w, u, out ], shapes, clbk ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); + + function clbk() { + t.ok( false, 'should not invoke callback' ); + } +}); From 03b8d802f6874a4850ebbba43297e9b6fc39a065 Mon Sep 17 00:00:00 2001 From: Neerajpathak07 Date: Sun, 24 Nov 2024 01:31:56 +0530 Subject: [PATCH 02/15] fix: lint errors --- .../@stdlib/array/base/broadcasted-quinary3d/README.md | 6 +++--- .../@stdlib/array/base/broadcasted-quinary3d/lib/index.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md index d8152aac3529..8b2d1574e2f0 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md @@ -33,7 +33,7 @@ limitations under the License. ## Usage ```javascript -var bquinary3d = require( '@stdlib/array/base/broadcasted-quinary2d' ); +var bquinary3d = require( '@stdlib/array/base/broadcasted-quinary3d' ); ``` #### bquinary3d( arrays, shapes, fcn ) @@ -41,7 +41,7 @@ var bquinary3d = require( '@stdlib/array/base/broadcasted-quinary2d' ); Applies a quinary callback to elements in four [broadcasted][@stdlib/array/base/broadcast-array] nested input arrays and assigns results to elements in a three-dimensional nested output array. ```javascript -var zero32d = require( '@stdlib/array/base/zeros3d' ); +var zeros3d = require( '@stdlib/array/base/zeros3d' ); function add( x, y, z, w, v ) { return x + y + z + w + v; @@ -156,4 +156,4 @@ console.log( out ); - \ No newline at end of file + diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/index.js b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/index.js index 4b47be9bbac7..67a2a5f276c2 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/index.js +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/index.js @@ -37,7 +37,7 @@ * [ 1, 2, 1 ], * [ 1, 1, 2 ], * [ 1, 1, 1 ], -* [ 2, 2, 2 ], +* [ 2, 2, 2 ], * [ 2, 2, 2 ] * ]; * @@ -51,7 +51,7 @@ * bquinary3d( [ x, y, z, w, v, out ], shapes, add ); * * console.log( out ); -* // => [ [ [ 5.0, 5.0 ], [ 5.0, 5.0 ] ] +* // => [ [ [ 5.0, 5.0 ], [ 5.0, 5.0 ] ] ] */ // MODULES // From 1b7d77c589560c01817e510c52cf18d3cf6d4333 Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Sun, 24 Nov 2024 10:03:42 +0000 Subject: [PATCH 03/15] fix: resolve lint errors --- .../benchmark/benchmark.js | 10 +- .../broadcasted-quinary3d/docs/types/test.ts | 2 +- .../examples/examples.js | 12 +- .../base/broadcasted-quinary3d/lib/main.js | 74 +++---- .../base/broadcasted-quinary3d/package.json | 2 +- .../base/broadcasted-quinary3d/test/test.js | 194 +++++++++--------- 6 files changed, 147 insertions(+), 147 deletions(-) diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/benchmark/benchmark.js index 004c7389e6c2..baf0f9a60e67 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/benchmark/benchmark.js @@ -70,7 +70,7 @@ function createBenchmark( shape ) { [ 1, 1, shape[ 2 ] ], [ 1, shape[ 1 ], 1 ], [ 1, 1, shape[ 0 ] ], - [ 1, 1, 1 ], + [ 1, 1, 1 ], [ shape[ 0 ], shape[ 1 ], shape[ 2 ] ], shape ]; @@ -94,13 +94,13 @@ function createBenchmark( shape ) { function benchmark( b ) { var i0; var i1; - var i2; + var i2; var i; b.tic(); for ( i = 0; i < b.iterations; i++ ) { bquinary3d( arrays, shapes, add ); - i2 = i % shapes[ 1 ][ 0 ]; + i2 = i % shapes[ 1 ][ 0 ]; i1 = i % shapes[ 1 ][ 1 ]; i0 = i % shapes[ 1 ][ 2 ]; if ( isnan( arrays[ 5 ][ i2 ][ i1 ][ i0 ] ) ) { @@ -109,7 +109,7 @@ function createBenchmark( shape ) { } b.toc(); - i2 = i % shapes[ 1 ][ 0 ]; + i2 = i % shapes[ 1 ][ 0 ]; i1 = i % shapes[ 1 ][ 1 ]; i0 = i % shapes[ 1 ][ 2 ]; if ( isnan( arrays[ 5 ][ i2 ][ i1 ][ i0 ] ) ) { @@ -147,4 +147,4 @@ function main() { } } -main(); \ No newline at end of file +main(); diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/test.ts b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/test.ts index 3fa6f71320fb..f04f03f74de8 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/test.ts +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/test.ts @@ -122,4 +122,4 @@ type InOutShapes = [ Array, Array, Array, Array, bquinary3d(); // $ExpectError bquinary3d( [ x, y, z, w, v, out ] ); // $ExpectError bquinary3d( [ x, y, z, w, v, out ], shapes, fcn, {} ); // $ExpectError -} \ No newline at end of file +} diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/examples/examples.js b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/examples/examples.js index a92133823dfe..643d13b24b44 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/examples/examples.js +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/examples/examples.js @@ -28,12 +28,12 @@ function add( x, y, z, w, v ) { } var shapes = [ - [ 1, 1, 3 ], - [ 1, 3, 1 ], - [ 1, 1, 3 ], - [ 1, 1, 1 ], - [ 3, 3, 3 ], - [ 3, 3, 3 ] + [ 1, 1, 3 ], + [ 1, 3, 1 ], + [ 1, 1, 3 ], + [ 1, 1, 1 ], + [ 3, 3, 3 ], + [ 3, 3, 3 ] ]; var x = filled3dBy( shapes[ 0 ], discreteUniform( -100, 100 ) ); diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/main.js b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/main.js index 134aef1fb84d..40deb051646f 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/main.js +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/main.js @@ -46,7 +46,7 @@ var broadcastArray = require( '@stdlib/array/base/broadcast-array' ); * [ 1, 2, 1 ], * [ 1, 1, 2 ], * [ 1, 1, 1 ], -* [ 2, 2, 2 ], +* [ 2, 2, 2 ], * [ 2, 2, 2 ] * ]; * @@ -65,52 +65,52 @@ var broadcastArray = require( '@stdlib/array/base/broadcast-array' ); function bquinary3d( arrays, shapes, fcn ) { var dx0; var dx1; - var dx2; + var dx2; var dy0; var dy1; - var dy2; + var dy2; var dz0; var dz1; - var dz2; + var dz2; var dw0; var dw1; - var dw2; + var dw2; var du0; var du1; - var du2; + var du2; var S0; var S1; - var S2; + var S2; var i0; var i1; - var i2; + var i2; var j0; var j1; - var j2; + var j2; var k0; var k1; - var k2; + var k2; var m0; var m1; - var m2; + var m2; var n0; var n1; - var n2; + var n2; var p0; var p1; - var p2; + var p2; var x0; - var x1; + var x1; var y0; - var y1; + var y1; var z0; - var z1; + var z1; var w0; - var w1; + var w1; var u0; - var u1; + var u1; var v0; - var v1; + var v1; var sh; var st; var o; @@ -124,7 +124,7 @@ function bquinary3d( arrays, shapes, fcn ) { sh = shapes[ 5 ]; S0 = sh[ 2 ]; S1 = sh[ 1 ]; - S2 = sh[ 0 ]; + S2 = sh[ 0 ]; if ( S0 <= 0 || S1 <= 0 || S2 <= 0 ) { return; } @@ -133,55 +133,55 @@ function bquinary3d( arrays, shapes, fcn ) { st = o.strides; dx0 = st[ 2 ]; dx1 = st[ 1 ]; - dx2 = st[ 0 ]; + dx2 = st[ 0 ]; o = broadcastArray( arrays[ 1 ], shapes[ 1 ], sh ); y = o.data; st = o.strides; dy0 = st[ 2 ]; dy1 = st[ 1 ]; - dy2 = st[ 0 ]; + dy2 = st[ 0 ]; o = broadcastArray( arrays[ 2 ], shapes[ 2 ], sh ); z = o.data; st = o.strides; dz0 = st[ 2 ]; dz1 = st[ 1 ]; - dz2 = st[ 0 ]; + dz2 = st[ 0 ]; o = broadcastArray( arrays[ 3 ], shapes[ 3 ], sh ); w = o.data; st = o.strides; dw0 = st[ 2 ]; dw1 = st[ 1 ]; - dw2 = st[ 0 ]; + dw2 = st[ 0 ]; o = broadcastArray( arrays[ 4 ], shapes[ 4 ], sh ); u = o.data; st = o.strides; du0 = st[ 2 ]; du1 = st[ 1 ]; - du2 = st[ 0 ]; + du2 = st[ 0 ]; v = arrays[ 5 ]; - j2 = 0; + j2 = 0; k2 = 0; m2 = 0; n2 = 0; p2 = 0; - for ( i2 = 0; i2 < S2; i2++ ) { + for ( i2 = 0; i2 < S2; i2++ ) { j1 = 0; k1 = 0; m1 = 0; n1 = 0; p1 = 0; - x1 = x[ j2 ]; + x1 = x[ j2 ]; y1 = y[ k2 ]; z1 = z[ m2 ]; w1 = w[ n2 ]; - u1 = u[ p2 ]; - v1 = v[ i2 ]; + u1 = u[ p2 ]; + v1 = v[ i2 ]; for ( i1 = 0; i1 < S1; i1++ ) { j0 = 0; k0 = 0; @@ -208,15 +208,15 @@ function bquinary3d( arrays, shapes, fcn ) { n1 += dw1; p1 += du1; } - j2 += dx2; - k2 += dy2; - m2 += dz2; - n2 += dw2; - p2 += du2; - } + j2 += dx2; + k2 += dy2; + m2 += dz2; + n2 += dw2; + p2 += du2; + } } // EXPORTS // -module.exports = bquinary3d; \ No newline at end of file +module.exports = bquinary3d; diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/package.json b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/package.json index b2c7bf48e468..a7e3c4373c2d 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/package.json +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/package.json @@ -64,4 +64,4 @@ "broadcast" ], "__stdlib__": {} - } \ No newline at end of file + } diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/test/test.js b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/test/test.js index 0ff4696040ab..40964ce626e7 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/test/test.js +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/test/test.js @@ -62,101 +62,101 @@ tape( 'the function applies a provided callback to broadcasted input arrays and var u; shapes = [ - [ 1, 1, 2 ], - [ 1, 2, 1 ], - [ 1, 1, 1 ], - [ 1, 1, 2 ], - [ 1, 2, 2 ], - [ 2, 2, 2 ] + [ 1, 1, 2 ], + [ 1, 2, 1 ], + [ 1, 1, 1 ], + [ 1, 1, 2 ], + [ 1, 2, 2 ], + [ 2, 2, 2 ] + ]; + x = [ + [ + [ 1.0, 2.0 ] + ] ]; - x = [ - [ - [ 1.0, 2.0 ] - ] - ]; y = [ - [ - [ 3.0 ], - [ 4.0 ] - ] - ]; + [ + [ 3.0 ], + [ 4.0 ] + ] + ]; z = [ - [ - [ 5.0 ] - ] - ]; + [ + [ 5.0 ] + ] + ]; w = [ - [ + [ [ 3.0, 4.0 ] - ] + ] + ]; + u = [ + [ + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] + ] ]; - u = [ - [ - [ 1.0, 2.0 ], - [ 3.0, 4.0 ] - ] - ]; out = zeros3d( shapes[ 5 ] ); expected = [ - [ + [ [ 13.0, 16.0 ], [ 16.0, 19.0 ] - ], - [ + ], + [ [ 13.0, 16.0 ], [ 16.0, 19.0 ] - ] + ] ]; bquinary3d( [ x, y, z, w, u, out ], shapes, add ); t.deepEqual( out, expected, 'returns expected value' ); shapes = [ - [ 1, 1, 2 ], - [ 1, 2, 1 ], - [ 1, 1, 1 ], - [ 1, 1, 2 ], - [ 1, 2, 2 ], - [ 2, 2, 2 ] + [ 1, 1, 2 ], + [ 1, 2, 1 ], + [ 1, 1, 1 ], + [ 1, 1, 2 ], + [ 1, 2, 2 ], + [ 2, 2, 2 ] + ]; + x = [ + [ + [ 1.0, 2.0 ] + ] ]; - x = [ - [ - [ 1.0, 2.0 ] - ] - ]; y = [ - [ - [ 3.0 ], - [ 4.0 ] - ] - ]; + [ + [ 3.0 ], + [ 4.0 ] + ] + ]; z = [ - [ - [ 5.0 ] - ] - ]; + [ + [ 5.0 ] + ] + ]; w = [ - [ + [ [ 3.0, 4.0 ] - ] + ] + ]; + u = [ + [ + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] + ] ]; - u = [ - [ - [ 1.0, 2.0 ], - [ 3.0, 4.0 ] - ] - ]; out = zeros3d( shapes[ 5 ] ); expected = [ - [ + [ [ 13.0, 16.0 ], [ 16.0, 19.0 ] - ], - [ - [ 13.0, 16.0 ], + ], + [ + [ 13.0, 16.0 ], [ 16.0, 19.0 ] - ] + ] ]; bquinary3d( [ x, y, z, w, u, out ], shapes, add ); t.deepEqual( out, expected, 'returns expected value' ); @@ -171,66 +171,66 @@ tape( 'the function applies a provided callback to broadcasted input arrays and [ 2, 2, 2 ] ]; x = [ - [ + [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] - ], - [ + ], + [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] - ] + ] ]; y = [ - [ + [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] - ], - [ + ], + [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] - ] + ] ]; z = [ - [ + [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] - ], - [ + ], + [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] - ] + ] ]; w = [ - [ + [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] - ], - [ + ], + [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] - ] + ] ]; u = [ - [ + [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] - ], - [ + ], + [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] - ] + ] ]; out = zeros3d( shapes[ 5 ] ); expected = [ - [ + [ [ 5.0, 10.0 ], [ 15.0, 20.0 ] - ], - [ + ], + [ [ 5.0, 10.0 ], [ 15.0, 20.0 ] - ] + ] ]; bquinary3d( [ x, y, z, w, u, out ], shapes, add ); t.deepEqual( out, expected, 'returns expected value' ); @@ -257,14 +257,14 @@ tape( 'the function does not invoke a provided callback if provided an output sh [ 0, 2, 2 ] ]; x = [ - [ + [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] - ], - [ + ], + [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] - ] + ] ]; y = x; z = x; @@ -302,14 +302,14 @@ tape( 'the function does not invoke a provided callback if provided an output sh [ 2, 0, 2 ] ]; x = [ - [ + [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] - ], - [ + ], + [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] - ] + ] ]; y = x; z = x; From 78a884d07027da1bad751b12e8710bb8925e1a9e Mon Sep 17 00:00:00 2001 From: Neerajpathak07 Date: Wed, 27 Nov 2024 20:46:41 +0530 Subject: [PATCH 04/15] fix: lib lint errors --- .../base/broadcasted-quinary3d/lib/main.js | 64 +++++++++---------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/main.js b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/main.js index 40deb051646f..64335731d631 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/main.js +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/main.js @@ -62,7 +62,7 @@ var broadcastArray = require( '@stdlib/array/base/broadcast-array' ); * console.log( out ); * // => [ [ [ 5.0, 5.0 ], [ 5.0, 5.0 ] ] ] */ -function bquinary3d( arrays, shapes, fcn ) { +function bquinary3d( arrays, shapes, fcn ) { // eslint-disable-line max-statements var dx0; var dx1; var dx2; @@ -171,43 +171,43 @@ function bquinary3d( arrays, shapes, fcn ) { n2 = 0; p2 = 0; for ( i2 = 0; i2 < S2; i2++ ) { - j1 = 0; - k1 = 0; - m1 = 0; - n1 = 0; - p1 = 0; + j1 = 0; + k1 = 0; + m1 = 0; + n1 = 0; + p1 = 0; x1 = x[ j2 ]; y1 = y[ k2 ]; z1 = z[ m2 ]; w1 = w[ n2 ]; u1 = u[ p2 ]; v1 = v[ i2 ]; - for ( i1 = 0; i1 < S1; i1++ ) { - j0 = 0; - k0 = 0; - m0 = 0; - n0 = 0; - p0 = 0; - x0 = x1[ j1 ]; - y0 = y1[ k1 ]; - z0 = z1[ m1 ]; - w0 = w1[ n1 ]; - u0 = u1[ p1 ]; - v0 = v1[ i1 ]; - for ( i0 = 0; i0 < S0; i0++ ) { - v0[ i0 ] = fcn( x0[ j0 ], y0[ k0 ], z0[ m0 ], w0[ n0 ], u0[ p0 ] ); - j0 += dx0; - k0 += dy0; - m0 += dz0; - n0 += dw0; - p0 += du0; - } - j1 += dx1; - k1 += dy1; - m1 += dz1; - n1 += dw1; - p1 += du1; - } + for ( i1 = 0; i1 < S1; i1++ ) { + j0 = 0; + k0 = 0; + m0 = 0; + n0 = 0; + p0 = 0; + x0 = x1[ j1 ]; + y0 = y1[ k1 ]; + z0 = z1[ m1 ]; + w0 = w1[ n1 ]; + u0 = u1[ p1 ]; + v0 = v1[ i1 ]; + for ( i0 = 0; i0 < S0; i0++ ) { + v0[ i0 ] = fcn( x0[ j0 ], y0[ k0 ], z0[ m0 ], w0[ n0 ], u0[ p0 ] ); // eslint-disable-line max-len + j0 += dx0; + k0 += dy0; + m0 += dz0; + n0 += dw0; + p0 += du0; + } + j1 += dx1; + k1 += dy1; + m1 += dz1; + n1 += dw1; + p1 += du1; + } j2 += dx2; k2 += dy2; m2 += dz2; From e31d002e3836bb8416fa960edacb9761acea2ed1 Mon Sep 17 00:00:00 2001 From: Neerajpathak07 Date: Wed, 27 Nov 2024 20:55:38 +0530 Subject: [PATCH 05/15] fix: test lint errors --- .../base/broadcasted-quinary3d/test/test.js | 82 +++++++++---------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/test/test.js b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/test/test.js index 40964ce626e7..0efb9f27aa5c 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/test/test.js +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/test/test.js @@ -87,7 +87,7 @@ tape( 'the function applies a provided callback to broadcasted input arrays and ]; w = [ [ - [ 3.0, 4.0 ] + [ 3.0, 4.0 ] ] ]; u = [ @@ -100,12 +100,12 @@ tape( 'the function applies a provided callback to broadcasted input arrays and expected = [ [ - [ 13.0, 16.0 ], - [ 16.0, 19.0 ] + [ 13.0, 16.0 ], + [ 16.0, 19.0 ] ], [ - [ 13.0, 16.0 ], - [ 16.0, 19.0 ] + [ 13.0, 16.0 ], + [ 16.0, 19.0 ] ] ]; bquinary3d( [ x, y, z, w, u, out ], shapes, add ); @@ -137,7 +137,7 @@ tape( 'the function applies a provided callback to broadcasted input arrays and ]; w = [ [ - [ 3.0, 4.0 ] + [ 3.0, 4.0 ] ] ]; u = [ @@ -150,12 +150,12 @@ tape( 'the function applies a provided callback to broadcasted input arrays and expected = [ [ - [ 13.0, 16.0 ], - [ 16.0, 19.0 ] + [ 13.0, 16.0 ], + [ 16.0, 19.0 ] ], [ [ 13.0, 16.0 ], - [ 16.0, 19.0 ] + [ 16.0, 19.0 ] ] ]; bquinary3d( [ x, y, z, w, u, out ], shapes, add ); @@ -172,64 +172,64 @@ tape( 'the function applies a provided callback to broadcasted input arrays and ]; x = [ [ - [ 1.0, 2.0 ], - [ 3.0, 4.0 ] + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] ], [ - [ 1.0, 2.0 ], - [ 3.0, 4.0 ] + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] ] ]; y = [ [ - [ 1.0, 2.0 ], - [ 3.0, 4.0 ] + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] ], [ - [ 1.0, 2.0 ], - [ 3.0, 4.0 ] + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] ] ]; z = [ [ - [ 1.0, 2.0 ], - [ 3.0, 4.0 ] + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] ], [ - [ 1.0, 2.0 ], - [ 3.0, 4.0 ] + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] ] ]; w = [ [ - [ 1.0, 2.0 ], - [ 3.0, 4.0 ] + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] ], [ - [ 1.0, 2.0 ], - [ 3.0, 4.0 ] + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] ] ]; u = [ [ - [ 1.0, 2.0 ], - [ 3.0, 4.0 ] + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] ], [ - [ 1.0, 2.0 ], - [ 3.0, 4.0 ] + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] ] ]; out = zeros3d( shapes[ 5 ] ); expected = [ [ - [ 5.0, 10.0 ], - [ 15.0, 20.0 ] + [ 5.0, 10.0 ], + [ 15.0, 20.0 ] ], [ - [ 5.0, 10.0 ], - [ 15.0, 20.0 ] + [ 5.0, 10.0 ], + [ 15.0, 20.0 ] ] ]; bquinary3d( [ x, y, z, w, u, out ], shapes, add ); @@ -258,12 +258,12 @@ tape( 'the function does not invoke a provided callback if provided an output sh ]; x = [ [ - [ 1.0, 2.0 ], - [ 3.0, 4.0 ] + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] ], [ - [ 1.0, 2.0 ], - [ 3.0, 4.0 ] + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] ] ]; y = x; @@ -303,12 +303,12 @@ tape( 'the function does not invoke a provided callback if provided an output sh ]; x = [ [ - [ 1.0, 2.0 ], - [ 3.0, 4.0 ] + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] ], [ - [ 1.0, 2.0 ], - [ 3.0, 4.0 ] + [ 1.0, 2.0 ], + [ 3.0, 4.0 ] ] ]; y = x; From f19190cdc049fdfd930e1d82b3b65727935bfbc6 Mon Sep 17 00:00:00 2001 From: Neerajpathak07 Date: Fri, 13 Dec 2024 18:22:08 +0530 Subject: [PATCH 06/15] fix: CI errors --- .../@stdlib/array/base/broadcasted-quinary3d/README.md | 2 +- .../@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md index 8b2d1574e2f0..442f00eadf8b 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md @@ -64,7 +64,7 @@ var shapes = [ ]; bquinary3d( [ x, y, z, w, v, out ], shapes, add ); -// out => [ [ [ 12.0, 13.0 ], [ 13.0, 14.0 ] ] 3 +// out => [ [ [ 12.0, 13.0 ], [ 13.0, 14.0 ] ] ] ``` The function accepts the following arguments: diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt index 05209d65ea4c..93ca5cc00d01 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt @@ -23,7 +23,7 @@ > var w = [ 2.0 ]; > var v = [ 1.0 ]; > var out = [ [ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ] ]; - > var shapes = [ [ 2 ], [ 2, 1, 1 ] [ 1, 2, 2 ], [ 1, 1, 2 ], [ 1 ], [ 1, 2, 1 ], [ 2, 2, 2 ] ]; + > var shapes = [ [ 2 ], [ 2, 1, 1 ] [ 1, 2, 2 ], [ 1 ], [ 1 ], [ 1, 2, 2 ] ]; > {{alias}}( [ x, y, z, w, v, out ], shapes, fcn ); > out [ [ [ 8.0, 9.0 ], [ 9.0, 10.0 ] ] ] From fe588c15981ee93d9fd47d0cb1812ee6d5e2c94b Mon Sep 17 00:00:00 2001 From: Neerajpathak07 Date: Fri, 13 Dec 2024 23:10:02 +0530 Subject: [PATCH 07/15] fix: lint errors --- .../base/broadcasted-quinary3d/README.md | 10 +- .../examples/examples.js | 6 +- .../base/broadcasted-quinary3d/package.json | 128 +++++++++--------- 3 files changed, 72 insertions(+), 72 deletions(-) diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md index 442f00eadf8b..165a25b9623f 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md @@ -48,18 +48,18 @@ function add( x, y, z, w, v ) { } var x = [ [ [ 1.0, 2.0 ] ] ]; -var y = [ [ [ 3.0 ], [ 4.0 ] ] ]; +var y = [ [ [ 3.0, 4.0 ] ] ]; var z = [ [ [ 5.0 ] ] ]; var w = [ [ [ 2.0 ] ] ]; var v = [ [ [ 1.0 ] ] ]; var out = zeros3d( [ 2, 2, 2 ] ); var shapes = [ - [ 1, 2, 1 ], - [ 2, 1, 1 ], - [ 1, 1, 1 ], - [ 2, 2, 1 ], [ 1, 1, 2 ], + [ 1, 1, 2 ], + [ 1, 1, 1 ], + [ 1, 1, 1 ], + [ 1, 1, 1 ], [ 2, 2, 2 ] ]; diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/examples/examples.js b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/examples/examples.js index 643d13b24b44..5b5035f0cb8f 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/examples/examples.js +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/examples/examples.js @@ -28,11 +28,11 @@ function add( x, y, z, w, v ) { } var shapes = [ - [ 1, 1, 3 ], [ 1, 3, 1 ], + [ 3, 1, 1 ], [ 1, 1, 3 ], - [ 1, 1, 1 ], - [ 3, 3, 3 ], + [ 3, 3, 1 ], + [ 1, 3, 3 ], [ 3, 3, 3 ] ]; diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/package.json b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/package.json index a7e3c4373c2d..cd68332b69a5 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/package.json +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/package.json @@ -1,67 +1,67 @@ { - "name": "@stdlib/array/base/broadcasted-quinary3d", - "version": "0.0.0", - "description": "Apply a quinary callback to elements in five broadcasted input arrays and assign results to elements in a three-dimensional nested output array.", - "license": "Apache-2.0", - "author": { + "name": "@stdlib/array/base/broadcasted-quinary3d", + "version": "0.0.0", + "description": "Apply a quinary callback to elements in five broadcasted input arrays and assign results to elements in a three-dimensional nested output array.", + "license": "Apache-2.0", + "author": { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + }, + "contributors": [ + { "name": "The Stdlib Authors", "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "benchmark": "./benchmark", - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": {}, - "homepage": "https://github.com/stdlib-js/stdlib", - "repository": { - "type": "git", - "url": "git://github.com/stdlib-js/stdlib.git" - }, - "bugs": { - "url": "https://github.com/stdlib-js/stdlib/issues" - }, - "dependencies": {}, - "devDependencies": {}, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], - "keywords": [ - "stdlib", - "base", - "array", - "multidimensional", - "ndarray", - "matrix", - "3d", - "quinary", - "apply", - "foreach", - "map", - "transform", - "broadcast" - ], - "__stdlib__": {} - } + } + ], + "main": "./lib", + "directories": { + "benchmark": "./benchmark", + "doc": "./docs", + "example": "./examples", + "lib": "./lib", + "test": "./test" + }, + "types": "./docs/types", + "scripts": {}, + "homepage": "https://github.com/stdlib-js/stdlib", + "repository": { + "type": "git", + "url": "git://github.com/stdlib-js/stdlib.git" + }, + "bugs": { + "url": "https://github.com/stdlib-js/stdlib/issues" + }, + "dependencies": {}, + "devDependencies": {}, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "base", + "array", + "multidimensional", + "ndarray", + "matrix", + "3d", + "quinary", + "apply", + "foreach", + "map", + "transform", + "broadcast" + ], + "__stdlib__": {} +} From e8e280b43e3cb68ead435eff8120fa11786cc750 Mon Sep 17 00:00:00 2001 From: Neerajpathak07 Date: Fri, 27 Dec 2024 17:11:00 +0530 Subject: [PATCH 08/15] fix: CI errors --- .../@stdlib/array/base/broadcasted-quinary3d/README.md | 2 +- .../@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md index 165a25b9623f..dfd29cebfc9e 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md @@ -64,7 +64,7 @@ var shapes = [ ]; bquinary3d( [ x, y, z, w, v, out ], shapes, add ); -// out => [ [ [ 12.0, 13.0 ], [ 13.0, 14.0 ] ] ] +// out => [ [ [ 12, 14 ], [ 12, 14 ] ], [ [ 12, 14 ], [ 12, 14 ] ] ] ``` The function accepts the following arguments: diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt index 93ca5cc00d01..a59261b037dc 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt @@ -18,12 +18,12 @@ -------- > function fcn( x, y, z, w, v ) { return x + y + z + w + v; }; > var x = [ 1.0, 2.0 ]; - > var y = [ [ [ 3.0 ], [ 4.0 ] ] ]; - > var z = [ [ [ 1.0 ] ] ]; + > var y = [ [ 3.0 ], [ 4.0 ] ]; + > var z = [ 1.0 ]; > var w = [ 2.0 ]; > var v = [ 1.0 ]; > var out = [ [ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ] ]; - > var shapes = [ [ 2 ], [ 2, 1, 1 ] [ 1, 2, 2 ], [ 1 ], [ 1 ], [ 1, 2, 2 ] ]; + > var shapes = [ [ 2 ], [ 2, 1 ] [ 1 ], [ 1 ], [ 1 ], [ 1, 2, 2 ] ]; > {{alias}}( [ x, y, z, w, v, out ], shapes, fcn ); > out [ [ [ 8.0, 9.0 ], [ 9.0, 10.0 ] ] ] From c7fb6b93682b4100b8f66a1d186dd1d2f83267e6 Mon Sep 17 00:00:00 2001 From: Neerajpathak07 Date: Fri, 27 Dec 2024 17:17:07 +0530 Subject: [PATCH 09/15] fix: CI errors --- .../@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt index a59261b037dc..d5290aba1479 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt @@ -23,10 +23,10 @@ > var w = [ 2.0 ]; > var v = [ 1.0 ]; > var out = [ [ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ] ]; - > var shapes = [ [ 2 ], [ 2, 1 ] [ 1 ], [ 1 ], [ 1 ], [ 1, 2, 2 ] ]; + > var shapes = [ [ 2 ], [ 2, 1 ] [ 1 ], [ 1 ], [ 1 ], [ 2, 2, 2 ] ]; > {{alias}}( [ x, y, z, w, v, out ], shapes, fcn ); > out - [ [ [ 8.0, 9.0 ], [ 9.0, 10.0 ] ] ] + [ [ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ] ] See Also -------- From 5e7ef85fb909414bd9ee4db4170809a699a74b47 Mon Sep 17 00:00:00 2001 From: Neerajpathak07 Date: Fri, 27 Dec 2024 17:23:21 +0530 Subject: [PATCH 10/15] fix: CI errors --- .../@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt index d5290aba1479..3a1289ed34cf 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt @@ -1,3 +1,4 @@ + {{alias}}( arrays, shapes, fcn ) Applies a quinary callback to elements in five broadcasted input arrays and assigns results to elements in a three-dimensional nested output array. @@ -23,10 +24,11 @@ > var w = [ 2.0 ]; > var v = [ 1.0 ]; > var out = [ [ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ] ]; - > var shapes = [ [ 2 ], [ 2, 1 ] [ 1 ], [ 1 ], [ 1 ], [ 2, 2, 2 ] ]; + > var shapes = [ [ 2 ], [ 2, 1 ], [ 1 ], [ 1 ], [ 1 ], [ 2, 2, 2 ] ]; > {{alias}}( [ x, y, z, w, v, out ], shapes, fcn ); > out [ [ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ] ] See Also -------- + From cf10fd0f04a422b9e0929a16532509f1ab9184e1 Mon Sep 17 00:00:00 2001 From: Neerajpathak07 Date: Fri, 27 Dec 2024 17:27:11 +0530 Subject: [PATCH 11/15] fix: repl error --- .../@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt index 3a1289ed34cf..580a4baf5595 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt @@ -27,7 +27,7 @@ > var shapes = [ [ 2 ], [ 2, 1 ], [ 1 ], [ 1 ], [ 1 ], [ 2, 2, 2 ] ]; > {{alias}}( [ x, y, z, w, v, out ], shapes, fcn ); > out - [ [ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ] ] + [ [ [ 8, 9 ], [ 9, 10 ] ] ] See Also -------- From 6ebf16ef41849e70527abd056e83005fdf4936f8 Mon Sep 17 00:00:00 2001 From: Neerajpathak07 Date: Fri, 27 Dec 2024 17:31:40 +0530 Subject: [PATCH 12/15] fix: repl error --- .../@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt index 580a4baf5595..8e5d8c68c436 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt @@ -24,10 +24,10 @@ > var w = [ 2.0 ]; > var v = [ 1.0 ]; > var out = [ [ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ] ]; - > var shapes = [ [ 2 ], [ 2, 1 ], [ 1 ], [ 1 ], [ 1 ], [ 2, 2, 2 ] ]; + > var shapes = [ [ 2 ], [ 2, 1 ], [ 1 ], [ 1 ], [ 1 ], [ 1, 2, 2 ] ]; > {{alias}}( [ x, y, z, w, v, out ], shapes, fcn ); > out - [ [ [ 8, 9 ], [ 9, 10 ] ] ] + [ [ [ 8.0, 9.0 ], [ 9.0, 10.0 ] ] ] See Also -------- From 998cefbf50d28c2511359202fd98dc2d07a58e9e Mon Sep 17 00:00:00 2001 From: Neerajpathak07 Date: Mon, 3 Feb 2025 00:04:54 +0530 Subject: [PATCH 13/15] chore: clean up --- .../@stdlib/array/base/broadcasted-quinary3d/README.md | 4 ++-- .../array/base/broadcasted-quinary3d/benchmark/benchmark.js | 2 +- .../@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt | 4 ++-- .../array/base/broadcasted-quinary3d/docs/types/index.d.ts | 2 +- .../@stdlib/array/base/broadcasted-quinary3d/lib/main.js | 4 ++-- .../@stdlib/array/base/broadcasted-quinary3d/test/test.js | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md index dfd29cebfc9e..19349d3a5362 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md @@ -20,7 +20,7 @@ limitations under the License. # bquinary3d -> Apply a quinary callback to elements in four [broadcasted][@stdlib/array/base/broadcast-array] nested input arrays and assign results to elements in a three-dimensional nested output array. +> Apply a quinary callback to elements in five [broadcasted][@stdlib/array/base/broadcast-array] input arrays and assign results to elements in a three-dimensional nested output array.
@@ -38,7 +38,7 @@ var bquinary3d = require( '@stdlib/array/base/broadcasted-quinary3d' ); #### bquinary3d( arrays, shapes, fcn ) -Applies a quinary callback to elements in four [broadcasted][@stdlib/array/base/broadcast-array] nested input arrays and assigns results to elements in a three-dimensional nested output array. +Applies a quinary callback to elements in five [broadcasted][@stdlib/array/base/broadcast-array] input arrays and assigns results to elements in a three-dimensional nested output array. ```javascript var zeros3d = require( '@stdlib/array/base/zeros3d' ); diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/benchmark/benchmark.js index baf0f9a60e67..090254b4e23f 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/benchmark/benchmark.js @@ -143,7 +143,7 @@ function main() { N = floor( pow( pow( 10, i ), 1.0/3.0 ) ); sh = [ N, N, N ]; f = createBenchmark( sh ); - bench( pkg+'::square_matrix:size='+numel( sh ), f ); + bench( pkg+'::equidimensional:size='+numel( sh ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt index 8e5d8c68c436..1b7281058ca3 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/repl.txt @@ -1,7 +1,7 @@ {{alias}}( arrays, shapes, fcn ) - Applies a quinary callback to elements in five broadcasted input arrays - and assigns results to elements in a three-dimensional nested output array. + Applies a quinary callback to elements in five broadcasted input arrays and + assigns results to elements in a three-dimensional nested output array. Parameters ---------- diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/index.d.ts b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/index.d.ts index 3a6cafcafdda..385937cadffa 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/index.d.ts @@ -117,7 +117,7 @@ type InOutShapes = [ * bquinary3d( [ x, y, z, w, v, out ], shapes, add ); * * console.log( out ); -* // => [ [ [ 5.0, 5.0 ], [ 5.0, 5.0 ] ] ] +* // => [ [ [ 5.0, 5.0 ], [ 5.0, 5.0 ], [ 5.0, 5.0 ], [ 5.0, 5.0 ] ], [ [ 5.0, 5.0 ], [ 5.0, 5.0 ] ] ] */ declare function bquinary3d( arrays: InOutArrays, shapes: InOutShapes, fcn: Quinary ): void; diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/main.js b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/main.js index 64335731d631..e130cc8f3d85 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/main.js +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/main.js @@ -28,7 +28,7 @@ var broadcastArray = require( '@stdlib/array/base/broadcast-array' ); /** * Applies a quinary callback to elements in five broadcasted input arrays and assigns results to elements in a three-dimensional nested output array. * -* @param {ArrayLikeObject>} arrays - array-like object containing five input nested arrays and one output nested array +* @param {ArrayLikeObject} arrays - array-like object containing five input nested arrays and one output nested array * @param {ArrayLikeObject} shapes - array shapes * @param {Callback} fcn - quinary callback * @returns {void} @@ -60,7 +60,7 @@ var broadcastArray = require( '@stdlib/array/base/broadcast-array' ); * bquinary3d( [ x, y, z, w, v, out ], shapes, add ); * * console.log( out ); -* // => [ [ [ 5.0, 5.0 ], [ 5.0, 5.0 ] ] ] +* // => [ [ [ 5.0, 5.0 ], [ 5.0, 5.0 ], [ 5.0, 5.0 ], [ 5.0, 5.0 ] ], [ [ 5.0, 5.0 ], [ 5.0, 5.0 ] ] ] */ function bquinary3d( arrays, shapes, fcn ) { // eslint-disable-line max-statements var dx0; diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/test/test.js b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/test/test.js index 0efb9f27aa5c..6023116f046b 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/test/test.js +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/test/test.js @@ -51,7 +51,7 @@ tape( 'main export is a function', function test( t ) { t.end(); }); -tape( 'the function applies a provided callback to broadcasted input arrays and assigns results to a nested output array', function test( t ) { +tape( 'the function applies a provided callback to broadcasted input arrays and assigns results to a nested output array', function test( t ) { // eslint-disable max-len var expected; var shapes; var out; From eef237281df349166b3b2c55f517c15f1c4b945f Mon Sep 17 00:00:00 2001 From: Neerajpathak07 Date: Mon, 3 Feb 2025 00:08:13 +0530 Subject: [PATCH 14/15] chore: update main.js examples --- .../array/base/broadcasted-quinary3d/docs/types/index.d.ts | 2 +- .../@stdlib/array/base/broadcasted-quinary3d/lib/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/index.d.ts b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/index.d.ts index 385937cadffa..38b7c3f82b4b 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/index.d.ts @@ -117,7 +117,7 @@ type InOutShapes = [ * bquinary3d( [ x, y, z, w, v, out ], shapes, add ); * * console.log( out ); -* // => [ [ [ 5.0, 5.0 ], [ 5.0, 5.0 ], [ 5.0, 5.0 ], [ 5.0, 5.0 ] ], [ [ 5.0, 5.0 ], [ 5.0, 5.0 ] ] ] +* // => [ [ [ 5, 5 ], [ 5, 5 ] ], [ [ 5, 5 ], [ 5, 5 ] ] ] */ declare function bquinary3d( arrays: InOutArrays, shapes: InOutShapes, fcn: Quinary ): void; diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/main.js b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/main.js index e130cc8f3d85..effb06290a2c 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/main.js +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/main.js @@ -60,7 +60,7 @@ var broadcastArray = require( '@stdlib/array/base/broadcast-array' ); * bquinary3d( [ x, y, z, w, v, out ], shapes, add ); * * console.log( out ); -* // => [ [ [ 5.0, 5.0 ], [ 5.0, 5.0 ], [ 5.0, 5.0 ], [ 5.0, 5.0 ] ], [ [ 5.0, 5.0 ], [ 5.0, 5.0 ] ] ] +* // => [ [ [ 5, 5 ], [ 5, 5 ] ], [ [ 5, 5 ], [ 5, 5 ] ] ] */ function bquinary3d( arrays, shapes, fcn ) { // eslint-disable-line max-statements var dx0; From fbf88c561dc596c9bbcf46c702d3dce6533bac0c Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Sun, 2 Feb 2025 18:39:04 +0000 Subject: [PATCH 15/15] chore: update copyright years --- .../@stdlib/array/base/broadcasted-quinary3d/README.md | 2 +- .../array/base/broadcasted-quinary3d/benchmark/benchmark.js | 2 +- .../array/base/broadcasted-quinary3d/docs/types/index.d.ts | 2 +- .../@stdlib/array/base/broadcasted-quinary3d/docs/types/test.ts | 2 +- .../array/base/broadcasted-quinary3d/examples/examples.js | 2 +- .../@stdlib/array/base/broadcasted-quinary3d/lib/index.js | 2 +- .../@stdlib/array/base/broadcasted-quinary3d/lib/main.js | 2 +- .../@stdlib/array/base/broadcasted-quinary3d/test/test.js | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md index 19349d3a5362..2e29b6ea2e6b 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/README.md @@ -2,7 +2,7 @@ @license Apache-2.0 -Copyright (c) 2024 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. diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/benchmark/benchmark.js index 090254b4e23f..4a22ce0bb477 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/benchmark/benchmark.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 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. diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/index.d.ts b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/index.d.ts index 38b7c3f82b4b..3c6a239893c2 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/index.d.ts @@ -1,7 +1,7 @@ /* * @license Apache-2.0 * -* Copyright (c) 2024 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. diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/test.ts b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/test.ts index f04f03f74de8..62b3a4871b3a 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/test.ts +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/docs/types/test.ts @@ -1,7 +1,7 @@ /* * @license Apache-2.0 * -* Copyright (c) 2024 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. diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/examples/examples.js b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/examples/examples.js index 5b5035f0cb8f..be9c5b2ac2c2 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/examples/examples.js +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/examples/examples.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 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. diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/index.js b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/index.js index 67a2a5f276c2..801f80b05d52 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/index.js +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/index.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 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. diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/main.js b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/main.js index effb06290a2c..dd2fecba22ed 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/main.js +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/lib/main.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 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. diff --git a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/test/test.js b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/test/test.js index 6023116f046b..fbd5c90f8436 100644 --- a/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/test/test.js +++ b/lib/node_modules/@stdlib/array/base/broadcasted-quinary3d/test/test.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 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.