boostorg / boostorg/multi_array

Performance issue on resize

Open
#32 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
32
Forks
39
PR merge metrics
No merged PRs in 30d

Description

When I use `boost::multi_array` with `boost::fortran_storage_order()`, and I want to `.resize` by only the latest (rightmost) dimension, the current implementation is a nested `N` function call (`std::copy`), one by dimension.
The same functionality can be reached with one `std::copy` on the storage.

This minimal example shows the problem:
https://godbolt.org/z/GWbxcM14h

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.