allow constructing Few from array on device
This commit is contained in:
@ -15,7 +15,7 @@ class Few {
|
||||
new (data() + (i++)) T(*it);
|
||||
}
|
||||
}
|
||||
Few(T const a[]) {
|
||||
KOKKOS_INLINE_FUNCTION Few(T const a[]) {
|
||||
for (std::size_t i = 0; i < n; ++i) new (data() + i) T(a[i]);
|
||||
}
|
||||
KOKKOS_INLINE_FUNCTION Few() {
|
||||
|
||||
Reference in New Issue
Block a user