Xped
Loading...
Searching...
No Matches
PEPSContractions.hpp
Go to the documentation of this file.
1#ifndef XPED_PEPS_CONTRACTIONS_H_
2#define XPED_PEPS_CONTRACTIONS_H_
3
4#include <tuple>
5
7
8namespace Xped {
9
10template <typename Derived1, typename Derived2>
11auto
12// std::pair<Tensor<typename TensorTraits<Derived1>::Scalar, 1, 3, typename TensorTraits<Derived1>::Symmetry>,
13// Tensor<typename TensorTraits<Derived1>::Scalar, 3, 1, typename TensorTraits<Derived1>::Symmetry>>
14decompose(XPED_CONST TensorBase<Derived1>& T1, XPED_CONST TensorBase<Derived2>& T2, const std::size_t max_nsv);
15
16template <typename Scalar, typename Symmetry, typename AllocationPolicy>
17std::pair<Tensor<Scalar, 1, 3, Symmetry, true, AllocationPolicy>, Tensor<Scalar, 3, 1, Symmetry, true, AllocationPolicy>>
18decompose(XPED_CONST Tensor<Scalar, 3, 3, Symmetry, true, AllocationPolicy>& T1,
19 XPED_CONST Tensor<Scalar, 3, 3, Symmetry, true, AllocationPolicy>& T2,
20 const std::size_t max_nsv);
21
22template <typename Scalar, typename Symmetry, typename AllocationPolicy>
23std::pair<Tensor<Scalar, 1, 2, Symmetry, true, AllocationPolicy>, Tensor<Scalar, 2, 1, Symmetry, true, AllocationPolicy>>
24decompose(XPED_CONST Tensor<Scalar, 2, 2, Symmetry, true, AllocationPolicy>& T1,
25 XPED_CONST Tensor<Scalar, 2, 2, Symmetry, true, AllocationPolicy>& T2,
26 const std::size_t max_nsv);
27
28template <typename Scalar, typename Symmetry, typename AllocationPolicy, typename DerivedL, typename DerivedT, typename DerivedR, typename DerivedB>
29Tensor<Scalar, 2, 3, Symmetry, false, AllocationPolicy> applyWeights(XPED_CONST Tensor<Scalar, 2, 3, Symmetry, false, AllocationPolicy>& A,
30 XPED_CONST TensorBase<DerivedL>& wL,
31 XPED_CONST TensorBase<DerivedT>& wT,
32 XPED_CONST TensorBase<DerivedR>& wR,
33 XPED_CONST TensorBase<DerivedB>& wB);
34} // namespace Xped
35
36#ifndef XPED_COMPILED_LIB
38#endif
39
40#endif
Definition: bench.cpp:62
auto decompose(XPED_CONST TensorBase< Derived1 > &T1, XPED_CONST TensorBase< Derived2 > &T2, const std::size_t max_nsv)
Definition: PEPSContractions.cpp:20
@ A
Definition: SubLattice.hpp:10
Tensor< Scalar, 2, 3, Symmetry, false, AllocationPolicy > applyWeights(XPED_CONST Tensor< Scalar, 2, 3, Symmetry, false, AllocationPolicy > &A, XPED_CONST TensorBase< DerivedL > &wL, XPED_CONST TensorBase< DerivedT > &wT, XPED_CONST TensorBase< DerivedR > &wR, XPED_CONST TensorBase< DerivedB > &wB)
Definition: PEPSContractions.cpp:94