From a344b43728ff40a2e1ee25f2f1b592f33432aee7 Mon Sep 17 00:00:00 2001 From: Tyge Lovset Date: Sat, 28 Jan 2023 22:07:28 +0100 Subject: Generalized cspan_slice(), and improved usage/ergonomics. --- 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 f3d9e865..e25d727e 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, c_SLICE(0), c_SLICE(1,3), c_SLICE(1,3)); + cspan_slice(&ss3, {0}, {1,3}, {1,3}); for (unsigned i=0; i != ss3.dim[0]; i++) { for (unsigned j=0; j != ss3.dim[1]; j++) { -- cgit v1.2.3