@@ -30,8 +30,8 @@ int64_t ndims = 2;
30
30
31
31
// Define the array shapes:
32
32
int64_t xsh[] = { {{NDARRAY_SHAPE_2D}} };
33
- int64_t ish[] = {};
34
- int64_t osh[] = {};
33
+ int64_t ish[] = { 0 };
34
+ int64_t osh[] = { 0 };
35
35
36
36
// Define the strides:
37
37
int64_t sx[] = { {{INPUT_NDARRAY_1_STRIDES_2D}} };
@@ -61,14 +61,14 @@ if ( x == NULL ) {
61
61
}
62
62
63
63
// 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 );
65
65
if ( initial == NULL ) {
66
66
fprintf( stderr, "Error allocating memory.\n" );
67
67
exit( EXIT_FAILURE );
68
68
}
69
69
70
70
// 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 );
72
72
if ( out == NULL ) {
73
73
fprintf( stderr, "Error allocating memory.\n" );
74
74
exit( EXIT_FAILURE );
0 commit comments