3#ifndef pRC_CORE_TENSOR_FUNCTIONS_SCALAR_H
4#define pRC_CORE_TENSOR_FUNCTIONS_SCALAR_H
18 template<
class X,
class R = RemoveReference<X>, If<IsTensorish<R>> = 0,
19 If<IsSatisfied<(R::Sizes::size() == 1)>> = 0,
20 If<IsInvocable<Reshape<>, X>> = 0>
21 static inline constexpr auto scalar(
X &&a)
Definition cholesky.hpp:18
static constexpr auto scalar(X &&a)
Casts a Tensor with one element to its Value class.
Definition scalar.hpp:21
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition copy.hpp:13