pRC
multi-purpose Tensor Train library for C++
Loading...
Searching...
No Matches
arg.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_TENSOR_FUNCTIONS_ARG_H
4#define pRC_CORE_TENSOR_FUNCTIONS_ARG_H
5
9
10namespace pRC
11{
21 template<class X, If<IsTensorish<RemoveReference<X>>> = 0,
22 If<IsInvocable<Loop<Arg>, X>> = 0>
23 static inline constexpr auto arg(X &&a)
24 {
25 return loop<Arg>(forward<X>(a));
26 }
27}
28#endif // pRC_CORE_TENSOR_FUNCTIONS_ARG_H
Definition cholesky.hpp:18
static constexpr auto arg(Complex< T > const &a)
Definition arg.hpp:12
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition copy.hpp:13