# net::contract_info

More...

#include <tensor_contract_tools.hpp>

# Public Functions

Name
contract_info< KeySetType > absorb(contract_info< KeySetType > & c, const int & d)
contract_info< KeySetType > contract(contract_info< KeySetType > & c, contract_info< KeySetType > & d)
std::string show() const
contract_info() =default
template <typename NodeType >
contract_info(const typename KeySetType::key_type & k, const NodeType & n)
contract_info< KeySetType > forget_history(const typename KeySetType::key_type & k)

# Public Attributes

Name
KeySetType node_set
long long int this_weight
long long int hist_max_weight
long long int contraction_cost
long long int legs

# Detailed Description

template <typename KeySetType >
struct net::contract_info;

# Public Functions Documentation

# function absorb

static inline contract_info< KeySetType > absorb(
    contract_info< KeySetType > & c,
    const int & d
)

# function contract

static inline contract_info< KeySetType > contract(
    contract_info< KeySetType > & c,
    contract_info< KeySetType > & d
)

# function show

inline std::string show() const

# function contract_info

contract_info() =default

# function contract_info

template <typename NodeType >
inline contract_info(
    const typename KeySetType::key_type & k,
    const NodeType & n
)

# function forget_history

inline contract_info< KeySetType > forget_history(
    const typename KeySetType::key_type & k
)

# Public Attributes Documentation

# variable node_set

KeySetType node_set;

# variable this_weight

long long int this_weight = 1;

# variable hist_max_weight

long long int hist_max_weight = 1;

# variable contraction_cost

long long int contraction_cost = 1;

# variable legs

long long int legs = 1;

Updated on 15 June 2022 at 16:04:18 CST