Skip to content

Commit 5718cb9

Browse files
committed
Minor consistency tweak, might reduce compiler work a little
1 parent 2761b36 commit 5718cb9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/array/array.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,10 +1164,10 @@ class shape {
11641164
NDARRAY_HOST_DEVICE dims_type& dims() { return dims_; }
11651165
NDARRAY_HOST_DEVICE const dims_type& dims() const { return dims_; }
11661166

1167-
NDARRAY_HOST_DEVICE index_type min() const { return internal::mins(dims(), dim_indices()); }
1168-
NDARRAY_HOST_DEVICE index_type max() const { return internal::maxs(dims(), dim_indices()); }
1169-
NDARRAY_HOST_DEVICE index_type extent() const { return internal::extents(dims(), dim_indices()); }
1170-
NDARRAY_HOST_DEVICE index_type stride() const { return internal::strides(dims(), dim_indices()); }
1167+
NDARRAY_HOST_DEVICE index_type min() const { return internal::mins(dims_, dim_indices()); }
1168+
NDARRAY_HOST_DEVICE index_type max() const { return internal::maxs(dims_, dim_indices()); }
1169+
NDARRAY_HOST_DEVICE index_type extent() const { return internal::extents(dims_, dim_indices()); }
1170+
NDARRAY_HOST_DEVICE index_type stride() const { return internal::strides(dims_, dim_indices()); }
11711171

11721172
/** Compute the min, max, or extent of the flat offsets of this shape.
11731173
* This is the min, max, or extent of the valid interval of values returned

0 commit comments

Comments
 (0)