tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
strided_slice.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2// SPDX-FileCopyrightText: Copyright (C) 2024 Tobias Hienzsch
3
4#ifndef TETL_MDSPAN_STRIDED_SLICE_HPP
5#define TETL_MDSPAN_STRIDED_SLICE_HPP
6
7#include <etl/_config/all.hpp>
8
9namespace etl {
10
11template <typename OffsetType, typename ExtentType, typename StrideType>
13 using offset_type = OffsetType;
14 using extent_type = ExtentType;
15 using stride_type = StrideType;
16
20};
21
22template <typename OffsetType, typename ExtentType, typename StrideType>
23strided_slice(OffsetType, ExtentType, StrideType) -> strided_slice<OffsetType, ExtentType, StrideType>;
24
25namespace detail {
26
27template <typename T>
28inline constexpr auto is_strided_slice = false;
29
30template <typename OT, typename ET, typename ST>
31inline constexpr auto is_strided_slice<etl::strided_slice<OT, ET, ST>> = true;
32
33} // namespace detail
34
35} // namespace etl
36
37#endif // TETL_MDSPAN_STRIDED_SLICE_HPP
Definition adjacent_find.hpp:9
strided_slice(OffsetType, ExtentType, StrideType) -> strided_slice< OffsetType, ExtentType, StrideType >
Definition strided_slice.hpp:12
TETL_NO_UNIQUE_ADDRESS ExtentType extent
Definition strided_slice.hpp:18
TETL_NO_UNIQUE_ADDRESS OffsetType offset
Definition strided_slice.hpp:17
TETL_NO_UNIQUE_ADDRESS StrideType stride
Definition strided_slice.hpp:19