summaryrefslogtreecommitdiffhomepage
path: root/docs/cspan_api.md
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-01-15 21:46:32 +0100
committerTyge Løvset <[email protected]>2023-01-15 21:46:32 +0100
commitffeeb9dd42cc58c94005e85215d8db6bbb2a8806 (patch)
treebedae36dd4cc7277ba92951c1cb4ab75bb75b444 /docs/cspan_api.md
parent4c4f7a6a594f66183d33c9c8ef486c9af6fcd8fd (diff)
downloadSTC-modified-ffeeb9dd42cc58c94005e85215d8db6bbb2a8806.tar.gz
STC-modified-ffeeb9dd42cc58c94005e85215d8db6bbb2a8806.zip
some cspan docs fixes.
Diffstat (limited to 'docs/cspan_api.md')
-rw-r--r--docs/cspan_api.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/cspan_api.md b/docs/cspan_api.md
index 3e6ab7c7..2ee9c864 100644
--- a/docs/cspan_api.md
+++ b/docs/cspan_api.md
@@ -31,10 +31,10 @@ unsigned cspan_rank(const SpanType* self); // r
ValueType* cspan_at(SpanType* self, size_t x, ...); // access element
size_t cspan_index(const SpanType* self, size_t x, ...); // index of element
-SpanType cspan_slice1(SpanType1* self, size_t x0, size_t width); // get a slice of a 1D cspan
-SpanType cspan_slice2(SpanType2* self, size_t x0, size_t width); // get a slice of a 2D cspan
-SpanType cspan_slice3(SpanType3* self, size_t x0, size_t width); // get a slice of a 3D cspan
-SpanType cspan_slice4(SpanType4* self, size_t x0, size_t width); // get a slice of a 4D cspan
+SpanType1 cspan_slice1(SpanType1* self, size_t x0, size_t width); // get a slice of a 1D cspan
+SpanType2 cspan_slice2(SpanType2* self, size_t x0, size_t width); // get a slice of a 2D cspan
+SpanType3 cspan_slice3(SpanType3* self, size_t x0, size_t width); // get a slice of a 3D cspan
+SpanType4 cspan_slice4(SpanType4* self, size_t x0, size_t width); // get a slice of a 4D cspan
// Ex usage 1: MySpan2 ms2 = cspan_3to2(&ms3, ms3.dim[0]-1); // last x slice
// Ex usage 2: ms2 = (MySpan2)cspan_3to2(&ms3, 0); // first x slice