3#ifndef pRC_CORE_TENSOR_UNIT_H
4#define pRC_CORE_TENSOR_UNIT_H
45 using Sizes =
typename T::Sizes;
57 template<
class X, If<IsConstructible<
typename T::Type, X>> = 0>
60 auto const f = [value =
typename T::Type(
forward<X>(value))]()
65 using Sizes =
typename T::Sizes;
Definition sequence.hpp:56
Definition cholesky.hpp:18
std::enable_if_t< B{}, int > If
Definition type_traits.hpp:68
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition copy.hpp:13
RemoveConst< RemoveReference< T > > RemoveConstReference
Definition type_traits.hpp:62
Definition type_traits.hpp:60
Definition type_traits.hpp:16
constexpr auto operator()(X &&value)
Returns the scaled unit of Tensor class T, i.e. a Tensor filled with the scaling factor.
Definition unit.hpp:58
constexpr auto operator()()
Returns the unit of Tensor class T, i.e. a Tensor filled with 1s.
Definition unit.hpp:38
Definition type_traits.hpp:265