cMHN 1.2
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
backwards.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_TENSOR_FUNCTIONS_BACKWARDS_H
4#define pRC_CORE_TENSOR_FUNCTIONS_BACKWARDS_H
5
8
9namespace pRC
10{
11 template<class X, IsTensorish R = RemoveReference<X>>
12 static inline constexpr auto backwards(X &&a)
13 {
15 [&a](auto const... seq)
16 {
17 return permute<seq...>(forward<X>(a));
18 });
19 }
20}
21#endif // pRC_CORE_TENSOR_FUNCTIONS_BACKWARDS_H
Definition cholesky.hpp:10
static constexpr auto reverse(Direction const D)
Definition direction.hpp:24
static constexpr auto makeSeries()
Definition sequence.hpp:390
static constexpr auto permute(Sequence< T, Is... > const)
Definition sequence.hpp:487
static constexpr decltype(auto) expand(Sequence< T, Seq... > const, F &&f, Xs &&...args)
Definition sequence.hpp:383
static constexpr auto backwards(X &&a)
Definition backwards.hpp:12