Closed ax3l closed 3 months ago
vector.assign(vector.size(), 42);
is a bit verbose for a standard operation, even if it mirrors https://en.cppreference.com/w/cpp/container/vector/assign
Add another overload similar to setVal(ue) used in other AMReX containers.
setVal(ue)
https://github.com/AMReX-Codes/pyamrex/pull/222#discussion_r1384120148
The proposed changes:
Summary
is a bit verbose for a standard operation, even if it mirrors https://en.cppreference.com/w/cpp/container/vector/assign
Add another overload similar to
setVal(ue)
used in other AMReX containers.Additional background
https://github.com/AMReX-Codes/pyamrex/pull/222#discussion_r1384120148
Checklist
The proposed changes: