cMHN 1.1
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
acosh.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_COMPLEX_FUNCTIONS_ACOSH_H
4#define pRC_CORE_COMPLEX_FUNCTIONS_ACOSH_H
5
9
10namespace pRC
11{
12 template<class T>
13 static inline constexpr auto acosh(Complex<T> const &a)
14 {
15 return identity<T>(2) *
16 log(sqrt(identity<T>(0.5) * (a + unit<T>())) +
17 sqrt(identity<T>(0.5) * (a - unit<T>())));
18 }
19}
20#endif // pRC_CORE_COMPLEX_FUNCTIONS_ACOSH_H
Definition complex.hpp:26
Definition cholesky.hpp:18
static constexpr auto makeConstantSequence()
Definition sequence.hpp:402
static constexpr auto log(Complex< T > const &a)
Definition log.hpp:11
static constexpr auto sqrt(Complex< T > const &a)
Definition sqrt.hpp:12
static constexpr auto acosh(Complex< T > const &a)
Definition acosh.hpp:13