Skip to content

Commit 7f2feb3

Browse files
authored
fix: update default value
Signed-off-by: Athan <[email protected]>
1 parent dab063a commit 7f2feb3

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/blas/ext/last-index-of/lib

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/blas/ext/last-index-of/lib/assign.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ function assign( x, searchElement, fromIndex, out ) {
129129
'dims': [ -1 ] // default behavior is to perform a reduction over the last dimension
130130
};
131131

132-
// Initialize the `fromIndex` to the first element along a dimension:
133-
fidx = 0;
132+
// Initialize the `fromIndex` to the last element along a dimension:
133+
fidx = -1;
134134

135135
// Initialize a flag indicating whether the `fromIndex` argument is a scalar:
136136
iflg = true;

0 commit comments

Comments
 (0)