Tenncor
partition.hpp
Go to the documentation of this file.
1 
11 #include "teq/traveler.hpp"
12 
13 #ifndef CCUR_PARTITION_HPP
14 #define CCUR_PARTITION_HPP
15 
16 namespace ccur
17 {
18 
20 using PartGroupsT = std::vector<std::vector<teq::iFunctor*>>;
21 
23 using OpWeightT = std::unordered_map<size_t,double>;
24 
26 PartGroupsT k_partition (teq::TensptrsT roots, size_t k, OpWeightT weights = OpWeightT());
27 
28 }
29 
30 #endif // CCUR_PARTITION_HPP
std::vector< std::vector< teq::iFunctor * > > PartGroupsT
Groups of functors.
Definition: partition.hpp:20
Definition: partition.hpp:16
PartGroupsT k_partition(teq::TensptrsT roots, size_t k, OpWeightT weights=OpWeightT())
Return k groups of graphs under roots given some weight.
std::unordered_map< size_t, double > OpWeightT
Map functor opcode to the operation&#39;s weight value.
Definition: partition.hpp:23
std::vector< TensptrT > TensptrsT
Vector of tensor smart pointers.
Definition: itensor.hpp:60