cMHN 1.2
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
is_self_adjoint.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_FUNCTORS_IS_SELF_ADJOINT_H
4#define pRC_CORE_FUNCTORS_IS_SELF_ADJOINT_H
5
7
8namespace pRC
9{
11 {
12 template<class X>
13 requires requires { isSelfAdjoint(declval<X>()); }
14 constexpr decltype(auto) operator()(X &&a) const
15 {
16 return isSelfAdjoint(forward<X>(a));
17 }
18
19 template<class X, class XT>
20 requires requires { isSelfAdjoint(declval<X>(), declval<XT>()); }
21 constexpr decltype(auto) operator()(X &&a, XT &&tolerance) const
22 {
23 return isSelfAdjoint(forward<X>(a), forward<XT>(tolerance));
24 }
25 };
26}
27#endif // pRC_CORE_FUNCTORS_IS_SELF_ADJOINT_H
Definition cholesky.hpp:10
static constexpr auto isSelfAdjoint(X &&a, TT const &tolerance=NumericLimits< TT >::tolerance())
Definition is_self_adjoint.hpp:14
Definition is_self_adjoint.hpp:11