summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/multidim.c
AgeCommit message (Collapse)Author
2023-07-20Moved examples to sub-directories. Added cotask1.c cotask2.c examples.tylov
2023-07-15Improved warning, and other enhancements in ccommon.htylov
2023-07-15Reverted to cspan_submdX() without output span type as first argument. ↵tylov
Type/argument safety is still present.
2023-07-11Fixed an issue in template.htylov
Reverted to cspan_md() and cspan_md_left() for column-major. Changed cspan_submdX(): add OutputSpanType as first parameter - aligns with cspan_slice() and adds type safety.
2023-07-11Internal updates and doc reorg.tylov
2023-07-08Added support for column-major md cspan.tylov
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.
2023-05-20Rename c_make() macro to c_init(). c_make still available, but deprecated.Tyge Løvset
2023-02-08Changed to use lowercase flow-control macros in examples (uppercase will ↵Tyge Løvset
still be supported). Improved many examples to use c_make() to init containers.
2023-02-03Renamed dim to shape in cspan. Not 100% sure it will survive.Tyge Løvset
2023-02-03Feature completed cspan.Tyge Løvset
2023-02-03Temporary commit. Will cleanup cspan and usage.Tyge Løvset
2023-02-03Update cspan, needs more testing.Tyge Løvset
2023-01-31Updates, and prepare for the big unsigned ==> signed transformation.Tyge Løvset
2023-01-29Some method renaming in cspan: cspan_multidim() ctor => cspan_md(). ↵Tyge Løvset
cspan_atN() => cspan_submdN(). cstr_replace_ex() merged as overload of cstr_replace().
2023-01-28Generalized cspan_slice(), and improved usage/ergonomics.Tyge Lovset
2023-01-28Added flat iteration over a sliced cspan.Tyge Lovset
2023-01-27Added stride to cspan (md), prepared for cspan_slice() function.Tyge Løvset
2023-01-25Updates on cspan ++.Tyge Løvset
2023-01-25Reverted cspan_subdim*() to cspan_at*(). Added cspan_flatten() constructor.Tyge Løvset
2023-01-22Added cspan_init() for static initializing and a minor fix. Added cregex ↵Tyge Løvset
replace tests.
2023-01-20Renamed cspan_at2 .. at4 to cspan_subdim2 .. Improved cspan docs.Tyge Løvset
2023-01-18Reverted to use self pointers instead of values, as cspan is not a pure ↵Tyge Løvset
view, but can modify its elements.
2023-01-18using_cspanN(S, T, R) now defines S, S1, S2.. (not S1)Tyge Løvset
2023-01-16Final cspan API changes: cspan_XtoY() => cspan_atX(). Docs updated.Tyge Løvset
2023-01-16cspan API change: Switched to passing spans as value instead of pointer ↵Tyge Løvset
(except resize).
2023-01-15Large commit:Tyge Løvset
- Moved stc/algo/cspan.h to stc/cspan.h - its a data view type similar to csview. +Many updates. Added docs/cspan_api.md page! - Update c11/fmt.h to VER 2.0: NEW API, see test. NOTE: fmt.h is not officially part of STC, as it is C11, and STC is C99. - Renamed crange_LITERAL() back to crange_literal(), and cspan_LITERAL() to cspan_literal(). These returns a compound literal (lvalue) that can be passed to a c_FOR*-iterator.
2023-01-14Merged cmspan into cspan. cspan is now multi-dimensional array view (also ↵Tyge Løvset
1-dimensional).
2023-01-13Added algo/cmspan.h: multi-dim span, similar to c++23 mdspan. May get some ↵Tyge Løvset
API changes. Changed cspan.h, these may merge.