feat(math): operation fundamentals
This commit is contained in:
@@ -36,6 +36,19 @@ struct is_storage_inline<inline_storage<T>> : std::true_type {};
|
||||
template <typename T>
|
||||
static constexpr auto is_storage_inline_v = is_storage_inline<T>::value;
|
||||
|
||||
template <typename T>
|
||||
struct detach_storage {
|
||||
using type = T;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
struct detach_storage<inline_storage<T>> {
|
||||
using type = T;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
using detach_storage_t = typename detach_storage<T>::type;
|
||||
|
||||
template <typename T>
|
||||
struct is_tensor : std::false_type {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user