3#ifndef pRC_CORE_TENSOR_FUNCTIONS_SWAP_H
4#define pRC_CORE_TENSOR_FUNCTIONS_SWAP_H
22 template<
class XA,
class XB,
class RA = RemoveReference<XA>,
23 class RB = RemoveReference<XB>, If<IsTensorish<RA>> = 0,
24 If<IsInvocable<View, XA>> = 0, If<IsTensorish<RB>> = 0,
25 If<IsInvocable<View, XB>> = 0,
26 If<IsSame<
typename RA::Sizes,
typename RB::Sizes>> = 0,
27 class EA = ResultOf<XA,
typename RA::Subscripts>,
28 class EB = ResultOf<XB,
typename RB::Subscripts>,
29 If<IsInvocable<Swap, EA, EB>> = 0>
30 static inline constexpr auto swap(
XA &&a,
XB &&b)
Definition cholesky.hpp:18
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition copy.hpp:13
static constexpr auto swap(XA &&a, XB &&b)
Swaps two Tensors.
Definition swap.hpp:30