summaryrefslogtreecommitdiffhomepage
path: root/docs/cspan_api.md
AgeCommit message (Collapse)Author
2023-09-01cspan: can now span over a intptr_t size array, but each dimension is still ↵tylov
limited to int32_t sizes.
2023-08-21cspan flat-iterator now prints c_COLMAJOR matrices as in Python. Simpler ↵tylov
code, although it now doesn't print column-major spans in column-by-column order, but rather in row-by-row, like row-major spans.
2023-08-21Changed 'order' to 'layout' in cspan md.Tyge Løvset
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.
2023-08-17Small refactoring.Tyge Lovset
2023-08-16Update cspan docs.Tyge Løvset
2023-07-24Improved an issue with cspan.tylov
2023-07-23Updated docs.tylov
2023-07-20Added Task-object to coroutines and true stackless execution.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-13Moved c_defer() macro from raii.h to ccommon.h. Some changes in cspan.tylov
2023-07-12Changed docs and examples to use i_key* template parameters instead of ↵tylov
i_val* for all non-maps. Renamed c_ASSERT() to c_assert() and added optional message parameter to c_static_assert().
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-06-11Added priv/linkage.h and renamed priv/template2.h => priv/template_undef.h.Tyge Løvset
Make all examples c++ compatible, except those using cspan.h Removed: crange_obj() Renamed: crange_make() => crange_init() Renamed: cspan_make() => cspan_init() Renamed: cstr_NULL => cstr_null Renamed: csview_NULL => csview_null
2023-06-07Updated and renamed c11/print.h to c11/fmt.h. Added fmt_tm() to print ↵Tyge Løvset
time/date from a struct tm.
2023-06-06Fixed some logic in coroutines.Tyge Løvset
Changed API in c11/print.h (not officially part of STC as it is C11).
2023-05-20Rename c_make() macro to c_init(). c_make still available, but deprecated.Tyge Løvset
2023-03-26development branch for 4.2Tyge Løvset
Removed uses of c_auto and c_with in documentation examples and code examples. Still using c_defer a few places. Renamed c11/fmt.h to c11/print.h. Some additions in ccommon.h, e.g. c_const_cast(T, x). Improved docs.
2023-02-13Improved docs.Tyge Løvset
2023-02-12More docs: prepare for release.Tyge Løvset
2023-02-11More docs improvements.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-04Fix in ccommon.h to make MSVC work again (without -std:c11) + small adjustments.Tyge Løvset
2023-02-04More cspan docs updates.Tyge Løvset
2023-02-04Minor docs update.Tyge Løvset
2023-02-03Renamed dim to shape in cspan. Not 100% sure it will survive.Tyge Løvset
2023-02-03More cspan docs fixes.Tyge Løvset
2023-02-03Feature completed cspan.Tyge Løvset
2023-02-01Update docs formatting and README.mdTyge Løvset
2023-02-01Massive update from unsigned sizes and indices to signed.Tyge Lovset
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-25Updates on cspan ++.Tyge Løvset
2023-01-25Reverted cspan_subdim*() to cspan_at*(). Added cspan_flatten() constructor.Tyge Løvset
2023-01-20Renamed cspan_at2 .. at4 to cspan_subdim2 .. Improved cspan docs.Tyge Løvset
2023-01-19Add a from_n() method to containers (and put_n() to maps), to support new ↵Tyge Løvset
initialization.
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-16Final cspan code update.Tyge Løvset
2023-01-16cspan docs fixes constness and formatting.Tyge Løvset
2023-01-16Final cspan API change: cspan_reshape() => cspan_resize().Tyge Løvset
2023-01-15Two more cspan docs fixes.Tyge Løvset
2023-01-15some cspan docs fixes.Tyge Løvset
2023-01-15some cspan docs fixes.Tyge Løvset
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.