Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templated MD arrays #39

Closed
wants to merge 27 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
namespace
jonahm-LANL committed Dec 13, 2024

Verified

This commit was signed with the committer’s verified signature.
MrAlias Tyler Yahn
commit b3aba8684fde0427ee4e0d53afb48659ab951dec
4 changes: 2 additions & 2 deletions ports-of-call/portable_arrays.hpp
Original file line number Diff line number Diff line change
@@ -191,7 +191,7 @@ class PortableMDArray {
if constexpr (sizeof...(Is) == 0) {
idx = 0;
} else if constexpr (sizeof...(Is) == 1) {
idx = get_first(idxs...);
idx = util::get_first(idxs...);
} else {
idx = util::fast_findex({static_cast<size_type>(idxs)...}, nxs_, strides_);
}
@@ -204,7 +204,7 @@ class PortableMDArray {
if constexpr (sizeof...(Is) == 0) {
idx = 0;
} else if constexpr (sizeof...(Is) == 1) {
idx = get_first(idxs...);
idx = util::get_first(idxs...);
} else {
idx = util::fast_findex({static_cast<size_type>(idxs)...}, nxs_, strides_);
}