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