Re: [PATCH v1 2/6] libstdc++: Precompute products of static extents.

2025-07-28 Thread Tomasz Kaminski
On Mon, Jul 28, 2025 at 10:56 AM Luc Grosheintz wrote: > I'll ignore all of the template instantiation related comments. They'll > get fixed in a later commit in this series; and if that's not acceptable, > I'd rather change the other of the commits (though this is order is my > favourite). > Thi

Re: [PATCH v1 2/6] libstdc++: Precompute products of static extents.

2025-07-28 Thread Luc Grosheintz
I'll ignore all of the template instantiation related comments. They'll get fixed in a later commit in this series; and if that's not acceptable, I'd rather change the other of the commits (though this is order is my favourite). On 7/28/25 07:58, Tomasz Kaminski wrote: On Sun, Jul 27, 2025 at 2:

Re: [PATCH v1 2/6] libstdc++: Precompute products of static extents.

2025-07-27 Thread Tomasz Kaminski
On Sun, Jul 27, 2025 at 2:53 PM Luc Grosheintz wrote: > Let E denote an multi-dimensional extent; n the rank of E; r = 0, ..., > n; E[i] the i-th extent; and D[k] be the (possibly empty) array of > dynamic extents. > > The two partial products for r = 0, ..., n: > > \prod_{i = 0}^r E[i] (fw

[PATCH v1 2/6] libstdc++: Precompute products of static extents.

2025-07-27 Thread Luc Grosheintz
Let E denote an multi-dimensional extent; n the rank of E; r = 0, ..., n; E[i] the i-th extent; and D[k] be the (possibly empty) array of dynamic extents. The two partial products for r = 0, ..., n: \prod_{i = 0}^r E[i] (fwd) \prod_{i = r+1}^n E[i] (rev) can be computed as the product