10000 Auto-generated commit · stdlib-js/utils-map-right@0d6d1c7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0d6d1c7

Browse files
committed
Auto-generated commit
1 parent 53fffff commit 0d6d1c7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/ndarray.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ var MODE = 'throw';
4343
* @param {IntegerArray} x.strides - stride lengths
4444
* @param {NonNegativeInteger} x.offset - index offset
4545
* @param {string} x.order - specifies whether `x` is row-major (C-style) or column-major (Fortran-style)
46-
* @param {Function} x.getter - callback for accessing `x` data buffer elements
46+
* @param {Array<Function>} x.accessors - accessors for accessing data buffer elements
4747
* @param {Object} y - object containing output ndarray meta data
4848
* @param {string} y.dtype - data type
4949
* @param {Collection} y.data - data buffer
@@ -52,7 +52,7 @@ var MODE = 'throw';
5252
* @param {IntegerArray} y.strides - stride lengths
5353
* @param {NonNegativeInteger} y.offset - index offset
5454
* @param {string} y.order - specifies whether `y` is row-major (C-style) or column-major (Fortran-style)
55-
* @param {Function} y.setter - callback for setting `y` data buffer elements
55+
* @param {Array<Function>} y.accessors - accessors for accessing data buffer elements
5656
* @param {Function} fcn - function to apply
5757
* @param {*} thisArg - function execution context
5858
* @returns {void}
@@ -102,7 +102,7 @@ var MODE = 'throw';
102102
* 'strides': sx,
103103
* 'offset': ox,
104104
* 'order': 'row-major',
105-
* 'getter': getter
105+
* 'accessors': [ getter, setter ]
106106
* };
107107
* x.ref = x;
108108
*
@@ -115,7 +115,7 @@ var MODE = 'throw';
115115
* 'strides': sy,
116116
* 'offset': oy,
117117
* 'order': 'row-major',
118-
* 'setter': setter
118+
* 'accessors': [ getter, setter ]
119119
* };
120120
*
121121
* // Apply the unary function:
@@ -172,8 +172,8 @@ function mapRight( x, y, fcn, thisArg ) {
172172
ordy = y.order;
173173

174174
// Cache accessors:
175-
get = x.getter;
176-
set = y.setter;
175 5090 +
get = x.accessors[ 0 ];
176+
set = y.accessors[ 1 ];
177177

178178
// Cache the reference to the original input array:
179179
ref = x.ref;

0 commit comments

Comments
 (0)
0