Skip to content

Instantly share code, notes, and snippets.

@taless474
Created May 4, 2020 22:18
Show Gist options
  • Save taless474/9f9b5343a566f3ccb62bde16593db5ef to your computer and use it in GitHub Desktop.
Save taless474/9f9b5343a566f3ccb62bde16593db5ef to your computer and use it in GitHub Desktop.
void test_shape_2d_0()
{
if (hpx::get_locality_id() == 0)
{
test_shape_d_operation("test_shape_2loc2d_0", R"(
shape(annotate_d([[-1,-2,-3], [1, 2, 3]], "array",
list("tile", list("rows", 1, 3), list("columns", 0, 3))))
)", "list(2, 3)");
}
else
{
test_shape_d_operation("test_shape_2loc2d_0", R"(
shape(annotate_d([[11, 12, 33]], "array",
list("tile", list("rows", 0, 1), list("columns", 0, 3))))
)", "list(1, 3)");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment