pRC
multi-purpose Tensor Train library for C++
Loading...
Searching...
No Matches
eval.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_VALUE_FUNCTIONS_EVAL_H
4#define pRC_CORE_VALUE_FUNCTIONS_EVAL_H
5
7
8namespace pRC
9{
20 template<class X, If<IsBool<RemoveReference<X>>> = 0>
21 static inline constexpr X eval(X &&a)
22 {
23 return forward<X>(a);
24 }
25
36 template<class X, If<IsValue<RemoveReference<X>>> = 0>
37 static inline constexpr X eval(X &&a)
38 {
39 return forward<X>(a);
40 }
41}
42#endif // pRC_CORE_VALUE_FUNCTIONS_EVAL_H
Definition cholesky.hpp:18
static constexpr X eval(X &&a)
Definition eval.hpp:11
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition copy.hpp:13