# net::contract_info2
#include <tensor_contract_tools.hpp>
# Public Functions
Name | |
---|---|
contract_info2< KeySetType > | absorb(contract_info2< KeySetType > & c, const int & d) |
contract_info2< KeySetType > | contract(contract_info2< KeySetType > & c, contract_info2< KeySetType > & d) |
std::string | show() const |
contract_info2() =default | |
template <typename NodeType > | contract_info2(const typename KeySetType::key_type & k, const NodeType & n) |
contract_info2< KeySetType > | forget_history(const typename KeySetType::key_type & k) |
# Public Attributes
Name | |
---|---|
KeySetType | node_set |
double | this_weight |
double | hist_max_weight |
double | contraction_cost |
double | legs |
# Detailed Description
template <typename KeySetType >
struct net::contract_info2;
# Public Functions Documentation
# function absorb
static inline contract_info2< KeySetType > absorb(
contract_info2< KeySetType > & c,
const int & d
)
# function contract
static inline contract_info2< KeySetType > contract(
contract_info2< KeySetType > & c,
contract_info2< KeySetType > & d
)
# function show
inline std::string show() const
# function contract_info2
contract_info2() =default
# function contract_info2
template <typename NodeType >
inline contract_info2(
const typename KeySetType::key_type & k,
const NodeType & n
)
# function forget_history
inline contract_info2< KeySetType > forget_history(
const typename KeySetType::key_type & k
)
# Public Attributes Documentation
# variable node_set
KeySetType node_set;
# variable this_weight
double this_weight = 0.;
# variable hist_max_weight
double hist_max_weight = 0.;
# variable contraction_cost
double contraction_cost = 0.;
# variable legs
double legs = 0.;
Updated on 15 June 2022 at 16:04:18 CST