On Sat, Mar 7, 2026, at 10:41 PM, Andrzej Krzemienski via Boost wrote:
multi::array<int, 2> a({5, 2}, 5); // start with 5's std::ranges::fill(a.elements(), 6); // fill with 6's multi::array<int, 2> b = restricted([](int i, int j) { return i * j * 10; }, multi::extensions_t{5, 2}); // start with index-dependent values
Regards, &rzej;
Not a review, but I have seen `multi::extensions_t` and `a.extensions()` and wonder whether any reviewers have already mentioned that that name seems off? I'm not a native speaker, but with a bit of math background and experience with other [multi-dimensional] libraries I expect these to be extent, extents, extents_t (see e.g. https://en.cppreference.com/w/cpp/types/extent.html, https://www.boost.org/doc/libs/latest/libs/multi_array/doc/user.html#sec_dim...) It would be nice to adhere to common jargon instead potentially creating friction/confusion for users coming to Boost.Multi. Just a note in case you want to consider it. Seth