cMHN 1.1
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
9
10namespace pRC
11{
12 template<class X, class R = RemoveReference<X>,
13 If<Any<TensorTrain::IsTensorish<R>, TensorTrain::IsOperatorish<R>>> = 0,
14 If<IsInvocable<Loop<Conj>, X>> = 0>
15 static inline constexpr auto conj(X &&a)
16 {
17 return loop<Conj>(forward<X>(a));
18 }
19}
20#endif // pRC_TENSOR_TRAIN_COMMON_FUNCTIONS_CONJ_H
Definition cholesky.hpp:18
static constexpr auto makeConstantSequence()
Definition sequence.hpp:402
static constexpr auto conj(Complex< T > const &a)
Definition conj.hpp:11