Skip to content

Commit

Permalink
Rename ndims to dim_count and add description
Browse files Browse the repository at this point in the history
  • Loading branch information
sasalla23 committed Aug 27, 2024
1 parent fb0dd45 commit 966abfb
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Therefore, blocked_rangeNd<int,2> is a specialisation of blocked_range2d where b
// Access
bool is_divisible() const;
static constexpr unsigned int ndims();
static constexpr unsigned int dim_count();
const tbb::blocked_range<value_type>& dim(unsigned int dimension) const;
};
Expand Down Expand Up @@ -138,6 +138,12 @@ each subrange remain the same as in the original range.

**Returns:** any dim(int) returns is_divisible().

.. code:: cpp
static constexpr unsigned int dim_count();
**Returns:** Number of dimensions specified by the template argument ``N``.

.. code:: cpp
const dim_range_type& dim(int) const;
Expand Down

0 comments on commit 966abfb

Please sign in to comment.