diff options
| author | Tyge Lovset <[email protected]> | 2023-01-28 22:07:28 +0100 |
|---|---|---|
| committer | Tyge Lovset <[email protected]> | 2023-01-28 22:07:28 +0100 |
| commit | a344b43728ff40a2e1ee25f2f1b592f33432aee7 (patch) | |
| tree | ba44cf2e8256281ea406c2c39d4eeedaf13ddf4f /docs | |
| parent | 8b7561225a22bf15958a2d19da29c9822811fce6 (diff) | |
| download | STC-modified-a344b43728ff40a2e1ee25f2f1b592f33432aee7.tar.gz STC-modified-a344b43728ff40a2e1ee25f2f1b592f33432aee7.zip | |
Generalized cspan_slice(), and improved usage/ergonomics.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/cspan_api.md | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/cspan_api.md b/docs/cspan_api.md index c0b86239..32ef49c4 100644 --- a/docs/cspan_api.md +++ b/docs/cspan_api.md @@ -41,8 +41,7 @@ SpanType cspan_at2(SpanType2* self, size_t x); // retur SpanTypeN cspan_at3(SpanType3* self, size_t x, ...); // return a 1d or 2d subspan from a 3d span. SpanTypeN cspan_at4(SpanType4* self, size_t x, ...); // number of args determines rank of output span. -void cspan_slice(SpanTypeN* self, uint32_t xslice[2], ...); // slice multidim span into a md subspan. -uint32_t[2] c_SLICE(a, b) // use to specify a:b xslice, ... b is optional. +void cspan_slice(SpanTypeN* self, {x0,x1}, {y0,y1},...); // slice multidim span into a md subspan. // return a subspan of same rank: SpanType cspan_subspan(const SpanType* self, size_t offset, size_t count); |
