We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 981c7ba commit 549f1c1Copy full SHA for 549f1c1
lib/node_modules/@stdlib/blas/ext/base/dsumors/src/main.c
@@ -65,14 +65,16 @@ double API_SUFFIX(stdlib_strided_dsumors_ndarray)( const CBLAS_INT N, const doub
65
// If we have a remainder, run a clean-up loop...
66
if ( m > 0 ) {
67
for ( i = 0; i < m; i++ ) {
68
- sum += X[ i ];
+ sum += X[ ix ];
69
+ ix += strideX;
70
}
71
72
if ( N < 6 ) {
73
return sum;
74
75
for ( i = m; i < N-1; i += 6 ) {
- sum += X[i] + X[i+1] + X[i+2] + X[i+3] + X[i+4] + X[i+5];
76
+ sum += X[ix] + X[ix+1] + X[ix+2] + X[ix+3] + X[ix+4] + X[ix+5];
77
+ ix += 6;
78
79
80
0 commit comments