diff options
| author | Tyge Løvset <[email protected]> | 2023-02-03 20:08:03 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-02-03 20:08:03 +0100 |
| commit | dc2c5fa4f1b319988c622f6172926652cabfd1aa (patch) | |
| tree | 38d9cc99d01ff4b9a27fc48e9feee00ad4a9a466 /misc/examples/multidim.c | |
| parent | 5f4076de684da4507943a86e26dcaa5479cdf69b (diff) | |
| download | STC-modified-dc2c5fa4f1b319988c622f6172926652cabfd1aa.tar.gz STC-modified-dc2c5fa4f1b319988c622f6172926652cabfd1aa.zip | |
Feature completed cspan.
Diffstat (limited to 'misc/examples/multidim.c')
| -rw-r--r-- | misc/examples/multidim.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/misc/examples/multidim.c b/misc/examples/multidim.c index 49b24172..49d7fbc4 100644 --- a/misc/examples/multidim.c +++ b/misc/examples/multidim.c @@ -5,7 +5,6 @@ #include <stdio.h> using_cspan3(ispan, int); -#define c_ALL 0,-1 int main() { @@ -32,7 +31,7 @@ int main() puts("ss3 = ms3[:, 1:3, 1:3]"); ispan3 ss3 = ms3; //cspan_slice(&ss3, {c_ALL}, {1,3}, {1,3}); - ss3 = cspan_subslice(ispan3, &ms3, {c_ALL}, {1,3}, {1,3}); + ss3 = cspan_slice(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++) { |
