pRC
multi-purpose Tensor Train library for C++
Loading...
Searching...
No Matches
prc
core
value
functions
rcp.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSD-2-Clause
2
3
#ifndef pRC_CORE_VALUE_FUNCTIONS_RCP_H
4
#define pRC_CORE_VALUE_FUNCTIONS_RCP_H
5
6
#include <
prc/core/basic/functions/identity.hpp
>
7
#include <
prc/core/value/type_traits.hpp
>
8
9
namespace
pRC
10
{
18
template
<
class
T, If<IsValue<T>> = 0>
19
static
inline
constexpr
auto
rcp
(
T
const
&a)
20
{
21
return
identity<T>
() / a;
22
}
23
}
24
#endif
// pRC_CORE_VALUE_FUNCTIONS_RCP_H
identity.hpp
type_traits.hpp
pRC
Definition
cholesky.hpp:18
pRC::rcp
static constexpr auto rcp(Complex< T > const &b)
Definition
rcp.hpp:13
pRC::copy
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition
copy.hpp:13
Generated by
1.9.8