diff options
author | Anton Khirnov <anton@khirnov.net> | 2019-04-17 10:18:45 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2019-04-17 10:27:53 +0200 |
commit | 6a92edee9bd679d1f71e66b2cc96456bead219fd (patch) | |
tree | 32d213a693cf0040ca022f9764f81aad69a7a609 /ndarray.h | |
parent | 552bcf4c906522c3ef7695654052f61e12260049 (diff) |
ndarray: support stepsizes other than 1 in slicing
Diffstat (limited to 'ndarray.h')
-rw-r--r-- | ndarray.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -25,7 +25,7 @@ typedef struct Slice { ptrdiff_t start; ptrdiff_t end; - size_t step; + ptrdiff_t step; } Slice; #define SLICE(start, end, step) ((Slice){ start, end, step }) |