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_TENSOR_TRAIN_OPERATOR_FUNCTIONS_EVAL_H
4#define pRC_TENSOR_TRAIN_OPERATOR_FUNCTIONS_EVAL_H
5
7
8namespace pRC
9{
10 template<class X, If<TensorTrain::IsOperator<RemoveReference<X>>> = 0>
11 static inline constexpr X eval(X &&a)
12 {
13 return forward<X>(a);
14 }
15
16 template<class X, If<TensorTrain::IsOperatorView<RemoveReference<X>>> = 0>
17 static inline constexpr auto eval(X &&a)
18 {
20 }
21}
22#endif // pRC_TENSOR_TRAIN_OPERATOR_FUNCTIONS_EVAL_H
Definition type_traits.hpp:17
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