Skip to content

Commit

Permalink
Merge branch 'dnannsumkbn2-refactor' of https://github.com/headlessNo…
Browse files Browse the repository at this point in the history
…de/stdlib into dnannsumkbn2-refactor
  • Loading branch information
headlessNode committed Oct 7, 2024
2 parents 9059001 + 5904699 commit abfe9ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function dnannsumkbn2( N, x, strideX, offsetX, out, strideOut, offsetOut ) {
out[ io+strideOut ] = 0;
return out;
}
out[ io ] = abs( x[ ix ] ) * N;
out[ io ] = x[ ix ] * N;
out[ io+strideOut ] = N;
return out;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ double API_SUFFIX(stdlib_strided_dnannsumkbn2_ndarray)( const CBLAS_INT N, const
if ( stdlib_base_is_nan( X[ 0 ] ) ) {
return sum;
}
sum = X[ 0 ] * N;
*n += N;
return stdlib_base_abs( X[ 0 ] ) * N;
return sum;
}
ix = offsetX;
ccs = 0.0; // second order correction term for lost lower order bits
Expand Down

0 comments on commit abfe9ca

Please sign in to comment.