diff options
| author | tylov <[email protected]> | 2023-07-08 14:00:23 +0200 |
|---|---|---|
| committer | tylov <[email protected]> | 2023-07-08 14:00:23 +0200 |
| commit | 2d1011251596edee16d3bd6afb0e3c3b9df1157b (patch) | |
| tree | bde4e7fd426ef52678590fb5b2e7e4af63b1fb9b /misc/examples/multidim.c | |
| parent | 3a26c8fe4bce8a3af62042dd0fca5f36221359a9 (diff) | |
| download | STC-modified-2d1011251596edee16d3bd6afb0e3c3b9df1157b.tar.gz STC-modified-2d1011251596edee16d3bd6afb0e3c3b9df1157b.zip | |
Added support for column-major md cspan.
API change: the create function cspan_md(order, array, d1, d2, ...) has the new first argument order, which must be either 'C' or 'F' (C: row-major or Fortran: column-major). The representation of strides was changed.
Diffstat (limited to 'misc/examples/multidim.c')
| -rw-r--r-- | misc/examples/multidim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/multidim.c b/misc/examples/multidim.c index 2f3ad907..df8f485d 100644 --- a/misc/examples/multidim.c +++ b/misc/examples/multidim.c @@ -14,7 +14,7 @@ int main() ispan ms1 = cspan_from(&v); // View the same data as a 3D array 2 x 3 x 4 - ispan3 ms3 = cspan_md(v.data, 2, 3, 4); + ispan3 ms3 = cspan_md('C', v.data, 2, 3, 4); puts("ms3:"); for (int i=0; i != ms3.shape[0]; i++) { |
