MaxCutProblemGenerator¶
Overview¶
// global functions double QPanda::vector_dot(std::vector<double>& x, std::vector<double>& y); double QPanda::all_cut_of_graph( std::vector<std::vector<double>> adjacent_matrix, std::vector<double>& all_cut_list, std::vector<size_t>& target_value_list );
Detailed Documentation¶
Global Functions¶
double QPanda::vector_dot(std::vector<double>& x, std::vector<double>& y)
vector dot product
Parameters:
| std::vector<double>& | vector x, x will be clear |
| std::vector<double>& | vector y, y will be clear |
Returns:
double the dot product result of the two input vectors
double QPanda::all_cut_of_graph( std::vector<std::vector<double>> adjacent_matrix, std::vector<double>& all_cut_list, std::vector<size_t>& target_value_list )
all cut of graph
Parameters:
| std::vector<std::vector<double>> | the adjacent matrix |
| std::vector<double>& | all cut list |
| std::vector<size_t>& | target value list |
Returns:
double the max cut value