Skip to content

Commit 3341c3b

Browse files
authored
Apply suggestions from code review
Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Athan <kgryte@gmail.com>
1 parent 229126b commit 3341c3b

File tree

1 file changed

+2
-3
lines changed
  • lib/node_modules/@stdlib/blas/ext/base/gvander/lib

1 file changed

+2
-3
lines changed

lib/node_modules/@stdlib/blas/ext/base/gvander/lib/base.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,10 @@ function gvander( mode, M, N, x, strideX, offsetX, out, strideOut1, strideOut2,
120120

121121
// Increasing: column j contains x^j
122122
if ( mode > 0 ) {
123+
gfill( S0, 1.0, out, strideOut1, offsetOut );
123124
do0 = strideOut1;
124125
do1 = strideOut2 - ( S0*strideOut1 );
125-
io = offsetOut;
126-
gfill( S0, 1.0, out, strideOut1, offsetOut );
127-
io += strideOut2;
126+
io = offsetOut + strideOut2;
128127
for ( i1 = 1; i1 < S1; i1++ ) {
129128
ix = offsetX;
130129
for ( i0 = 0; i0 < S0; i0++ ) {

0 commit comments

Comments
 (0)