|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
Classes | |
| struct | is_index_arg |
| struct | is_index_arg< all_t > |
| struct | is_index_arg< range > |
Concepts | |
| concept | SliceIndex |
Functions | |
| template<typename... Args> | |
| constexpr std::size_t | count_kept_dims () |
| template<std::size_t M, std::size_t N, typename... Args> | |
| void | slice_layout (const shape< N > &ext, const std::array< std::size_t, N > &strides, shape< M > &new_shape, std::array< std::size_t, M > &new_strides, std::size_t &base_offset, Args... args) |
| The shape, strides and base offset of a slice of an array with the given extents and strides. | |
|
constexpr |
| void mtl::array::detail_slice::slice_layout | ( | const shape< N > & | ext, |
| const std::array< std::size_t, N > & | strides, | ||
| shape< M > & | new_shape, | ||
| std::array< std::size_t, M > & | new_strides, | ||
| std::size_t & | base_offset, | ||
| Args... | args ) |
The shape, strides and base offset of a slice of an array with the given extents and strides.
Every argument is checked, in every build (#856):