feat(math): implement slice for tensor_view

This commit is contained in:
2026-10-28 21:35:43 +01:00
parent a47302d532
commit 94276e68d3
5 changed files with 169 additions and 28 deletions
+2 -2
View File
@@ -66,8 +66,8 @@ struct tensor_traits {};
template <typename T, std::size_t... Dims>
struct tensor_traits<tensor<T, Dims...>> {
using tensor_type = tensor<T, Dims...>;
using value_type = tensor_storage<tensor_type>::value_type;
using storage_type = tensor_storage<tensor_type>::storage_type;
using value_type = typename tensor_storage<tensor_type>::value_type;
using storage_type = typename tensor_storage<tensor_type>::storage_type;
static constexpr auto rank = sizeof...(Dims);
static constexpr auto dynamic = is_tensor_dynamic_v<tensor_type>;