Ignore:
Timestamp:
Apr 27, 2026, 8:05:23 PM (29 hours ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
Children:
c910d308
Parents:
b3e77cc
Message:

change to consistent "collection" over "container"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/mike_brooks_MMath/array.tex

    rb3e77cc r6224eeb  
    919919However, function @print1d_cstyle@ is asserting too much knowledge about its parameter @r@ for printing either a row slice or a column slice.
    920920Specifically, 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 container type that offers a subscript operator (of type @ptrdiff_t@ $\rightarrow$ @float@) with managed length @N@.
     921That is, @r@ need only be of a collection type that offers a subscript operator (of type @ptrdiff_t@ $\rightarrow$ @float@) with managed length @N@.
    922922The new-array library provides the trait @ar@, so-defined.
    923923With it, the original declaration can be generalized with the same body.
     
    17211721
    17221722\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 container types.
     1723Like @span@, it works over multiple underlying collection types.
    17241724But neither @span@ nor @mdspan@ augments the available allocation options.
    17251725
Note: See TracChangeset for help on using the changeset viewer.