Skip to content

Commit

Permalink
fix: add code review suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
headlessNode committed Oct 11, 2024
1 parent a22192c commit 704ecb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ function dnansumkbn( N, x, strideX, offsetX ) {
var i;

sum = 0.0;
c = 0.0;
if ( N <= 0 ) {
return 0.0;
}
Expand All @@ -72,6 +71,7 @@ function dnansumkbn( N, x, strideX, offsetX ) {
sum = x[ ix ] * N;
return sum;
}
c = 0.0;
for ( i = 0; i < N; i++ ) {
v = x[ ix ];
if ( isnan( v ) === false ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ double API_SUFFIX(stdlib_strided_dnansumkbn_ndarray)( const CBLAS_INT N, const d
double c;

sum = 0.0;
c = 0.0;
if ( N <= 0 ) {
return sum;
}
Expand All @@ -82,6 +81,7 @@ double API_SUFFIX(stdlib_strided_dnansumkbn_ndarray)( const CBLAS_INT N, const d
sum = X[ ix ] * N;
return sum;
}
c = 0.0;
for ( i = 0; i < N; i++ ) {
v = X[ ix ];
if ( !stdlib_base_is_nan( v ) ) {
Expand Down

0 comments on commit 704ecb8

Please sign in to comment.