pRC
multi-purpose Tensor Train library for C++
Loading...
Searching...
No Matches
log.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_TENSOR_FUNCTIONS_LOG_H
4#define pRC_CORE_TENSOR_FUNCTIONS_LOG_H
5
9
10namespace pRC
11{
20 template<class X, If<IsTensorish<RemoveReference<X>>> = 0,
21 If<IsInvocable<Loop<Log>, X>> = 0>
22 static inline constexpr auto log(X &&a)
23 {
24 return loop<Log>(forward<X>(a));
25 }
26}
27#endif // pRC_CORE_TENSOR_FUNCTIONS_LOG_H
Definition cholesky.hpp:18
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition copy.hpp:13
static constexpr auto log(Complex< T > const &a)
Definition log.hpp:11