tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
submdspan.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_SUBMDSPAN_HPP
5
#
define
TETL_MDSPAN_SUBMDSPAN_HPP
6
7
#
include
<
etl
/
_mdspan
/
mdspan
.
hpp
>
8
9
namespace
etl
{
10
11
// template <typename T, typename Ext, typename Layout, typename Accessor, typename...
12
// SliceSpecifiers>
13
// [[nodiscard]] constexpr auto submdspan(mdspan<T, Ext, Layout, Accessor> const& src,
14
// SliceSpecifiers... slices)
15
// {
16
// auto sub_mapping = submdspan_mapping(src.mapping(), slices...);
17
// auto sub_accessor = typename Accessor::offset_policy(src.accessor());
18
// auto sub_data = src.accessor().offset(src.data_handle(), sub_mapping.offset);
19
// return etl::mdspan(sub_data, sub_mapping.mapping, sub_accessor);
20
// }
21
22
}
// namespace etl
23
24
#
endif
// TETL_MDSPAN_SUBMDSPAN_HPP
etl
Definition
adjacent_find.hpp:9
include
etl
_mdspan
submdspan.hpp
Generated on Sun Sep 7 2025 19:15:10 for tetl by
1.9.8