aten/src/THC/THCTensor.cpp
/*
 A comparator that will sort SizeAndStride structs by stride,
 in ascending order.
 */
A comparator that will sort SizeAndStride structs by stride,
in ascending order.
A comparator that will sort SizeAndStride structs by stride in ascending order .
int compareSizeAndStride(const void* a, const void* b) {
  const SizeAndStride* aS = (const SizeAndStride*) a;
  const SizeAndStride* bS = (const SizeAndStride*) b;
  if (aS->stride < bS->stride) return -1;
  if (aS->stride == bS->stride) return 0;
  return 1;
}
int compareSizeAndStride ( const void * a , const void * b ) { const SizeAndStride * aS = ( const SizeAndStride * ) a ; const SizeAndStride * bS = ( const SizeAndStride * ) b ; if ( aS -> stride < bS -> stride ) return -1 ; if ( aS -> stride == bS -> stride ) return 0 ; return 1 ; }
A comparator that will sort SizeAndStride structs by stride,
in ascending order.
A comparator that will sort SizeAndStride structs by stride in ascending order .