Example illustrating access to elements in a dash::Array
by local index.
#include <unistd.h>
#include <iostream>
#include <cstddef>
#include <libdash.h>
int main(int argc, char* argv[])
{
for (
size_t i = 0; i < arr.
local.size(); i++) {
}
if (static_cast<size_t>(
myid) == size-1) {
for (auto el: arr) {
cout << (int)el << " ";
}
cout << endl;
}
}