@@ -63,8 +63,8 @@ int main( void ) {
63
63
64
64
// Define the array shapes:
65
65
int64_t xsh [] = { 2 , 2 , 2 };
66
- int64_t ish [] = {};
67
- int64_t osh [] = {};
66
+ int64_t ish [] = { 0 };
67
+ int64_t osh [] = { 0 };
68
68
69
69
// Define the strides:
70
70
int64_t sx [] = { 32 , 16 , 8 };
@@ -94,14 +94,14 @@ int main( void ) {
94
94
}
95
95
96
96
// Create an initial value zero-dimensional ndarray:
97
- struct ndarray * initial = stdlib_ndarray_allocate ( dtype , ibuf , ndims , ish , si , oi , order , imode , nsubmodes , submodes );
97
+ struct ndarray * initial = stdlib_ndarray_allocate ( dtype , ibuf , 0 , ish , si , oi , order , imode , nsubmodes , submodes );
98
98
if ( initial == NULL ) {
99
99
fprintf ( stderr , "Error allocating memory.\n" );
100
100
exit ( EXIT_FAILURE );
101
101
}
102
102
103
103
// Create an output zero-dimensional ndarray:
104
- struct ndarray * out = stdlib_ndarray_allocate ( dtype , obuf , ndims , osh , so , oo , order , imode , nsubmodes , submodes );
104
+ struct ndarray * out = stdlib_ndarray_allocate ( dtype , obuf , 0 , osh , so , oo , order , imode , nsubmodes , submodes );
105
105
if ( out == NULL ) {
106
106
fprintf ( stderr , "Error allocating memory.\n" );
107
107
exit ( EXIT_FAILURE );
0 commit comments