Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Nov 21, 2023
1 parent 517723f commit d8c0ce1
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 112 deletions.
10 changes: 2 additions & 8 deletions base/broadcasted-quaternary2d/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,9 @@ var bquaternary2d = require( '@stdlib/array/base/broadcasted-quaternary2d' );
Applies a quaternary callback to elements in four [broadcasted][@stdlib/array/base/broadcast-array] nested input arrays and assigns results to elements in a two-dimensional nested output array.

```javascript
var add = require( '@stdlib/math/base/ops/add4' );
var zeros2d = require( '@stdlib/array/base/zeros2d' );

function add( x, y, z, w ) {
return x + y + z + w;
}

var x = [ [ 1.0, 2.0 ] ];
var y = [ [ 3.0 ], [ 4.0 ] ];
var z = [ [ 5.0 ] ];
Expand Down Expand Up @@ -95,12 +92,9 @@ The function accepts the following arguments:
var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory;
var filled2dBy = require( '@stdlib/array/base/filled2d-by' );
var zeros2d = require( '@stdlib/array/base/zeros2d' );
var add = require( '@stdlib/math/base/ops/add4' );
var bquaternary2d = require( '@stdlib/array/base/broadcasted-quaternary2d' );

function add( x, y, z, w ) {
return x + y + z + w;
}

var shapes = [
[ 1, 3 ],
[ 3, 1 ],
Expand Down
15 changes: 1 addition & 14 deletions base/broadcasted-quaternary2d/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,13 @@ var floor = require( '@stdlib/math/base/special/floor' );
var filled2dBy = require( './../../../base/filled2d-by' );
var zeros2d = require( './../../../base/zeros2d' );
var numel = require( '@stdlib/ndarray/base/numel' );
var add = require( '@stdlib/math/base/ops/add4' );
var pkg = require( './../package.json' ).name;
var bquaternary2d = 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
* @returns {number} sum
*/
function add( x, y, z, w ) {
return x + y + z + w;
}

/**
* Creates a benchmark function.
*
Expand Down
5 changes: 1 addition & 4 deletions base/broadcasted-quaternary2d/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,10 @@ type InOutShapes = [
* @param fcn - quaternary callback
*
* @example
* var add = require( `@stdlib/math/base/ops/add4` );
* var ones2d = require( `@stdlib/array/base/ones2d` );
* var zeros2d = require( `@stdlib/array/base/zeros2d` );
*
* function add( x, y, z, w ) {
* return x + y + z + w;
* }
*
* var shapes = [
* [ 1, 2 ],
* [ 2, 1 ],
Expand Down
5 changes: 1 addition & 4 deletions base/broadcasted-quaternary2d/examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,9 @@
var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory;
var filled2dBy = require( './../../../base/filled2d-by' );
var zeros2d = require( './../../../base/zeros2d' );
var add = require( '@stdlib/math/base/ops/add4' );
var bquaternary2d = require( './../lib' );

function add( x, y, z, w ) {
return x + y + z + w;
}

var shapes = [
[ 1, 3 ],
[ 3, 1 ],
Expand Down
5 changes: 1 addition & 4 deletions base/broadcasted-quaternary2d/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,11 @@
* @module @stdlib/array/base/broadcasted-quaternary2d
*
* @example
* var add = require( '@stdlib/math/base/ops/add4' );
* var ones2d = require( '@stdlib/array/base/ones2d' );
* var zeros2d = require( '@stdlib/array/base/zeros2d' );
* var bquaternary2d = require( '@stdlib/array/base/broadcasted-quaternary2d' );
*
* function add( x, y, z, w ) {
* return x + y + z + w;
* }
*
* var shapes = [
* [ 1, 2 ],
* [ 2, 1 ],
Expand Down
5 changes: 1 addition & 4 deletions base/broadcasted-quaternary2d/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,10 @@ var broadcastArray = require( './../../../base/broadcast-array' );
* @returns {void}
*
* @example
* var add = require( '@stdlib/math/base/ops/add4' );
* var ones2d = require( '@stdlib/array/base/ones2d' );
* var zeros2d = require( '@stdlib/array/base/zeros2d' );
*
* function add( x, y, z, w ) {
* return x + y + z + w;
* }
*
* var shapes = [
* [ 1, 2 ],
* [ 2, 1 ],
Expand Down
18 changes: 1 addition & 17 deletions base/broadcasted-quaternary2d/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,10 @@

var tape = require( 'tape' );
var zeros2d = require( './../../../base/zeros2d' );
var add = require( '@stdlib/math/base/ops/add4' );
var bquaternary2d = 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
* @returns {number} sum
*/
function add( x, y, z, w ) {
return x + y + z + w;
}


// TESTS //

tape( 'main export is a function', function test( t ) {
Expand Down
10 changes: 2 additions & 8 deletions base/quaternary2d/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,9 @@ var quaternary2d = require( '@stdlib/array/base/quaternary2d' );
Applies a quaternary callback to elements in four two-dimensional nested input arrays and assigns results to elements in a two-dimensional nested output array.

```javascript
var add = require( '@stdlib/math/base/ops/add4' );
var zeros2d = require( '@stdlib/array/base/zeros2d' );

