8 template <
class ValueType,
class ShapeType>
11 static_cast<void>(
rows);
12 static_cast<void>(
cols);
13 if constexpr (std::is_same_v<ShapeType, scl>) {
16 using map_t = ad::util::shape_to_raw_view_t<ValueType, ShapeType>;
22 constexpr
size_t size(
const T& x)
24 if constexpr (std::is_pointer_v<std::decay_t<T>>) {
32 constexpr
size_t rows(
const T& x)
34 if constexpr (std::is_pointer_v<std::decay_t<T>>) {
42 constexpr
size_t cols(
const T& x)
44 if constexpr (std::is_pointer_v<std::decay_t<T>>) {
53 if constexpr (std::is_pointer_v<std::decay_t<T>>) {
60 template <
class T,
class ValPtrType>
63 static_cast<void>(
rows);
64 static_cast<void>(
cols);
65 using raw_t = std::decay_t<T>;
66 if constexpr (std::is_pointer_v<raw_t>) {
76 using x_t = std::decay_t<decltype(x)>;
77 if constexpr (std::is_arithmetic_v<x_t>)
return x;
78 else return x.array();