Skip to content

Commit 2ace45b

Browse files
committed
added description for the example6
1 parent 843b4bc commit 2ace45b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,5 @@ Example 5 provides a clear method for calculating a 2D 5-point stencil using dis
161161
### Example 6
162162

163163
[./src/example6.cpp](src/example6.cpp)
164+
165+
The code of this example showcases a 2D pattern search in a distributed, multidimensional array (`mhp::distributed_mdarray<float, 2>`). It initializes a two-dimensional array, populates it using `mhp::iota`, transforms to binary values using `mhp::transform` and defines a 2x2 pattern. The code uses a lambda function to scan the array and mark occurrences of the pattern in a separate array. The mechanism is very similar to the one in the example5.

0 commit comments

Comments
 (0)