diff options
| author | Tyge Løvset <[email protected]> | 2023-08-21 18:31:49 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-08-21 18:31:49 +0200 |
| commit | 2d33308d36063f3726f3652b0b0cbe3668b8bc68 (patch) | |
| tree | 2f3750a00190e48682b9082a36a5085defa128e0 /misc/examples/spans/mdspan.c | |
| parent | 7b57eb4240ee886278b862ed8c90618376237afc (diff) | |
| download | STC-modified-2d33308d36063f3726f3652b0b0cbe3668b8bc68.tar.gz STC-modified-2d33308d36063f3726f3652b0b0cbe3668b8bc68.zip | |
Changed 'order' to 'layout' in cspan md.
Neigher the 'C' / 'F' convension from python, nor left / right from std::mdspan are great names => changed to c_ROWMAJOR / c_COLMAJOR like in matlab.
Diffstat (limited to 'misc/examples/spans/mdspan.c')
| -rw-r--r-- | misc/examples/spans/mdspan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/spans/mdspan.c b/misc/examples/spans/mdspan.c index db601850..630ffddb 100644 --- a/misc/examples/spans/mdspan.c +++ b/misc/examples/spans/mdspan.c @@ -9,7 +9,7 @@ int main(void) { double* data = c_new_n(double, nx*ny*nz); printf("\nMultidim span ms[5, 4, 3], fortran ordered"); - DSpan3 ms = cspan_md_order('F', data, nx, ny, nz); // Fortran, not 'C' + DSpan3 ms = cspan_md_layout(c_COLMAJOR, data, nx, ny, nz); int idx = 0; for (int i = 0; i < ms.shape[0]; ++i) |
