3#ifndef pRC_TENSOR_TRAIN_TENSOR_UNIT_H
4#define pRC_TENSOR_TRAIN_TENSOR_UNIT_H
26 constexpr auto CRL = Core::size(0);
27 constexpr auto CN = Core::size(1);
28 constexpr auto CRR = Core::size(2);
32 zero<
typename Core::template ChangeSizes<
CRL - 1,
CN,
37 using N =
typename T::N;
38 using Ranks =
typename T::Ranks;
44 template<
class X, If<IsConstructible<
typename T::Type, X>> = 0>
48 [value =
typename T::Type(forward<X>(value))]<
Index C>()
51 constexpr auto CRL = Core::size(0);
52 constexpr auto CN = Core::size(1);
53 constexpr auto CRR = Core::size(2);
60 zero<
typename Core::template ChangeSizes<
CRL - 1,
CN,
67 zero<
typename Core::template ChangeSizes<
CRL - 1,
CN,
73 using N =
typename T::N;
74 using Ranks =
typename T::Ranks;
Definition enumerate.hpp:19
Definition cholesky.hpp:18
static constexpr auto makeConstantSequence()
Definition sequence.hpp:402
Size Index
Definition type_traits.hpp:21
static constexpr auto zero()
Definition zero.hpp:12
std::enable_if_t< B{}, int > If
Definition type_traits.hpp:68
static constexpr auto unit()
Definition unit.hpp:12
RemoveConst< RemoveReference< T > > RemoveConstReference
Definition type_traits.hpp:62
Definition type_traits.hpp:60
Definition type_traits.hpp:16
constexpr auto operator()(X &&value)
Definition unit.hpp:45
constexpr auto operator()()
Definition unit.hpp:21
Definition type_traits.hpp:265