Skip to content

Commit 84b2e65

Browse files
committed
Auto-generated commit
1 parent 4f887d8 commit 84b2e65

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+494
-493
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ A total of 17 issues were closed in this release:
426426

427427
<details>
428428

429+
- [`2bec349`](https://github.com/stdlib-js/stdlib/commit/2bec349f607cc8fd3a4d05e6aca72c73b734c888) - **chore:** clean-up descriptions and comments _(by Athan Reines)_
429430
- [`0367f1d`](https://github.com/stdlib-js/stdlib/commit/0367f1d22be37c646f5a354c6c34ee3a755b3aeb) - **refactor:** fix error messages and use string interpolation _(by Athan Reines)_
430431
- [`f50db5b`](https://github.com/stdlib-js/stdlib/commit/f50db5b43e51607e188f38bd6fab7d0ad5098110) - **docs:** update namespace table of contents [(#7152)](https://github.com/stdlib-js/stdlib/pull/7152) _(by stdlib-bot)_
431432
- [`4f41317`](https://github.com/stdlib-js/stdlib/commit/4f413178393495c6fb1a25d9ebcfd90132013ea5) - **docs:** update comments _(by Athan Reines)_

base/map/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ var y = {
8181
'order': 'row-major'
8282
};
8383

84-
// Apply the map function:
84+
// Apply function:
8585
map( [ x, y ], scale );
8686

8787
console.log( y.data );

base/map/docs/types/index.d.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ import { typedndarray } from '@stdlib/types/ndarray';
2828
*
2929
* @returns output value
3030
*/
31-
type Nullary<U, V> = ( this: V ) => U;
31+
type Nullary<U, ThisArg> = ( this: ThisArg ) => U;
3232

3333
/**
3434
* Callback invoked for each ndarray element.
3535
*
3636
* @param value - current array element
3737
* @returns output value
3838
*/
39-
type Unary<T, U, V> = ( this: V, value: T ) => U;
39+
type Unary<T, U, ThisArg> = ( this: ThisArg, value: T ) => U;
4040

4141
/**
4242
* Callback invoked for each ndarray element.
@@ -45,7 +45,7 @@ type Unary<T, U, V> = ( this: V, value: T ) => U;
4545
* @param indices - current array element indices
4646
* @returns output value
4747
*/
48-
type Binary<T, U, V> = ( this: V, value: T, indices: Array<number> ) => U;
48+
type Binary<T, U, ThisArg> = ( this: ThisArg, value: T, indices: Array<number> ) => U;
4949

5050
/**
5151
* Callback invoked for each ndarray element.
@@ -55,7 +55,7 @@ type Binary<T, U, V> = ( this: V, value: T, indices: Array<number> ) => U;
5555
* @param arr - input array
5656
* @returns output value
5757
*/
58-
type Ternary<T, U, V> = ( this: V, value: T, indices: Array<number>, arr: typedndarray<T> ) => U;
58+
type Ternary<T, U, ThisArg> = ( this: ThisArg, value: T, indices: Array<number>, arr: typedndarray<T> ) => U;
5959

6060
/**
6161
* Callback invoked for each ndarray element.
@@ -65,10 +65,10 @@ type Ternary<T, U, V> = ( this: V, value: T, indices: Array<number>, arr: typedn
6565
* @param arr - input array
6666
* @returns output value
6767
*/
68-
type Callback<T, U, V> = Nullary<U, V> | Unary<T, U, V> | Binary<T, U, V> | Ternary<T, U, V>;
68+
type Callback<T, U, ThisArg> = Nullary<U, ThisArg> | Unary<T, U, ThisArg> | Binary<T, U, ThisArg> | Ternary<T, U, ThisArg>;
6969

7070
/**
71-
* Applies a callback function to the elements in an input ndarray and assigns results to the elements in an output ndarray.
71+
* Applies a callback function to elements in an input ndarray and assigns results to elements in an output ndarray.
7272
*
7373
* @param arrays - array-like object containing one input ndarray and one output ndarray
7474
* @param fcn - callback function
@@ -103,7 +103,7 @@ type Callback<T, U, V> = Nullary<U, V> | Unary<T, U, V> | Binary<T, U, V> | Tern
103103
* var x = ndarray( 'float64', xbuf, shape, sx, ox, 'row-major' );
104104
* var y = ndarray( 'float64', ybuf, shape, sy, oy, 'row-major' );
105105
*
106-
* // Apply the map function:
106+
* // Apply function:
107107
* map( [ x, y ], scale );
108108
*
109109
* console.log( y.data );

base/map/lib/0d.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
* 'order': 'row-major'
8585
* }
8686
*
87-
* // Apply the map function:
87+
* // Apply function:
8888
* map0d( x, y, scale, {} );
8989
*
9090
* console.log( y.data );

base/map/lib/0d_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
* 'accessors': [ getter, setter ]
101101
* };
102102
*
103-
* // Apply the map function:
103+
* // Apply function:
104104
* map0d( x, y, scale, {} );
105105
*
106106
* var v = y.data.get( 0 );

base/map/lib/10d.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ var take = require( '@stdlib/array/base/take-indexed' );
9494
* 'order': 'row-major'
9595
* };
9696
*
97-
* // Apply the map function:
97+
* // Apply function:
9898
* map10d( x, y, true, scale, {} );
9999
*
100100
* console.log( y.data );

base/map/lib/10d_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ var take = require( '@stdlib/array/base/take-indexed' );
110110
* 'accessors': [ getter, setter ]
111111
* };
112112
*
113-
* // Apply the map function:
113+
* // Apply function:
114114
* map10d( x, y, true, scale, {} );
115115
*
116116
* var v = y.data.get( 0 );

base/map/lib/10d_blocked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ var reverse = require( '@stdlib/array/base/reverse' );
9494
* 'order': 'row-major'
9595
* };
9696
*
97-
* // Apply the map function:
97+
* // Apply function:
9898
* blockedmap10d( x, y, scale, {} );
9999
*
100100
* console.log( y.data );

base/map/lib/10d_blocked_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ var reverse = require( '@stdlib/array/base/reverse' );
110110
* 'accessors': [ getter, setter ]
111111
* };
112112
*
113-
* // Apply the map function:
113+
* // Apply function:
114114
* blockedmap10d( x, y, scale, {} );
115115
*
116116
* var v = y.data.get( 0 );

base/map/lib/1d.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
* 'order': 'row-major'
8585
* };
8686
*
87-
* // Apply the map function:
87+
* // Apply function:
8888
* map1d( x, y, scale, {} );
8989
*
9090
* console.log( y.data );

base/map/lib/1d_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
* 'accessors': [ getter, setter ]
101101
* };
102102
*
103-
* // Apply the map function:
103+
* // Apply function:
104104
* map1d( x, y, scale, {} );
105105
*
106106
* var v = y.data.get( 0 );

base/map/lib/2d.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ var take = require( '@stdlib/array/base/take-indexed' );
9292
* 'order': 'row-major'
9393
* };
9494
*
95-
* // Apply the map function:
95+
* // Apply function:
9696
* map2d( x, y, true, scale, {} );
9797
*
9898
* console.log( y.data );

base/map/lib/2d_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ var take = require( '@stdlib/array/base/take-indexed' );
108108
* 'accessors': [ getter, setter ]
109109
* };
110110
*
111-
* // Apply the map function:
111+
* // Apply function:
112112
* map2d( x, y, true, scale, {} );
113113
*
114114
* var v = y.data.get( 0 );

base/map/lib/2d_blocked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ var reverse = require( '@stdlib/array/base/reverse' );
9292
* 'order': 'row-major'
9393
* };
9494
*
95-
* // Apply the map function:
95+
* // Apply function:
9696
* blockedmap2d( x, y, scale, {} );
9797
*
9898
* console.log( y.data );

base/map/lib/2d_blocked_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ var reverse = require( '@stdlib/array/base/reverse' );
108108
* 'accessors': [ getter, setter ]
109109
* };
110110
*
111-
* // Apply the map function:
111+
* // Apply function:
112112
* blockedmap2d( x, y, scale, {} );
113113
*
114114
* var v = y.data.get( 0 );

base/map/lib/3d.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ var take = require( '@stdlib/array/base/take-indexed' );
9292
* 'order': 'row-major'
9393
* };
9494
*
95-
* // Apply the map function:
95+
* // Apply function:
9696
* map3d( x, y, true, scale, {} );
9797
*
9898
* console.log( y.data );

base/map/lib/3d_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ var take = require( '@stdlib/array/base/take-indexed' );
108108
* 'accessors': [ getter, setter ]
109109
* };
110110
*
111-
* // Apply the map function:
111+
* // Apply function:
112112
* map3d( x, y, true, scale, {} );
113113
*
114114
* var v = y.data.get( 0 );

base/map/lib/3d_blocked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ var reverse = require( '@stdlib/array/base/reverse' );
9494
* 'order': 'row-major'
9595
* };
9696
*
97-
* // Apply the map function:
97+
* // Apply function:
9898
* blockedmap3d( x, y, scale, {} );
9999
*
100100
* console.log( y.data );

base/map/lib/3d_blocked_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ var reverse = require( '@stdlib/array/base/reverse' );
110110
* 'accessors': [ getter, setter ]
111111
* };
112112
*
113-
* // Apply the map function:
113+
* // Apply function:
114114
* blockedmap3d( x, y, scale, {} );
115115
*
116116
* var v = y.data.get( 0 );

base/map/lib/4d.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ var take = require( '@stdlib/array/base/take-indexed' );
9292
* 'order': 'row-major'
9393
* };
9494
*
95-
* // Apply the map function:
95+
* // Apply function:
9696
* map4d( x, y, true, scale, {} );
9797
*
9898
* console.log( y.data );

base/map/lib/4d_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ var take = require( '@stdlib/array/base/take-indexed' );
108108
* 'accessors': [ getter, setter ]
109109
* };
110110
*
111-
* // Apply the map function:
111+
* // Apply function:
112112
* map4d( x, y, true, scale, {} );
113113
*
114114
* var v = y.data.get( 0 );

base/map/lib/4d_blocked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ var reverse = require( '@stdlib/array/base/reverse' );
9494
* 'order': 'row-major'
9595
* };
9696
*
97-
* // Apply the map function:
97+
* // Apply function:
9898
* blockedmap4d( x, y, scale, {} );
9999
*
100100
* console.log( y.data );

base/map/lib/4d_blocked_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ var reverse = require( '@stdlib/array/base/reverse' );
110110
* 'accessors': [ getter, setter ]
111111
* };
112112
*
113-
* // Apply the map function:
113+
* // Apply function:
114114
* blockedmap4d( x, y, scale, {} );
115115
*
116116
* var v = y.data.get( 0 );

base/map/lib/5d.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ var take = require( '@stdlib/array/base/take-indexed' );
9292
* 'order': 'row-major'
9393
* };
9494
*
95-
* // Apply the map function:
95+
* // Apply function:
9696
* map5d( x, y, true, scale, {} );
9797
*
9898
* console.log( y.data );

base/map/lib/5d_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ var take = require( '@stdlib/array/base/take-indexed' );
108108
* 'accessors': [ getter, setter ]
109109
* };
110110
*
111-
* // Apply the map function:
111+
* // Apply function:
112112
* map5d( x, y, true, scale, {} );
113113
*
114114
* var v = y.data.get( 0 );

base/map/lib/5d_blocked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ var reverse = require( '@stdlib/array/base/reverse' );
9494
* 'order': 'row-major'
9595
* };
9696
*
97-
* // Apply the map function:
97+
* // Apply function:
9898
* blockedmap5d( x, y, scale, {} );
9999
*
100100
* console.log( y.data );

base/map/lib/5d_blocked_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ var reverse = require( '@stdlib/array/base/reverse' );
110110
* 'accessors': [ getter, setter ]
111111
* };
112112
*
113-
* // Apply the map function:
113+
* // Apply function:
114114
* blockedmap5d( x, y, scale, {} );
115115
*
116116
* var v = y.data.get( 0 );

base/map/lib/6d.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ var take = require( '@stdlib/array/base/take-indexed' );
9494
* 'order': 'row-major'
9595
* };
9696
*
97-
* // Apply the map function:
97+
* // Apply function:
9898
* map6d( x, y, true, scale, {} );
9999
*
100100
* console.log( y.data );

base/map/lib/6d_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ var take = require( '@stdlib/array/base/take-indexed' );
110110
* 'accessors': [ getter, setter ]
111111
* };
112112
*
113-
* // Apply the map function:
113+
* // Apply function:
114114
* map6d( x, y, true, scale, {} );
115115
*
116116
* var v = y.data.get( 0 );

base/map/lib/6d_blocked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ var reverse = require( '@stdlib/array/base/reverse' );
9494
* 'order': 'row-major'
9595
* };
9696
*
97-
* // Apply the map function:
97+
* // Apply function:
9898
* blockedmap6d( x, y, scale, {} );
9999
*
100100
* console.log( y.data );

base/map/lib/6d_blocked_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ var reverse = require( '@stdlib/array/base/reverse' );
110110
* 'accessors': [ getter, setter ]
111111
* };
112112
*
113-
* // Apply the map function:
113+
* // Apply function:
114114
* blockedmap6d( x, y, scale, {} );
115115
*
116116
* var v = y.data.get( 0 );

base/map/lib/7d.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ var take = require( '@stdlib/array/base/take-indexed' );
9494
* 'order': 'row-major'
9595
* };
9696
*
97-
* // Apply the map function:
97+
* // Apply function:
9898
* map7d( x, y, true, scale, {} );
9999
*
100100
* console.log( y.data );

base/map/lib/7d_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ var take = require( '@stdlib/array/base/take-indexed' );
110110
* 'accessors': [ getter, setter ]
111111
* };
112112
*
113-
* // Apply the map function:
113+
* // Apply function:
114114
* map7d( x, y, true, scale, {} );
115115
*
116116
* var v = y.data.get( 0 );

base/map/lib/7d_blocked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ var reverse = require( '@stdlib/array/base/reverse' );
9494
* 'order': 'row-major'
9595
* };
9696
*
97-
* // Apply the map function:
97+
* // Apply function:
9898
* blockedmap7d( x, y, scale, {} );
9999
*
100100
* console.log( y.data );

base/map/lib/7d_blocked_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ var reverse = require( '@stdlib/array/base/reverse' );
110110
* 'accessors': [ getter, setter ]
111111
* };
112112
*
113-
* // Apply the map function:
113+
* // Apply function:
114114
* blockedmap7d( x, y, scale, {} );
115115
*
116116
* var v = y.data.get( 0 );

base/map/lib/8d.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ var take = require( '@stdlib/array/base/take-indexed' );
9494
* 'order': 'row-major'
9595
* };
9696
*
97-
* // Apply the map function:
97+
* // Apply function:
9898
* map8d( x, y, true, scale, {} );
9999
*
100100
* console.log( y.data );

base/map/lib/8d_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ var take = require( '@stdlib/array/base/take-indexed' );
110110
* 'accessors': [ getter, setter ]
111111
* };
112112
*
113-
* // Apply the map function:
113+
* // Apply function:
114114
* map8d( x, y, true, scale, {} );
115115
*
116116
* var v = y.data.get( 0 );

base/map/lib/8d_blocked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ var reverse = require( '@stdlib/array/base/reverse' );
9494
* 'order': 'row-major'
9595
* };
9696
*
97-
* // Apply the map function:
97+
* // Apply function:
9898
* blockedmap8d( x, y, scale, {} );
9999
*
100100
* console.log( y.data );

base/map/lib/8d_blocked_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ var reverse = require( '@stdlib/array/base/reverse' );
110110
* 'accessors': [ getter, setter ]
111111
* };
112112
*
113-
* // Apply the map function:
113+
* // Apply function:
114114
* blockedmap8d( x, y, scale, {} );
115115
*
116116
* var v = y.data.get( 0 );

0 commit comments

Comments
 (0)