8000 Auto-generated commit · stdlib-js/ndarray-base-map@ba19f44 · GitHub
[go: up one dir, main page]

Skip to content

Commit ba19f44

Browse files
committed
Auto-generated commit
1 parent 1d14e9f commit ba19f44

Some content is hidden

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

60 files changed

+495
-494
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636

3737
<details>
3838

39+
- [`2bec349`](https://github.com/stdlib-js/stdlib/commit/2bec349f607cc8fd3a4d05e6aca72c73b734c888) - **chore:** clean-up descriptions and comments _(by Athan Reines)_
3940
- [`0367f1d`](https://github.com/stdlib-js/stdlib/commit/0367f1d22be37c646f5a354c6c34ee3a755b3aeb) - **refactor:** fix error messages and use string interpolation _(by Athan Reines)_
4041
- [`65748be`](https://github.com/stdlib-js/stdlib/commit/65748bea9a961babc95ff0f63b08f785097c79f9) - **docs:** fix parameter name _(by Athan Reines)_
4142
- [`9a1ee35`](https://github.com/stdlib-js/stdlib/commit/9a1ee35193c5c474720c58f34d9584f41108bc5c) - **fix:** account for loop tiling when generating list of indices _(by Athan Reines)_

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ var y = {
114114
'order': 'row-major'
115115
};
116116

117-
// Apply the map function:
117+
// Apply function:
118118
map( [ x, y ], scale );
119119

120120
console.log( y.data );

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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 );

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 );

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 );

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 );

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 );

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 );

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 );

0 commit comments

Comments
 (0)
0