From feef5067e0c3f1cf113b4fa8b302ac1bfa249e68 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Fri, 3 Feb 2023 10:38:18 +0100 Subject: Update cspan, needs more testing. --- misc/examples/multidim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc/examples') diff --git a/misc/examples/multidim.c b/misc/examples/multidim.c index 3bc1feec..d0ddf839 100644 --- a/misc/examples/multidim.c +++ b/misc/examples/multidim.c @@ -30,7 +30,7 @@ int main() } puts("ss3 = ms3[:, 1:3, 1:3]"); ispan3 ss3 = ms3; - cspan_slice(&ss3, {0}, {1,3}, {1,3}); + cspan_slice(&ss3, {0,-1}, {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