13 #ifndef CCUR_PARTITION_HPP 14 #define CCUR_PARTITION_HPP 23 using OpWeightT = std::unordered_map<size_t,double>;
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's weight value.
Definition: partition.hpp:23
std::vector< TensptrT > TensptrsT
Vector of tensor smart pointers.
Definition: itensor.hpp:60