diff options
| author | Tyge Løvset <[email protected]> | 2023-02-03 10:38:18 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-02-03 10:38:18 +0100 |
| commit | feef5067e0c3f1cf113b4fa8b302ac1bfa249e68 (patch) | |
| tree | 6a0dc940e9321bbb9a22bbf1b1e3943a31981cdb /misc | |
| parent | 9bc4e3b53839d73af7e7d11043fb9e1b064836e3 (diff) | |
| download | STC-modified-feef5067e0c3f1cf113b4fa8b302ac1bfa249e68.tar.gz STC-modified-feef5067e0c3f1cf113b4fa8b302ac1bfa249e68.zip | |
Update cspan, needs more testing.
Diffstat (limited to 'misc')
| -rw-r--r-- | misc/examples/multidim.c | 2 | ||||
| -rw-r--r-- | misc/tests/cspan_test.c | 2 |
2 files changed, 2 insertions, 2 deletions
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++) { diff --git a/misc/tests/cspan_test.c b/misc/tests/cspan_test.c index 26a662e6..43422f1c 100644 --- a/misc/tests/cspan_test.c +++ b/misc/tests/cspan_test.c @@ -32,7 +32,7 @@ CTEST(cspan, slice) { } intspan2 m2 = m1; - cspan_slice(&m2, {0}, {2,4}); + cspan_slice(&m2, {0,-1}, {2,4}); size_t sum2 = 0; for (size_t i = 0; i < m2.dim[0]; ++i) { |
