@@ -61,8 +61,8 @@ The function has the following parameters:
6161- ** prepend** : a [ ` Float64Array ` ] [ @stdlib/array/float64 ] containing values to prepend prior to computing differences.
6262- ** strideP** : stride length for ` prepend ` .
6363- ** N2** : number of elements to ` append ` .
64- - ** append** : a [ ` Float64Array ` ] [ @stdlib/array/float64 ] containing values to append prior to computing differences..
65- - ** strideA** : strides length for ` append ` .
64+ - ** append** : a [ ` Float64Array ` ] [ @stdlib/array/float64 ] containing values to append prior to computing differences.
65+ - ** strideA** : stride length for ` append ` .
6666- ** out** : output [ ` Float64Array ` ] [ @stdlib/array/float64 ] . Must have ` N + N1 + N2 - k ` elements.
6767- ** strideOut** : stride length for ` out ` .
6868- ** workspace** : workspace [ ` Float64Array ` ] [ @stdlib/array/float64 ] . Must have ` N + N1 + N2 - 1 ` elements.
@@ -161,7 +161,7 @@ console.log( out );
161161
162162## Notes
163163
164- - If ` N <= 0 ` , both functions return ` x ` unchanged.
164+ - If ` N <= 0 ` , both functions return the output array unchanged.
165165
166166</section >
167167
@@ -233,14 +233,14 @@ console.log( 'Output', out );
233233
234234<!-- lint disable maximum-heading-length -->
235235
236- #### stdlib_strided_ddiff( N, k, x , strideX, N1, prepend, strideP, N2, append, strideA, \* out , strideOut, workspace , strideW )
236+ #### stdlib_strided_ddiff( N, k, \* X , strideX, N1, \* prepend, strideP, N2, \* append, strideA, \* Out , strideOut, \* Workspace , strideW )
237237
238238Calculates the k-th discrete forward differences of a double-precision floating-point strided array.
239239
240240``` c
241- double x[] = { 2.0, 4.0, 6.0, 8.0, 10.0 };
242- double p[ ] = { 1.0 };
243- double a[ ] = { 11.0 };
241+ const double x[] = { 2.0, 4.0, 6.0, 8.0, 10.0 };
242+ const double p[ ] = { 1.0 };
243+ const double a[ ] = { 11.0 };
244244double out[ ] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
245245double w[ ] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
246246
@@ -251,33 +251,33 @@ The function accepts the following arguments:
251251
252252- **N**: `[in] CBLAS_INT` number of indexed elements.
253253- **k**: `[in] CBLAS_INT` number of times to recursively compute differences.
254- - **x **: `[in] double` input [`Float64Array`][@stdlib/ array/float64] .
254+ - **X **: `[in] double* ` input array.
255255- **strideX**: `[in] CBLAS_INT` stride length for `x`.
256256- **N1**: `[in] CBLAS_INT` number of elements in `prepend`.
257- - **prepend**: `[in] double` a [`Float64Array`][@stdlib/ array/float64] containing values to prepend prior to computing differences.
257+ - **prepend**: `[in] double*` array containing values to prepend prior to computing differences.
258258- **strideP**: `[in] CBLAS_INT` stride length for `prepend`.
259259- **N2**: `[in] CBLAS_INT` number of elements in `append`.
260- - **append**: `[in] double` a [`Float64Array`][@stdlib/ array/float64] containing values to append prior to computing differences. .
261- - **strideA**: `[in] CBLAS_INT` strides length for `append`.
262- - **out **: `[in ] double` output [`Float64Array`][@stdlib/ array/float64] . Must have `N + N1 + N2 - k` elements.
260+ - **append**: `[in] double*` array containing values to append prior to computing differences.
261+ - **strideA**: `[in] CBLAS_INT` stride length for `append`.
262+ - **Out **: `[inout ] double* ` output array. Must have `N + N1 + N2 - k` elements.
263263- **strideOut**: `[in] CBLAS_INT` stride length for `out`.
264- - **workspace **: `[in ] double` workspace [`Float64Array`][@stdlib/ array/float64] . Must have `N + N1 + N2 - 1` elements.
264+ - **Workspace **: `[inout ] double* ` workspace array. Must have `N + N1 + N2 - 1` elements.
265265- **strideW**: `[in] CBLAS_INT` stride length for `workspace`.
266266
267267```c
268- void stdlib_strided_ddiff( const CBLAS_INT N, const CBLAS_INT k, 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, double *workspace, const CBLAS_INT strideW );
268+ void stdlib_strided_ddiff( const CBLAS_INT N, const CBLAS_INT k, 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, double *Workspace, const CBLAS_INT strideW );
269269```
270270
271271<!-- lint disable maximum-heading-length -->
272272
273- #### stdlib_strided_ddiff_ndarray( N, k, x , strideX, offsetX, N1, prepend, strideP, offsetP, N2, append, strideA, offsetA, \* out , strideOut, offsetOut, w , strideW, offsetW )
273+ #### stdlib_strided_ddiff_ndarray( N, k, \* X , strideX, offsetX, N1, \* prepend, strideP, offsetP, N2, \* append, strideA, offsetA, \* Out , strideOut, offsetOut, \* W , strideW, offsetW )
274274
275275Calculates the k-th discrete forward differences of a double-precision floating-point strided array using alternative indexing semantics.
276276
277277``` c
278- double x[] = { 2.0, 4.0, 6.0, 8.0, 10.0 };
279- double p[ ] = { 1.0 };
280- double a[ ] = { 11.0 };
278+ const double x[] = { 2.0, 4.0, 6.0, 8.0, 10.0 };
279+ const double p[ ] = { 1.0 };
280+ const double a[ ] = { 11.0 };
281281double out[ ] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
282282double w[ ] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
283283
@@ -288,26 +288,26 @@ The function accepts the following arguments:
288288
289289- **N**: `[in] CBLAS_INT` number of indexed elements.
290290- **k**: `[in] CBLAS_INT` number of times to recursively compute differences.
291- - **x **: `[in] double` input [`Float64Array`][@stdlib/ array/float64] .
291+ - **X **: `[in] double* ` input array.
292292- **strideX**: `[in] CBLAS_INT` stride length for `x`.
293293- **offsetX**: `[in] CBLAS_INT` starting index for `x`.
294294- **N1**: `[in] CBLAS_INT` number of elements in `prepend`.
295- - **prepend**: `[in] double` a [`Float64Array`][@stdlib/ array/float64] containing values to prepend prior to computing differences.
295+ - **prepend**: `[in] double*` array containing values to prepend prior to computing differences.
296296- **strideP**: `[in] CBLAS_INT` stride length for `prepend`.
297297- **offsetP**: `[in] CBLAS_INT` starting index for `prepend`.
298298- **N2**: `[in] CBLAS_INT` number of elements in `append`.
299- - **append**: `[in] double` a [`Float64Array`][@stdlib/ array/float64] containing values to append prior to computing differences. .
300- - **strideA**: `[in] CBLAS_INT` strides length for `append`.
299+ - **append**: `[in] double*` array containing values to append prior to computing differences.
300+ - **strideA**: `[in] CBLAS_INT` stride length for `append`.
301301- **offsetA**: `[in] CBLAS_INT` starting index for `append`.
302- - **out **: `[in ] double` output [`Float64Array`][@stdlib/ array/float64] . Must have `N + N1 + N2 - k` elements.
302+ - **Out **: `[inout ] double* ` output array. Must have `N + N1 + N2 - k` elements.
303303- **strideOut**: `[in] CBLAS_INT` stride length for `out`.
304304- **offsetOut**: `[in] CBLAS_INT` starting index for `out`.
305- - **workspace **: `[in ] double` workspace [`Float64Array`][@stdlib/ array/float64] . Must have `N + N1 + N2 - 1` elements.
305+ - **Workspace **: `[inout ] double* ` workspace array. Must have `N + N1 + N2 - 1` elements.
306306- **strideW**: `[in] CBLAS_INT` stride length for `workspace`.
307307- **offsetW**: `[in] CBLAS_INT` starting index for `workspace`.
308308
309309```c
310- void stdlib_strided_ddiff_ndarray( const CBLAS_INT N, const CBLAS_INT k, 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, double *workspace, const CBLAS_INT strideW, const CBLAS_INT offsetW );
310+ void stdlib_strided_ddiff_ndarray( const CBLAS_INT N, const CBLAS_INT k, 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, double *Workspace, const CBLAS_INT strideW, const CBLAS_INT offsetW );
311311```
312312
313313</section >
0 commit comments