Changeset 6224eeb for doc/theses/mike_brooks_MMath/array.tex
- Timestamp:
- Apr 27, 2026, 8:05:23 PM (29 hours ago)
- Branches:
- master
- Children:
- c910d308
- Parents:
- b3e77cc
- File:
-
- 1 edited
-
doc/theses/mike_brooks_MMath/array.tex (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/mike_brooks_MMath/array.tex
rb3e77cc r6224eeb 919 919 However, function @print1d_cstyle@ is asserting too much knowledge about its parameter @r@ for printing either a row slice or a column slice. 920 920 Specifically, declaring the parameter @r@ with type @array@ means that @r@ is contiguous, which is unnecessarily restrictive. 921 That is, @r@ need only be of a co ntainertype that offers a subscript operator (of type @ptrdiff_t@ $\rightarrow$ @float@) with managed length @N@.921 That is, @r@ need only be of a collection type that offers a subscript operator (of type @ptrdiff_t@ $\rightarrow$ @float@) with managed length @N@. 922 922 The new-array library provides the trait @ar@, so-defined. 923 923 With it, the original declaration can be generalized with the same body. … … 1721 1721 1722 1722 \CC~23's @std::mdspan@ adds multidimensional indexing and reshaping capabilities analogous to those built into \CFA's @array@. 1723 Like @span@, it works over multiple underlying co ntainertypes.1723 Like @span@, it works over multiple underlying collection types. 1724 1724 But neither @span@ nor @mdspan@ augments the available allocation options. 1725 1725
Note:
See TracChangeset
for help on using the changeset viewer.