From 5f4076de684da4507943a86e26dcaa5479cdf69b Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Fri, 3 Feb 2023 17:48:43 +0100 Subject: Temporary commit. Will cleanup cspan and usage. --- misc/examples/multidim.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'misc/examples') diff --git a/misc/examples/multidim.c b/misc/examples/multidim.c index d0ddf839..49b24172 100644 --- a/misc/examples/multidim.c +++ b/misc/examples/multidim.c @@ -5,6 +5,7 @@ #include using_cspan3(ispan, int); +#define c_ALL 0,-1 int main() { @@ -30,7 +31,8 @@ int main() } puts("ss3 = ms3[:, 1:3, 1:3]"); ispan3 ss3 = ms3; - cspan_slice(&ss3, {0,-1}, {1,3}, {1,3}); + //cspan_slice(&ss3, {c_ALL}, {1,3}, {1,3}); + ss3 = cspan_subslice(ispan3, &ms3, {c_ALL}, {1,3}, {1,3}); for (int i=0; i != ss3.dim[0]; i++) { for (int j=0; j != ss3.dim[1]; j++) { -- cgit v1.2.3