diff --git a/doc/source/images/hyperslab_1.svg b/doc/source/images/hyperslab_1.svg
index 439dc48821..9841656cb4 100644
--- a/doc/source/images/hyperslab_1.svg
+++ b/doc/source/images/hyperslab_1.svg
@@ -2,19 +2,19 @@
diff --git a/doc/source/images/hyperslab_3.svg b/doc/source/images/hyperslab_3.svg
index 4d0a14601b..0955729484 100644
--- a/doc/source/images/hyperslab_3.svg
+++ b/doc/source/images/hyperslab_3.svg
@@ -2,19 +2,19 @@
diff --git a/doc/source/users_guide/dataspace_selections.rst b/doc/source/users_guide/dataspace_selections.rst
index a6d1ecd48e..48fde613d3 100644
--- a/doc/source/users_guide/dataspace_selections.rst
+++ b/doc/source/users_guide/dataspace_selections.rst
@@ -44,7 +44,7 @@ which are characterized by 4 quantities
* *block* the number of elements along each dimension of the original dataspace
in a signle block
* *count* the number of blocks along each dimension
-* *stride* the offset between each block.
+* *stride* the step between each block including a size of the block
Lets have a look on the following example with a original dataspace of shape
(9,10).
@@ -59,7 +59,7 @@ have the following parameters
* *offset* = [1,1]
* *block* = [1,2]
* *count* = [3,3]
-* *stride* = [2,1]
+* *stride* = [3,3]
To construct such a hyperslab you could use
@@ -69,7 +69,7 @@ To construct such a hyperslab you could use
Dimensions offset{1,1};
Dimensions block{1,2};
Dimensions count{3,3};
- Dimensions stride{2,1};
+ Dimensions stride{3,3};
dataspace::Hyperslab{offset,block,count,stride};
For details of how to manipulate or alter an instance of
@@ -108,7 +108,7 @@ The constructor call for such a selection would look like this
.. code-block:: cpp
Dimensions offset{1,1};
- Dimensions stride{2,3};
+ Dimensions stride{3,4};
Dimensions count{3,3};
dataspace::Hyperslab{offset,count,stride};
diff --git a/test/dataspace/hyperslab_simple_test.cpp b/test/dataspace/hyperslab_simple_test.cpp
index 97963e8cec..d9916382c2 100644
--- a/test/dataspace/hyperslab_simple_test.cpp
+++ b/test/dataspace/hyperslab_simple_test.cpp
@@ -221,10 +221,10 @@ SCENARIO("Hyperslab modifications") {
REQUIRE_THAT(h.block(), Catch::Matchers::Equals(Dimensions{3, 4}));
}
}
- WHEN("trying to set the offset for index 2") {
+ WHEN("trying to set the block for index 2") {
REQUIRE_THROWS_AS(h.block(2, 0), std::runtime_error);
}
- WHEN("trying to set the offset to {1") {
+ WHEN("trying to set the block to {1") {
REQUIRE_THROWS_AS(h.block({1}), std::runtime_error);
}