cMHN 1.2
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
conj.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_TENSOR_TRAIN_COMMON_FUNCTIONS_CONJ_H
4#define pRC_TENSOR_TRAIN_COMMON_FUNCTIONS_CONJ_H
5
10
11namespace pRC
12{
13 template<class X, class R = RemoveReference<X>>
14 requires(TensorTrain::IsTensorish<R> ||
15 TensorTrain::IsOperatorish<R>) &&
16 IsInvocable<Loop<Conj>, X>
17 static inline constexpr auto conj(X &&a)
18 {
19 return loop<Conj>(forward<X>(a));
20 }
21}
22#endif // pRC_TENSOR_TRAIN_COMMON_FUNCTIONS_CONJ_H
Definition cholesky.hpp:10
static constexpr auto conj(T const &a)
Definition conj.hpp:11
static constexpr auto loop(F &&f, Xs &&...args)
Definition loop.hpp:20