function add( x, y, z, w ) {
return x + y + z + w;
}

var x = [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ];
var out = zeros2d( [ 2, 2 ] );

Expand Down Expand Up @@ -86,12 +83,9 @@ The function accepts the following arguments:
var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory;
var filled2dBy = require( '@stdlib/array/base/filled2d-by' );
var zeros2d = require( '@stdlib/array/base/zeros2d' );
var add = require( '@stdlib/math/base/ops/add4' );
var quaternary2d = require( '@stdlib/array/base/quaternary2d' );

function add( x, y, z, w ) {
return x + y + z + w;
}

var shape = [ 3, 3 ];

var x = filled2dBy( shape, discreteUniform( -100, 100 ) );
Expand Down
15 changes: 1 addition & 14 deletions base/quaternary2d/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,13 @@ var floor = require( '@stdlib/math/base/special/floor' );
var filled2dBy = require( './../../../base/filled2d-by' );
var zeros2d = require( './../../../base/zeros2d' );
var numel = require( '@stdlib/ndarray/base/numel' );
var add = require( '@stdlib/math/base/ops/add4' );
var pkg = require( './../package.json' ).name;
var quaternary2d = 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
* @returns {number} sum
*/
function add( x, y, z, w ) {
return x + y + z + w;
}

/**
* Creates a benchmark function.
*
Expand Down
5 changes: 1 addition & 4 deletions base/quaternary2d/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,10 @@ type Quaternary<T, U, V, W, X> = ( v1: T, v2: U, v3: V, v4: W ) => X;
* @param fcn - quaternary callback
*
* @example
* var add = require( `@stdlib/math/base/ops/add4` );
* var ones2d = require( `@stdlib/array/base/ones2d` );
* var zeros2d = require( `@stdlib/array/base/zeros2d` );
*
* function add( x, y, z, w ) {
* return x + y + z + w;
* }
*
* var shape = [ 2, 2 ];
*
* var x = ones2d( shape );
Expand Down
5 changes: 1 addition & 4 deletions base/quaternary2d/examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,9 @@
var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory;
var filled2dBy = require( './../../../base/filled2d-by' );
var zeros2d = require( './../../../base/zeros2d' );
var add = require( '@stdlib/math/base/ops/add4' );
var quaternary2d = require( './../lib' );

function add( x, y, z, w ) {
return x + y + z + w;
}

var shape = [ 3, 3 ];

var x = filled2dBy( shape, discreteUniform( -100, 100 ) );
Expand Down
5 changes: 1 addition & 4 deletions base/quaternary2d/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,9 @@
* @example
* var ones2d = require( '@stdlib/array/base/ones2d' );
* var zeros2d = require( '@stdlib/array/base/zeros2d' );
* var add = require( '@stdlib/math/base/ops/add4' );
* var quaternary2d = require( '@stdlib/array/base/quaternary2d' );
*
* function add( x, y, z, w ) {
* return x + y + z + w;
* }
*
* var shape = [ 2, 2 ];
*
* var x = ones2d( shape );
Expand Down
5 changes: 1 addition & 4 deletions base/quaternary2d/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,10 @@
* @returns {void}
*
* @example
* var add = require( '@stdlib/math/base/ops/add4' );
* var ones2d = require( '@stdlib/array/base/ones2d' );
* var zeros2d = require( '@stdlib/array/base/zeros2d' );
*
* function add( x, y, z, w ) {
* return x + y + z + w;
* }
*
* var shape = [ 2, 2 ];
*
* var x = ones2d( shape );
Expand Down
18 changes: 1 addition & 17 deletions base/quaternary2d/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,10 @@

var tape = require( 'tape' );
var zeros2d = require( './../../../base/zeros2d' );
var add = require( '@stdlib/math/base/ops/add4' );
var quaternary2d = 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
* @returns {number} sum
*/
function add( x, y, z, w ) {
return x + y + z + w;
}


// TESTS //

tape( 'main export is a function', function test( t ) {
Expand Down
Loading

0 comments on commit d8c0ce1

Please sign in to comment.