You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/blas/ext/base/ddiff/lib/ndarray.js
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -76,12 +76,11 @@ function ddiff( N, k, x, strideX, offsetX, N1, prepend, strideP, offsetP, N2, ap
76
76
if(total<=1){
77
77
returnout;
78
78
}
79
-
80
-
// If k >= total number of elements, the k-th forward difference results in an empty array, so this function is a no-op...
79
+
// If `k` is greater than or equal to the total number of elements, the k-th forward difference results in an empty array, so this function is a no-op...
81
80
if(k>=total){
82
81
returnout;
83
82
}
84
-
83
+
// If `k` is equal to zero, there are no differences to compute, so we merely copy the various arrays into the output array...
0 commit comments