Re: [PATCH v2 4/8] libstdc++: Improve fully dynamic extents in mdspan.

2025-08-05 Thread Tomasz Kaminski
On Sun, Aug 3, 2025 at 11:05 PM Luc Grosheintz wrote: > In mdspan related code, for extents with no static extents, i.e. only > dynamic extents, the following simplifications can be made: > > - The array of dynamic extents has size rank. > - The two arrays dynamic-index and dynamic-index-inv

[PATCH v2 4/8] libstdc++: Improve fully dynamic extents in mdspan.

2025-08-03 Thread Luc Grosheintz
In mdspan related code, for extents with no static extents, i.e. only dynamic extents, the following simplifications can be made: - The array of dynamic extents has size rank. - The two arrays dynamic-index and dynamic-index-inv become trivial, e.g. k[i] == i. - All elements of the arrays