Skip to content

Commit d1114af

Browse files
authored
Apply suggestions from code review
Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Athan <kgryte@gmail.com>
1 parent 705a56c commit d1114af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • lib/node_modules/@stdlib/blas/ext/base/done-to/lib

lib/node_modules/@stdlib/blas/ext/base/done-to/lib/ndarray.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ function doneTo( N, x, strideX, offsetX ) {
4545
return x;
4646
}
4747
ix = offsetX;
48-
for ( i = 0; i < N; i++ ) {
49-
x[ ix ] = i + 1;
48+
for ( i = 1; i <= N; i++ ) {
49+
x[ ix ] = i;
5050
ix += strideX;
5151
}
5252
return x;

0 commit comments

Comments
 (0)