Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ static double benchmark( void ) {
int i;

int64_t out[ 2 ];
int64_t shape[] = { 10, 10, 10 };
const int64_t shape[] = { 10, 10, 10 };
int64_t strides[] = { 100, 10, 1 };
int64_t offset = 1000;
int64_t ndims = 3;
const int64_t offset = 1000;
const int64_t ndims = 3;

t = tic();
for ( i = 0; i < ITERATIONS; i++ ) {
strides[ 0 ] *= ( rand_double() < 0.5 ) ? 1 : -1;
strides[ 0 ] = ( i%2 ) ? 100 : -100;
stdlib_ndarray_minmax_view_buffer_index( ndims, shape, strides, offset, out );
if ( out[ 0 ] > 1e10 ) {
printf( "unexpected result\n" );
Expand Down