Skip to content

Commit 00b45b2

Browse files
committed
docs: update examples
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 2e9ea06 commit 00b45b2

File tree

2 files changed

+114
-121
lines changed
  • lib/node_modules/@stdlib/ndarray/base/unary-accumulate/scripts/templates

2 files changed

+114
-121
lines changed

lib/node_modules/@stdlib/ndarray/base/unary-accumulate/scripts/templates/docs.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ int64_t ndims = 2;
3030

3131
// Define the array shapes:
3232
int64_t xsh[] = { {{NDARRAY_SHAPE_2D}} };
33-
int64_t ish[] = {};
34-
int64_t osh[] = {};
33+
int64_t ish[] = { 0 };
34+
int64_t osh[] = { 0 };
3535

3636
// Define the strides:
3737
int64_t sx[] = { {{INPUT_NDARRAY_1_STRIDES_2D}} };
@@ -61,14 +61,14 @@ if ( x == NULL ) {
6161
}
6262

6363
// Create a zero-dimensional initial value ndarray:
64-
struct ndarray *initial = stdlib_ndarray_allocate( idtype, ibuf, ndims, ish, si, oi, order, imode, nsubmodes, submodes );
64+
struct ndarray *initial = stdlib_ndarray_allocate( idtype, ibuf, 0, ish, si, oi, order, imode, nsubmodes, submodes );
6565
if ( initial == NULL ) {
6666
fprintf( stderr, "Error allocating memory.\n" );
6767
exit( EXIT_FAILURE );
6868
}
6969

7070
// Create a zero-dimensional output ndarray:
71-
struct ndarray *out = stdlib_ndarray_allocate( odtype, obuf, ndims, osh, so, oo, order, imode, nsubmodes, submodes );
71+
struct ndarray *out = stdlib_ndarray_allocate( odtype, obuf, 0, osh, so, oo, order, imode, nsubmodes, submodes );
7272
if ( out == NULL ) {
7373
fprintf( stderr, "Error allocating memory.\n" );
7474
exit( EXIT_FAILURE );

0 commit comments

Comments
 (0)