@@ -152,7 +152,7 @@ console.log( out );
152152
153153## Notes
154154
155- - If ` N <= 0 ` , both functions return ` x ` unchanged.
155+ - If the sum of ` N ` , ` N1 ` , and ` N2 ` is less than or equal to ` 1 ` , both functions return the output array unchanged.
156156
157157</section >
158158
@@ -222,14 +222,14 @@ console.log( 'Output', out );
222222
223223<!-- lint disable maximum-heading-length -->
224224
225- #### stdlib_strided_dediff( N, x , strideX, N1, prepend, strideP, N2, append, strideA, \* out , strideOut )
225+ #### stdlib_strided_dediff( N, \* X , strideX, N1, \* prepend, strideP, N2, \* append, strideA, \* Out , strideOut )
226226
227227Calculates the differences between consecutive elements of a double-precision floating-point strided array.
228228
229229``` c
230- double x[] = { 2.0, 4.0, 6.0, 8.0, 10.0 };
231- double p[ ] = { 1.0 };
232- double a[ ] = { 11.0 };
230+ const double x[] = { 2.0, 4.0, 6.0, 8.0, 10.0 };
231+ const double p[ ] = { 1.0 };
232+ const double a[ ] = { 11.0 };
233233double out[ ] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
234234
235235stdlib_strided_dediff ( 5, x, 1, 1, p, 1, 1, a, 1, out, 1 );
@@ -238,31 +238,31 @@ stdlib_strided_dediff( 5, x, 1, 1, p, 1, 1, a, 1, out, 1 );
238238The function accepts the following arguments:
239239
240240- **N**: `[in] CBLAS_INT` number of indexed elements.
241- - **x **: `[in] double` input [`Float64Array`][@stdlib/array/float64].
242- - **strideX**: `[in] CBLAS_INT` stride length for `x `.
241+ - **X **: `[in] double` input [`Float64Array`][@stdlib/array/float64].
242+ - **strideX**: `[in] CBLAS_INT` stride length for `X `.
243243- **N1**: `[in] CBLAS_INT` number of elements in `prepend`.
244244- **prepend**: `[in] double` a [`Float64Array`][@stdlib/array/float64] containing values to prepend after computing differences.
245245- **strideP**: `[in] CBLAS_INT` stride length for `prepend`.
246246- **N2**: `[in] CBLAS_INT` number of elements in `append`.
247247- **append**: `[in] double` a [`Float64Array`][@stdlib/array/float64] containing values to append after computing differences.
248248- **strideA**: `[in] CBLAS_INT` strides length for `append`.
249- - **out **: `[in ] double` output [`Float64Array`][@stdlib/array/float64]. Must have `N + N1 + N2 - 1` elements.
250- - **strideOut**: `[in] CBLAS_INT` stride length for `out `.
249+ - **Out **: `[inout ] double` output [`Float64Array`][@stdlib/array/float64]. Must have `N + N1 + N2 - 1` elements.
250+ - **strideOut**: `[in] CBLAS_INT` stride length for `Out `.
251251
252252```c
253- void stdlib_strided_dediff( const CBLAS_INT N, const double *X, const CBLAS_INT strideX, const CBLAS_INT N1, const double *prepend, const CBLAS_INT strideP, const CBLAS_INT N2, const double *append, const CBLAS_INT strideA, double *out , const CBLAS_INT strideOut );
253+ void stdlib_strided_dediff( const CBLAS_INT N, const double *X, const CBLAS_INT strideX, const CBLAS_INT N1, const double *prepend, const CBLAS_INT strideP, const CBLAS_INT N2, const double *append, const CBLAS_INT strideA, double *Out , const CBLAS_INT strideOut );
254254```
255255
256256<!-- lint disable maximum-heading-length -->
257257
258- #### stdlib_strided_dediff_ndarray( N, x , strideX, offsetX, N1, prepend, strideP, offsetP, N2, append, strideA, offsetA, \* out , strideOut, offsetOut )
258+ #### stdlib_strided_dediff_ndarray( N, \* X , strideX, offsetX, N1, \* prepend, strideP, offsetP, N2, \* append, strideA, offsetA, \* Out , strideOut, offsetOut )
259259
260260Calculates the differences between consecutive elements of a double-precision floating-point strided array using alternative indexing semantics.
261261
262262``` c
263- double x[] = { 2.0, 4.0, 6.0, 8.0, 10.0 };
264- double p[ ] = { 1.0 };
265- double a[ ] = { 11.0 };
263+ const double x[] = { 2.0, 4.0, 6.0, 8.0, 10.0 };
264+ const double p[ ] = { 1.0 };
265+ const double a[ ] = { 11.0 };
266266double out[ ] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
267267
268268stdlib_strided_dediff_ndarray ( 5, 1, x, 1, 0, 1, p, 1, 0, 1, a, 1, 0, out, 1, 0 );
@@ -271,9 +271,9 @@ stdlib_strided_dediff_ndarray( 5, 1, x, 1, 0, 1, p, 1, 0, 1, a, 1, 0, out, 1, 0
271271The function accepts the following arguments:
272272
273273- **N**: `[in] CBLAS_INT` number of indexed elements.
274- - **x **: `[in] double` input [`Float64Array`][@stdlib/array/float64].
275- - **strideX**: `[in] CBLAS_INT` stride length for `x `.
276- - **offsetX**: `[in] CBLAS_INT` starting index for `x `.
274+ - **X **: `[in] double` input [`Float64Array`][@stdlib/array/float64].
275+ - **strideX**: `[in] CBLAS_INT` stride length for `X `.
276+ - **offsetX**: `[in] CBLAS_INT` starting index for `X `.
277277- **N1**: `[in] CBLAS_INT` number of elements in `prepend`.
278278- **prepend**: `[in] double` a [`Float64Array`][@stdlib/array/float64] containing values to prepend after computing differences.
279279- **strideP**: `[in] CBLAS_INT` stride length for `prepend`.
@@ -282,12 +282,12 @@ The function accepts the following arguments:
282282- **append**: `[in] double` a [`Float64Array`][@stdlib/array/float64] containing values to append after computing differences.
283283- **strideA**: `[in] CBLAS_INT` strides length for `append`.
284284- **offsetA**: `[in] CBLAS_INT` starting index for `append`.
285- - **out **: `[in ] double` output [`Float64Array`][@stdlib/array/float64]. Must have `N + N1 + N2 - 1` elements.
286- - **strideOut**: `[in] CBLAS_INT` stride length for `out `.
287- - **offsetOut**: `[in] CBLAS_INT` starting index for `out `.
285+ - **Out **: `[inout ] double` output [`Float64Array`][@stdlib/array/float64]. Must have `N + N1 + N2 - 1` elements.
286+ - **strideOut**: `[in] CBLAS_INT` stride length for `Out `.
287+ - **offsetOut**: `[in] CBLAS_INT` starting index for `Out `.
288288
289289```c
290- void stdlib_strided_dediff_ndarray( const CBLAS_INT N, const double *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, const CBLAS_INT N1, const double *prepend, const CBLAS_INT strideP, const CBLAS_INT offsetP, const CBLAS_INT N2, const double *append, const CBLAS_INT strideA, const CBLAS_INT offsetA, double *out , const CBLAS_INT strideOut, const CBLAS_INT offsetOut );
290+ void stdlib_strided_dediff_ndarray( const CBLAS_INT N, const double *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, const CBLAS_INT N1, const double *prepend, const CBLAS_INT strideP, const CBLAS_INT offsetP, const CBLAS_INT N2, const double *append, const CBLAS_INT strideA, const CBLAS_INT offsetA, double *Out , const CBLAS_INT strideOut, const CBLAS_INT offsetOut );
291291```
292292
293293</section >
0 commit comments