cMHN 1.1
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
view.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_TENSOR_TRAIN_OPERATOR_FUNCTIONS_VIEW_H
4#define pRC_TENSOR_TRAIN_OPERATOR_FUNCTIONS_VIEW_H
5
8
9namespace pRC
10{
11 template<class X, If<TensorTrain::IsOperatorView<RemoveReference<X>>> = 0>
12 static inline constexpr X view(X &&a)
13 {
14 return forward<X>(a);
15 }
16
17 template<class T, class M, class N, class R>
18 static inline constexpr auto view(
20 {
22 }
23
24 template<class T, class M, class N, class R>
25 static inline constexpr auto view(TensorTrain::Operator<T, M, N, R> &a)
26 {
28 }
29
30 template<class T, class M, class N, class R>
31 static inline constexpr auto view(
32 TensorTrain::Operator<T, M, N, R> const &&) = delete;
33}
34#endif // pRC_TENSOR_TRAIN_OPERATOR_FUNCTIONS_VIEW_H
Definition type_traits.hpp:17
ReferenceToConst(Operator< T, M, N, Ranks > const &) -> ReferenceToConst< T, M, N, Ranks >
Reference(Operator< T, M, N, Ranks > &) -> Reference< T, M, N, Ranks >
Definition cholesky.hpp:18
static constexpr auto makeConstantSequence()
Definition sequence.hpp:402
static constexpr X view(X &&a)
Definition view.hpp:12