We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
stride
1 parent e1525b0 commit 4fd868eCopy full SHA for 4fd868e
include/array/array.h
@@ -391,7 +391,8 @@ NDARRAY_HOST_DEVICE index_t clamp(index_t x, const Range& r) {
391
* These parameters define a mapping from the indices of the dimension to
392
* offsets: `offset(x) = (x - min)*stride`. The extent does not affect the
393
* mapping directly. Values not in the interval `[min, min + extent)` are considered
394
- * to be out of bounds. */
+ * to be out of bounds. Note that `stride` is in units of number of array elements,
395
+ * not bytes. */
396
template <index_t Min_ = dynamic, index_t Extent_ = dynamic, index_t Stride_ = dynamic>
397
class dim : protected interval<Min_, Extent_> {
398
public:
0 commit comments