cMHN 1.1
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
log2.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_TENSOR_FUNCTIONS_LOG2_H
4#define pRC_CORE_TENSOR_FUNCTIONS_LOG2_H
5
9
10namespace pRC
11{
12 template<class X, If<IsTensorish<RemoveReference<X>>> = 0,
13 If<IsInvocable<Loop<Log2>, X>> = 0>
14 static inline constexpr auto log2(X &&a)
15 {
16 return loop<Log2>(forward<X>(a));
17 }
18}
19#endif // pRC_CORE_TENSOR_FUNCTIONS_LOG2_H
Definition cholesky.hpp:18
static constexpr auto log2(Complex< T > const &a)
Definition log2.hpp:13
static constexpr auto makeConstantSequence()
Definition sequence.hpp:402