Skip to content

Commit

Permalink
Reverted IndexType to index_type
Browse files Browse the repository at this point in the history
  • Loading branch information
ldh4 committed Aug 20, 2024
1 parent 8f2e1f6 commit 3231555
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/source/API/core/policies/RangePolicy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,19 +106,19 @@ Constructors
Default Constructor uninitialized policy.

.. cppkokkos:function:: RangePolicy(IndexType begin, IndexType end)
.. cppkokkos:function:: RangePolicy(index_type begin, index_type end)
Provide a begin and end index.

.. cppkokkos:function:: RangePolicy(IndexType begin, IndexType end, ChunkSize chunk_size)
.. cppkokkos:function:: RangePolicy(index_type begin, index_type end, ChunkSize chunk_size)
Provide a begin and end index as well as a ``ChunkSize``.

.. cppkokkos:function:: RangePolicy(const ExecutionSpace& space, IndexType begin, IndexType end)
.. cppkokkos:function:: RangePolicy(const ExecutionSpace& space, index_type begin, index_type end)
Provide a begin and end index and an ``ExecutionSpace`` instance to use as the execution resource.

.. cppkokkos:function:: RangePolicy(const ExecutionSpace& space, IndexType begin, IndexType end, ChunkSize chunk_size)
.. cppkokkos:function:: RangePolicy(const ExecutionSpace& space, index_type begin, index_type end, ChunkSize chunk_size)
Provide a begin and end index and an ``ExecutionSpace`` instance to use as the execution resource, as well as a ``ChunkSize``.

Expand All @@ -127,7 +127,7 @@ Preconditions:

* The begin index must not be greater than the end index.
* The actual constructors are templated so we can check that they are converted to ``index_type`` safely (see `#6754 <https://github.com/kokkos/kokkos/pull/6754>`_).
* The conversion safety check is only performed if ``index_type`` is convertible to the begin and end index types.
* The conversion safety check is performed only if ``index_type`` is convertible to the begin and end index types.

CTAD Constructors (since 4.3):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit 3231555

Please sign in to comment.